mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
defined. [IN_PROCESS_AGENT] (debug_agent): New global variable.
This commit is contained in:
@ -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>
|
2012-01-04 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* tracepoint.c (cmd_qtdp): Print debug message
|
* tracepoint.c (cmd_qtdp): Print debug message
|
||||||
|
@ -71,9 +71,13 @@ trace_vdebug (const char *fmt, ...)
|
|||||||
va_end (ap);
|
va_end (ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef IN_PROCESS_AGENT
|
||||||
|
#define debug_threads debug_agent
|
||||||
|
#endif
|
||||||
|
|
||||||
#define trace_debug_1(level, fmt, args...) \
|
#define trace_debug_1(level, fmt, args...) \
|
||||||
do { \
|
do { \
|
||||||
if (level <= debug_threads) \
|
if (level <= debug_threads) \
|
||||||
trace_vdebug ((fmt), ##args); \
|
trace_vdebug ((fmt), ##args); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
@ -370,7 +374,7 @@ tracepoint_look_up_symbols (void)
|
|||||||
GDBserver side. */
|
GDBserver side. */
|
||||||
|
|
||||||
#ifdef IN_PROCESS_AGENT
|
#ifdef IN_PROCESS_AGENT
|
||||||
int debug_threads = 0;
|
int debug_agent = 0;
|
||||||
|
|
||||||
int
|
int
|
||||||
read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
|
read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
|
||||||
|
Reference in New Issue
Block a user