diff options
author | David 'Digit' Turner <digit@google.com> | 2011-01-26 15:11:04 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2011-02-01 14:38:30 +0100 |
commit | 2c259914a0c5d49a3fcb525a75f4817a3a99a6c8 (patch) | |
tree | b2eab7ac3f8bdcd1007a0853681e4ebf69b108aa /debuggerd/utility.h | |
parent | 305b4b0f6069d733d3023a57fdc8a6d9cf7de2a6 (diff) | |
download | system_core-2c259914a0c5d49a3fcb525a75f4817a3a99a6c8.tar.gz system_core-2c259914a0c5d49a3fcb525a75f4817a3a99a6c8.tar.bz2 system_core-2c259914a0c5d49a3fcb525a75f4817a3a99a6c8.zip |
debuggerd: Fix missing include.
The structure user_vfp is incorrectly defined in bionic/libc/kernel/arch-arm/asm/ptrace.h
at the moment, while it should be under bionic/libc/kernel/arch-arm/asm/user.h instead.
Before moving its definition in the corresponding source files, we need to fix its users.
It happens that debuggerd is the only one for now, so fix this by including <linux/user.h>
instead (which will include <asm/user.h> and <asm/ptrace.h>).
Also, make the debug output less chatty by specifying all symbols to be listed
through XLOG2 instead of XLOG.
Change-Id: I16e0fa700945d86efd44ee885a84ad609c0a9b58
Diffstat (limited to 'debuggerd/utility.h')
-rw-r--r-- | debuggerd/utility.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debuggerd/utility.h b/debuggerd/utility.h index 0682b8554..45e2067ab 100644 --- a/debuggerd/utility.h +++ b/debuggerd/utility.h @@ -57,10 +57,19 @@ const char *map_to_name(mapinfo *mi, unsigned pc, const char* def); extern void _LOG(int tfd, bool in_tombstone_only, const char *fmt, ...); #define LOG(fmt...) _LOG(-1, 0, fmt) + +/* Set to 1 for normal debug traces */ #if 0 #define XLOG(fmt...) _LOG(-1, 0, fmt) #else #define XLOG(fmt...) do {} while(0) #endif +/* Set to 1 for chatty debug traces. Includes all resolved dynamic symbols */ +#if 0 +#define XLOG2(fmt...) _LOG(-1, 0, fmt) +#else +#define XLOG2(fmt...) do {} while(0) +#endif + #endif |