diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-03-08 22:19:56 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-03-08 22:19:56 +0000 |
commit | c6030312dc71fb9decf9c442ecce3baf41517a55 (patch) | |
tree | 33453390414995aa9a41785aba68a4244a1e17cb | |
parent | 83c532cb59db2f7c83d9e23fb533bfc0db830fd1 (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 3 |
2 files changed, 7 insertions, 1 deletions
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 <brobecker@adacore.com> + + * 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 <lgustavo@codesourcery.com> * 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: |