|
From: Jeremy F. <je...@go...> - 2003-12-08 21:59:14
|
CVS commit by fitzhardinge:
Patch from Tom Hughes: make --gdb-attach=yes work when a program is
killed by a fatal signal.
M +6 -1 vg_signals.c 1.52
--- valgrind/coregrind/vg_signals.c #1.51:1.52
@@ -1388,4 +1388,9 @@ static void vg_default_action(const vki_
}
+ if (VG_(is_action_requested)( "Attach to GDB", & VG_(clo_GDB_attach) )) {
+ ThreadState* tst = & VG_(threads)[ tid ];
+ VG_(swizzle_esp_then_start_GDB)( tst->m_eip, tst->m_esp, tst->m_ebp );
+ }
+
if (VG_(fatal_signal_set)) {
VG_(fatal_sigNo) = sigNo;
|