]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge r5999 (BartV: Don't print more lines of a stack-trace than were
authorJulian Seward <jseward@acm.org>
Mon, 28 Aug 2006 12:36:11 +0000 (12:36 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 28 Aug 2006 12:36:11 +0000 (12:36 +0000)
obtained.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH@6027

coregrind/m_stacktrace.c

index 0eb2d0e4f67750bfceba5414e47957749fba3189..c502a3f5a3edaef3e67df801ee1ba3d6e439c15a 100644 (file)
@@ -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);
 }