From: Tom Hughes Date: Fri, 30 Jul 2010 13:14:11 +0000 (+0000) Subject: Use VALGRIND_PRINTF to print the first line of the message so that X-Git-Tag: svn/VALGRIND_3_6_0~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e134e4e89ae3f43c8ba3325e03a256c167b42cb6;p=thirdparty%2Fvalgrind.git Use VALGRIND_PRINTF to print the first line of the message so that we only get one copy of the backtrace. Reported in bug #246258. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11244 --- diff --git a/coregrind/m_replacemalloc/vg_replace_malloc.c b/coregrind/m_replacemalloc/vg_replace_malloc.c index 42e4731cae..b861e06dd9 100644 --- a/coregrind/m_replacemalloc/vg_replace_malloc.c +++ b/coregrind/m_replacemalloc/vg_replace_malloc.c @@ -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"); \