summaryrefslogtreecommitdiff
path: root/include/cutils/debugger.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cutils/debugger.h')
-rw-r--r--include/cutils/debugger.h26
1 files changed, 2 insertions, 24 deletions
diff --git a/include/cutils/debugger.h b/include/cutils/debugger.h
index 285e1afcd..20e8796b7 100644
--- a/include/cutils/debugger.h
+++ b/include/cutils/debugger.h
@@ -20,31 +20,9 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-__BEGIN_DECLS
-
-#define DEBUGGER_SOCKET_NAME "android:debuggerd"
-#define DEBUGGER32_SOCKET_NAME "android:debuggerd32"
-#define DEBUGGER64_SOCKET_NAME DEBUGGER_SOCKET_NAME
+#include "debuggerd/client.h"
-typedef enum {
- // dump a crash
- DEBUGGER_ACTION_CRASH,
- // dump a tombstone file
- DEBUGGER_ACTION_DUMP_TOMBSTONE,
- // dump a backtrace only back to the socket
- DEBUGGER_ACTION_DUMP_BACKTRACE,
-} debugger_action_t;
-
-// Make sure that all values have a fixed size so that this structure
-// is the same for 32 bit and 64 bit processes.
-// NOTE: Any changes to this structure must also be reflected in
-// bionic/linker/debugger.cpp.
-typedef struct __attribute__((packed)) {
- int32_t action;
- pid_t tid;
- uint64_t abort_msg_address;
- int32_t original_si_code;
-} debugger_msg_t;
+__BEGIN_DECLS
/* Dumps a process backtrace, registers, and stack to a tombstone file (requires root).
* Stores the tombstone path in the provided buffer.