From d171ca780375a83da5b414ae8c6db379e6cceef3 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 27 Feb 2013 13:31:38 +0000 Subject: [PATCH] gdb/gdbserver/ * server.c (process_point_options): Print debug message when debug_threads is true. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/server.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index bd780ad963b..14bbe16b845 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2013-02-27 Yao Qi + + * server.c (process_point_options): Print debug message when + debug_threads is true. + 2013-02-26 Yao Qi * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 371647c0666..768eae7f3d1 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -2860,7 +2860,8 @@ process_point_options (CORE_ADDR point_addr, char **packet) if (*dataptr == 'X') { /* Conditional expression. */ - fprintf (stderr, "Found breakpoint condition.\n"); + if (debug_threads) + fprintf (stderr, "Found breakpoint condition.\n"); add_breakpoint_condition (point_addr, &dataptr); } else if (strncmp (dataptr, "cmds:", strlen ("cmds:")) == 0) -- 2.30.2