* tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
authorYao Qi <yao@codesourcery.com>
Fri, 6 Jan 2012 05:58:29 +0000 (05:58 +0000)
committerYao Qi <yao@codesourcery.com>
Fri, 6 Jan 2012 05:58:29 +0000 (05:58 +0000)
defined.
[IN_PROCESS_AGENT] (debug_agent): New global variable.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 07bff94a5ff7dbfc02d3fcee2b210ba1bbd62c41..73d1b94498b240e82d2306a4dd36f8a9f4325261 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-06  Yao Qi  <yao@codesourcery.com>
+
+       * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
+       defined.
+       [IN_PROCESS_AGENT] (debug_agent): New global variable.
+
 2012-01-04  Yao Qi  <yao@codesourcery.com>
 
        * tracepoint.c (cmd_qtdp): Print debug message
index 43c538cb955cba1598ccb4cdb1ad6297c34f80d3..3e6dac00bc5082aef1bdc878bb960fac60e0ca7e 100644 (file)
@@ -71,9 +71,13 @@ trace_vdebug (const char *fmt, ...)
   va_end (ap);
 }
 
+#ifdef IN_PROCESS_AGENT
+#define debug_threads debug_agent
+#endif
+
 #define trace_debug_1(level, fmt, args...)     \
   do {                                         \
-    if (level <= debug_threads)                        \
+    if (level <= debug_threads)                \
       trace_vdebug ((fmt), ##args);            \
   } while (0)
 
@@ -370,7 +374,7 @@ tracepoint_look_up_symbols (void)
    GDBserver side.  */
 
 #ifdef IN_PROCESS_AGENT
-int debug_threads = 0;
+int debug_agent = 0;
 
 int
 read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)