From 231e3c83a3a70b11160fb0da108ebf2e0e7470e2 Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Fri, 10 Aug 2012 17:06:20 -0700 Subject: [MIPS] debuggerd and libcorkscrew support Change-Id: I5a241dc2e470148be0ad2c138e31f1aba5ab8812 --- include/corkscrew/ptrace.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') 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. */ -- cgit v1.1