aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-02-27 13:31:38 +0000
committerYao Qi <yao@codesourcery.com>2013-02-27 13:31:38 +0000
commitd171ca780375a83da5b414ae8c6db379e6cceef3 (patch)
treef77b0ff5dd60f35a62c3fcc863989dcd2af3b495
parent15b42fb01d638bf1ae9c7086727cd0a608237843 (diff)
downloadgdb-d171ca780375a83da5b414ae8c6db379e6cceef3.zip
gdb-d171ca780375a83da5b414ae8c6db379e6cceef3.tar.gz
gdb-d171ca780375a83da5b414ae8c6db379e6cceef3.tar.bz2
gdb/gdbserver/
* server.c (process_point_options): Print debug message when debug_threads is true.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index bd780ad..14bbe16 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-27 Yao Qi <yao@codesourcery.com>
+
+ * server.c (process_point_options): Print debug message when
+ debug_threads is true.
+
2013-02-26 Yao Qi <yao@codesourcery.com>
* tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 371647c..768eae7 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)