From: Florian Krohm Date: Thu, 6 Nov 2014 22:01:15 +0000 (+0000) Subject: Merge revisions 14366 and 14367 from the BUF_REMOVAL branch to trunk. X-Git-Tag: svn/VALGRIND_3_11_0~848 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3358e09cbc42ac44352891c4a16ef536feef937;p=thirdparty%2Fvalgrind.git Merge revisions 14366 and 14367 from the BUF_REMOVAL branch to trunk. In function dump_state_togdb use VG_(gdb_printf) directly. No need to write to a buffer first. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14700 --- diff --git a/callgrind/main.c b/callgrind/main.c index 0c54d88e9e..be43fe6023 100644 --- a/callgrind/main.c +++ b/callgrind/main.c @@ -1525,9 +1525,8 @@ static void dump_state_of_thread_togdb(thread_info* ti) /* Dump current state */ static void dump_state_togdb(void) { - static HChar buf[512]; thread_info** th; - int t, p; + int t; Int orig_tid = CLG_(current_tid); VG_(gdb_printf)("instrumentation: %s\n", @@ -1550,12 +1549,12 @@ static void dump_state_togdb(void) /* threads */ th = CLG_(get_threads)(); - p = VG_(sprintf)(buf, "threads:"); + VG_(gdb_printf)("threads:"); for(t=1;t