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.
This commit is contained in:
Joel Brobecker 2012-03-08 22:19:56 +00:00
parent 83c532cb59
commit c6030312dc
2 changed files with 7 additions and 1 deletions

View 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

View 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: