summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2012-08-10 17:06:20 -0700
committerRaghu Gandham <raghu@mips.com>2012-08-10 18:16:20 -0700
commit231e3c83a3a70b11160fb0da108ebf2e0e7470e2 (patch)
tree0469db2e9a4118ffdd3eacfa096286adf45d4a8b /include
parent7b682c4787e06be193ac3d2a1071e0feb5e4ba58 (diff)
downloadsystem_core-231e3c83a3a70b11160fb0da108ebf2e0e7470e2.zip
system_core-231e3c83a3a70b11160fb0da108ebf2e0e7470e2.tar.gz
system_core-231e3c83a3a70b11160fb0da108ebf2e0e7470e2.tar.bz2
[MIPS] debuggerd and libcorkscrew support
Change-Id: I5a241dc2e470148be0ad2c138e31f1aba5ab8812
Diffstat (limited to 'include')
-rw-r--r--include/corkscrew/ptrace.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/corkscrew/ptrace.h b/include/corkscrew/ptrace.h
index 172e348..9e0da78 100644
--- a/include/corkscrew/ptrace.h
+++ b/include/corkscrew/ptrace.h
@@ -64,6 +64,19 @@ typedef struct pt_regs_x86 {
} pt_regs_x86_t;
#endif
+#if __mips__
+/* ptrace() GET_REGS context. */
+typedef struct pt_regs_mips {
+ uint64_t regs[32];
+ uint64_t lo;
+ uint64_t hi;
+ uint64_t cp0_epc;
+ uint64_t cp0_badvaddr;
+ uint64_t cp0_status;
+ uint64_t cp0_cause;
+} pt_regs_mips_t;
+#endif
+
/*
* Initializes a memory structure for accessing memory from this process.
*/