From: Nicholas Nethercote Date: Tue, 18 Jan 2011 05:16:21 +0000 (+0000) Subject: Print a stack trace as part of the "unhandled instruction bytes" warning. X-Git-Tag: svn/VALGRIND_3_7_0~699 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f4749956f3f5211a47dc33ad14561c1c5e70c02;p=thirdparty%2Fvalgrind.git Print a stack trace as part of the "unhandled instruction bytes" warning. Useful if the program in question catches signals, in which case the usual "Process terminating..." stack trace isn't shown. Requested by Jesse Ruderman. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11504 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index f8f2950721..c95c6a30fe 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -1184,6 +1184,7 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid ) VG_(umsg)( "valgrind: Unrecognised instruction at address %#lx.\n", VG_(get_IP)(tid)); + VG_(get_and_pp_StackTrace)(tid, 50); #define M(a) VG_(umsg)(a "\n"); M("Your program just tried to execute an instruction that Valgrind" ); M("did not recognise. There are two possible reasons for this." );