From: Julian Seward Date: Mon, 28 Aug 2006 12:36:11 +0000 (+0000) Subject: Merge r5999 (BartV: Don't print more lines of a stack-trace than were X-Git-Tag: svn/VALGRIND_3_2_1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00721d2937f47674feb6559266d7f66dcce05b54;p=thirdparty%2Fvalgrind.git Merge r5999 (BartV: Don't print more lines of a stack-trace than were obtained.) git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH@6027 --- diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index 0eb2d0e4f6..c502a3f5a3 100644 --- a/coregrind/m_stacktrace.c +++ b/coregrind/m_stacktrace.c @@ -412,8 +412,8 @@ void VG_(pp_StackTrace) ( StackTrace ips, UInt n_ips ) void VG_(get_and_pp_StackTrace) ( ThreadId tid, UInt n_ips ) { Addr ips[n_ips]; - VG_(get_StackTrace)(tid, ips, n_ips); - VG_(pp_StackTrace) ( ips, n_ips); + UInt n_ips_obtained = VG_(get_StackTrace)(tid, ips, n_ips); + VG_(pp_StackTrace)(ips, n_ips_obtained); }