|
From: <sv...@va...> - 2006-08-13 04:48:30
|
Author: njn
Date: 2006-08-13 05:48:25 +0100 (Sun, 13 Aug 2006)
New Revision: 5999
Log:
Don't print more lines of a stack-trace than were obtained. Thanks to Ba=
rt
Van Assche for spotting.
Modified:
trunk/coregrind/m_stacktrace.c
Modified: trunk/coregrind/m_stacktrace.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_stacktrace.c 2006-08-09 12:38:26 UTC (rev 5998)
+++ trunk/coregrind/m_stacktrace.c 2006-08-13 04:48:25 UTC (rev 5999)
@@ -412,8 +412,8 @@
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 =3D VG_(get_StackTrace)(tid, ips, n_ips);
+ VG_(pp_StackTrace)(ips, n_ips_obtained);
}
=20
=20
|