|
From: <sv...@va...> - 2005-06-20 03:38:29
|
Author: njn
Date: 2005-06-20 04:38:27 +0100 (Mon, 20 Jun 2005)
New Revision: 3967
Log:
Use BACKTRACE_DEPTH consistently.
Modified:
trunk/coregrind/m_libcassert.c
Modified: trunk/coregrind/m_libcassert.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_libcassert.c 2005-06-20 03:36:51 UTC (rev 3966)
+++ trunk/coregrind/m_libcassert.c 2005-06-20 03:38:27 UTC (rev 3967)
@@ -34,7 +34,6 @@
#include "pub_core_libcassert.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcproc.h" // For VG_(gettid)()
-#include "pub_core_options.h"
#include "pub_core_stacktrace.h"
#include "pub_core_syscall.h"
#include "pub_core_tooliface.h" // For VG_(details)
@@ -60,6 +59,8 @@
# error Unknown platform
#endif
=20
+#define BACKTRACE_DEPTH 100 // nice and deep!
+
/* Pull down the entire world */
void VG_(exit)( Int status )
{
@@ -81,7 +82,7 @@
if (VG_(threads)[i].status =3D=3D VgTs_Empty) continue;
VG_(printf)( "\nThread %d: status =3D %s\n", i,=20
VG_(name_of_ThreadStatus)(VG_(threads)[i].status) );
- VG_(get_and_pp_StackTrace)( i, VG_(clo_backtrace_size) );
+ VG_(get_and_pp_StackTrace)( i, BACKTRACE_DEPTH );
}
VG_(printf)("\n");
}
@@ -89,7 +90,6 @@
__attribute__ ((noreturn))
static void report_and_quit ( const Char* report, Addr ip, Addr sp, Addr=
fp )
{
- #define BACKTRACE_DEPTH 100 // nice and deep!
Addr stacktop, ips[BACKTRACE_DEPTH];
ThreadState *tst;
=20
@@ -123,8 +123,6 @@
VG_(printf)("In the bug report, send all the above text, the valgrind=
\n");
VG_(printf)("version, and what Linux distro you are using. Thanks.\n=
\n");
VG_(exit)(1);
-
- #undef BACKTRACE_DEPTH
}
=20
void VG_(assert_fail) ( Bool isCore, const Char* expr, const Char* file,=
=20
|