gdb/gdbserver/
authorYao Qi <yao@codesourcery.com>
Wed, 27 Feb 2013 13:31:38 +0000 (13:31 +0000)
committerYao Qi <yao@codesourcery.com>
Wed, 27 Feb 2013 13:31:38 +0000 (13:31 +0000)
* server.c (process_point_options): Print debug message when
debug_threads is true.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index bd780ad963b2f11be72bacbe8bccb37ffea3a107..14bbe16b84565eeb0e8a5e7d6e40c85775c5f469 100644 (file)
@@ -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.
index 371647c06660c9cbd4bf6a3d7b4be3925b7a82e5..768eae7f3d1dfb87b258150bf1661ec2ea4580ae 100644 (file)
@@ -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)