From c6030312dc71fb9decf9c442ecce3baf41517a55 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 8 Mar 2012 22:19:56 +0000 Subject: Make breakpoint condition detection trace conditional on remote_debug. gdb/gdbserver/ChangeLog: * server.c (process_point_options): If a conditional expression is found, only print a message if remote_debug is nonzero. --- gdb/ChangeLog | 5 +++++ gdb/gdbserver/server.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 611c900..133a71f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-03-08 Joel Brobecker + + * server.c (process_point_options): If a conditional expression + is found, only print a message if remote_debug is nonzero. + 2012-03-08 Luis Machado * ax-gdb.c (gen_fetch): Fail gracefully and use error instead diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 586581c..3c97dbd 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -2908,7 +2908,8 @@ process_point_options (CORE_ADDR point_addr, char **packet) { case 'X': /* Conditional expression. */ - fprintf (stderr, "Found breakpoint condition.\n"); + if (remote_debug) + fprintf (stderr, "Found breakpoint condition.\n"); add_breakpoint_condition (point_addr, &dataptr); break; default: -- cgit v1.1