aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-08 22:19:56 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-08 22:19:56 +0000
commitc6030312dc71fb9decf9c442ecce3baf41517a55 (patch)
tree33453390414995aa9a41785aba68a4244a1e17cb /gdb/gdbserver
parent83c532cb59db2f7c83d9e23fb533bfc0db830fd1 (diff)
downloadgdb-c6030312dc71fb9decf9c442ecce3baf41517a55.zip
gdb-c6030312dc71fb9decf9c442ecce3baf41517a55.tar.gz
gdb-c6030312dc71fb9decf9c442ecce3baf41517a55.tar.bz2
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/server.c3
1 files changed, 2 insertions, 1 deletions
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: