From: Florian Krohm Date: Mon, 23 Jul 2012 15:05:22 +0000 (+0000) Subject: Eliminate magic constant. Use VG_(clo_backtrace_size) instead. X-Git-Tag: svn/VALGRIND_3_8_0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d2730e1cee3c4366f8c1cbddeea21b4bbf6915;p=thirdparty%2Fvalgrind.git Eliminate magic constant. Use VG_(clo_backtrace_size) instead. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12774 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index 93fa109356..4a43724bf4 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -1428,7 +1428,7 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid ) VG_(umsg)( "valgrind: Unrecognised instruction at address %#lx.\n", VG_(get_IP)(tid)); - VG_(get_and_pp_StackTrace)(tid, 50); + VG_(get_and_pp_StackTrace)(tid, VG_(clo_backtrace_size)); #define M(a) VG_(umsg)(a "\n"); M("Your program just tried to execute an instruction that Valgrind" ); M("did not recognise. There are two possible reasons for this." );