]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use VALGRIND_PRINTF to print the first line of the message so that
authorTom Hughes <tom@compton.nu>
Fri, 30 Jul 2010 13:14:11 +0000 (13:14 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 30 Jul 2010 13:14:11 +0000 (13:14 +0000)
we only get one copy of the backtrace. Reported in bug #246258.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11244

coregrind/m_replacemalloc/vg_replace_malloc.c

index 42e4731cae38a6841154aefcd9ab4be3fd165aad..b861e06dd9619d6fc899374b3f581b231f6d6864 100644 (file)
@@ -219,7 +219,7 @@ static void init(void);
       v = (void*)VALGRIND_NON_SIMD_CALL1( info.tl_##vg_replacement, n ); \
       MALLOC_TRACE(" = %p\n", v ); \
       if (NULL == v) { \
-         VALGRIND_PRINTF_BACKTRACE( \
+         VALGRIND_PRINTF( \
             "new/new[] failed and should throw an exception, but Valgrind\n"); \
          VALGRIND_PRINTF_BACKTRACE( \
             "   cannot throw exceptions and so is aborting instead.  Sorry.\n"); \