From: Yao Qi Date: Wed, 4 Jan 2012 14:34:49 +0000 (+0000) Subject: gdb/gdbserver/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae639e8c92f3f73d2a74193700b282ff35e72a37;p=binutils-gdb.git gdb/gdbserver/ * tracepoint.c (trace_vdebug): Differentiate debug message between gdbserver and IPA. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 9a69fa2ef34..75e043b93f3 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-01-04 Yao Qi + + * tracepoint.c (trace_vdebug): Differentiate debug message + between gdbserver and IPA. + 2012-01-03 Yao Qi * tracepoint.c (tracepoint_was_hit): Don't collect for diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index ca3267cbf4e..8ed5aab3345 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -63,7 +63,11 @@ trace_vdebug (const char *fmt, ...) va_start (ap, fmt); vsprintf (buf, fmt, ap); +#ifdef IN_PROCESS_AGENT + fprintf (stderr, "ipa/tracepoint: %s\n", buf); +#else fprintf (stderr, "gdbserver/tracepoint: %s\n", buf); +#endif va_end (ap); }