diff options
author | Christopher Ferris <cferris@google.com> | 2015-01-26 13:31:52 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2015-01-26 13:52:35 -0800 |
commit | b817094081bb22f33bcd688d583d619b099eb32f (patch) | |
tree | 690b16d42360f5c0d5591fc574a464ff8a6f990b /debuggerd/mips | |
parent | c49f51c451516bf06afc6d71947eb11cc4627273 (diff) | |
download | system_core-b817094081bb22f33bcd688d583d619b099eb32f.zip system_core-b817094081bb22f33bcd688d583d619b099eb32f.tar.gz system_core-b817094081bb22f33bcd688d583d619b099eb32f.tar.bz2 |
Remove the pt_regs_mips_t structure.
The kernel finally has the pt_regs structure properly defined for mips,
so we don't need to define it ourselves.
Change-Id: Ifdf75ed827cd2390962e9b3a182bdbbf02fe0732
Diffstat (limited to 'debuggerd/mips')
-rw-r--r-- | debuggerd/mips/machine.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/debuggerd/mips/machine.cpp b/debuggerd/mips/machine.cpp index 97834c7..1145963 100644 --- a/debuggerd/mips/machine.cpp +++ b/debuggerd/mips/machine.cpp @@ -29,22 +29,10 @@ #define R(x) (static_cast<unsigned int>(x)) -// The MIPS uapi ptrace.h has the wrong definition for pt_regs. PTRACE_GETREGS -// writes 64-bit quantities even though the public struct uses 32-bit ones. -struct pt_regs_mips_t { - 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; -}; - // If configured to do so, dump memory around *all* registers // for the crashing thread. void dump_memory_and_code(log_t* log, pid_t tid) { - pt_regs_mips_t r; + pt_regs r; if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { return; } @@ -85,7 +73,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) { } void dump_registers(log_t* log, pid_t tid) { - pt_regs_mips_t r; + pt_regs r; if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { _LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno)); return; |