From: Bart Van Assche Date: Tue, 21 Jul 2009 15:13:03 +0000 (+0000) Subject: Made debugging output for the code that computes the highest used stack address more... X-Git-Tag: svn/VALGRIND_3_5_0~342 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c49fd480a12fbe19b86248ec6600682b484f4c22;p=thirdparty%2Fvalgrind.git Made debugging output for the code that computes the highest used stack address more detailed. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10506 --- diff --git a/drd/drd_clientreq.c b/drd/drd_clientreq.c index cbd5c05348..e888e064ed 100644 --- a/drd/drd_clientreq.c +++ b/drd/drd_clientreq.c @@ -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