aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex@bennee.com>2013-11-26 14:17:23 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-12-03 21:22:39 +0000
commit00ced101cdd90ca16986af8ecfd137eaf54b4883 (patch)
tree38bd71f04d13fe76ae099a807eefd77ce773f0a3
parent8152ec3c17f2522b0a1b45023da81581386593ad (diff)
linux-user/signal.c: dump pc when aborting
It doesn't hurt and it certainly helps when bringing up new instructions when it breaks.
-rw-r--r--linux-user/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 4e7148a2d6..27c2ecb157 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -408,8 +408,8 @@ static void QEMU_NORETURN force_sig(int target_sig)
getrlimit(RLIMIT_CORE, &nodump);
nodump.rlim_cur=0;
setrlimit(RLIMIT_CORE, &nodump);
- (void) fprintf(stderr, "qemu: uncaught target signal %d (%s) - %s\n",
- target_sig, strsignal(host_sig), "core dumped" );
+ (void) fprintf(stderr, "qemu: uncaught target signal %d (%s) at 0x%" HWADDR_PRIx " - %s\n",
+ target_sig, strsignal(host_sig), env->pc, "core dumped" );
}
/* The proper exit code for dying from an uncaught signal is