|
From: Bart V. A. <bar...@gm...> - 2008-01-04 19:48:41
|
I don't know how it is possible, but an #include directive was missing in
the patch I submitted. The attached patch fixes this. Can this patch please
be applied ?
Thanks,
Bart.
---------- Forwarded message ----------
From: <sv...@va...>
Date: Jan 2, 2008 11:07 AM
Subject: [Valgrind-developers] valgrind: r7309 - trunk/exp-drd
To: val...@li...
Author: tom
Date: 2008-01-02 10:07:44 +0000 (Wed, 02 Jan 2008)
New Revision: 7309
Log:
Stop drd trying to get a backtrace when there is no stack pointer.
Patch from Bart Van Assche <bar...@gm...>.
Modified:
trunk/exp-drd/drd_segment.c
Modified: trunk/exp-drd/drd_segment.c
===================================================================
--- trunk/exp-drd/drd_segment.c 2007-12-30 12:28:26 UTC (rev 7308)
+++ trunk/exp-drd/drd_segment.c 2008-01-02 10:07:44 UTC (rev 7309)
@@ -64,7 +64,7 @@
sg->next = 0;
sg->prev = 0;
- if (vg_created != VG_INVALID_THREADID)
+ if (vg_created != VG_INVALID_THREADID && VG_(get_SP)(vg_created) != 0)
sg->stacktrace = VG_(record_ExeContext)(vg_created, 0);
else
sg->stacktrace = 0;
|