]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Made debugging output for the code that computes the highest used stack address more...
authorBart Van Assche <bvanassche@acm.org>
Tue, 21 Jul 2009 15:13:03 +0000 (15:13 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 21 Jul 2009 15:13:03 +0000 (15:13 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10506

drd/drd_clientreq.c

index cbd5c05348fb60dadcb53ea8a73e2fdcb4dfb9b4..e888e064ed728e00736aff5c8923b9be92c8b502 100644 (file)
@@ -185,11 +185,16 @@ static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret)
 
          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