From c6030312dc71fb9decf9c442ecce3baf41517a55 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 8 Mar 2012 22:19:56 +0000 Subject: [PATCH] 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(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 611c900e0ef..133a71fef29 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 586581c78c4..3c97dbdce8f 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: -- 2.30.2