Skip to content

Commit

Permalink
Fix toc generation when guest receives fatal signal (qemu#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedav authored and ivg committed Oct 19, 2017
1 parent 1ffb7a6 commit a9fb4c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linux-user/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#include "qemu-common.h"
#include "target_signal.h"

#ifdef HAS_TRACEWRAP
#include "tracewrap.h"
#endif //HAS_TRACEWRAP

//#define DEBUG_SIGNAL

static struct target_sigaltstack target_sigaltstack_used = {
Expand Down Expand Up @@ -448,6 +452,10 @@ static void QEMU_NORETURN force_sig(int target_sig)
host_sig = target_to_host_signal(target_sig);
gdb_signalled(env, target_sig);

#ifdef HAS_TRACEWRAP
qemu_trace_finish(-target_sig);
#endif //HAS_TRACEWRAP

/* dump core if supported by target binary format */
if (core_dump_signal(target_sig) && (ts->bprm->core_dump != NULL)) {
stop_all_tasks();
Expand Down

0 comments on commit a9fb4c6

Please sign in to comment.