|
From: <sv...@va...> - 2011-01-18 05:16:30
|
Author: njn
Date: 2011-01-18 05:16:21 +0000 (Tue, 18 Jan 2011)
New Revision: 11504
Log:
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.
Modified:
trunk/coregrind/m_scheduler/scheduler.c
Modified: trunk/coregrind/m_scheduler/scheduler.c
===================================================================
--- trunk/coregrind/m_scheduler/scheduler.c 2011-01-17 23:10:39 UTC (rev 11503)
+++ trunk/coregrind/m_scheduler/scheduler.c 2011-01-18 05:16:21 UTC (rev 11504)
@@ -1184,6 +1184,7 @@
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." );
|