Make breakpoint condition detection trace conditional on remote_debug.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 8 Mar 2012 22:19:56 +0000 (22:19 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 8 Mar 2012 22:19:56 +0000 (22:19 +0000)
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
gdb/gdbserver/server.c

index 611c900e0efb33e0068509cd8d972db48227cf5e..133a71fef29907fdc14dccb6a10d7c6b54c5bfce 100644 (file)
@@ -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
index 586581c78c43f417357a01bca9686c61224d5cfb..3c97dbdce8f6d462cfd208248c6f90b11f2f61bf 100644 (file)
@@ -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: