|
From: <sv...@va...> - 2009-07-21 15:13:13
|
Author: bart
Date: 2009-07-21 16:13:03 +0100 (Tue, 21 Jul 2009)
New Revision: 10506
Log:
Made debugging output for the code that computes the highest used stack address more detailed.
Modified:
trunk/drd/drd_clientreq.c
Modified: trunk/drd/drd_clientreq.c
===================================================================
--- trunk/drd/drd_clientreq.c 2009-07-21 15:11:59 UTC (rev 10505)
+++ trunk/drd/drd_clientreq.c 2009-07-21 15:13:03 UTC (rev 10506)
@@ -185,11 +185,16 @@
nframes = VG_(get_StackTrace)(vg_tid, ips, n_ips, sps, fps, 0);
- VG_(message)(Vg_DebugMsg, "thread %d", drd_tid);
+ VG_(message)(Vg_DebugMsg, "thread %d: stack 0x%lx - 0x%lx - 0x%lx\n",
+ drd_tid,
+ VG_(thread_get_stack_max)(vg_tid)
+ - VG_(thread_get_stack_size)(vg_tid),
+ topmost_sp,
+ VG_(thread_get_stack_max)(vg_tid));
for (i = 0; i < nframes; i++)
{
VG_(describe_IP)(ips[i], desc, sizeof(desc));
- VG_(message)(Vg_DebugMsg, "[%2d] sp 0x%09lx fp 0x%09lx ip %s",
+ VG_(message)(Vg_DebugMsg, "[%2d] sp 0x%09lx fp 0x%09lx ip %s\n",
i, sps[i], fps[i], desc);
}
#endif
|