]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Eliminate magic constant. Use VG_(clo_backtrace_size) instead.
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 23 Jul 2012 15:05:22 +0000 (15:05 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 23 Jul 2012 15:05:22 +0000 (15:05 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12774

coregrind/m_scheduler/scheduler.c

index 93fa109356ec95217e1b7194cba07b9a7d8a1863..4a43724bf4ef79a0a5eb1805c2ddc19fee8645f5 100644 (file)
@@ -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."    );