From 0c3f1ae66b693ef0f37066b697cc10a07ef56acc Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 22 May 2015 14:26:13 -0700 Subject: Refactor dump_memory function. - Add dumping memory around registers for x86/x86_64. - Add unit tests for new dump_memory function. - Cleanup all of the machine.cpp files. - Increase the high address check for 32 bit, and decrease the high address allowed for 64 bit slightly to match mips64. Bug: 21206576 (cherry picked from commit e8bc77eb845ab5557a4c98fe0da604d4a3740bef) Change-Id: I49ec237e30076a232f084da1072bf9aba15dc0cd --- debuggerd/machine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debuggerd/machine.h') diff --git a/debuggerd/machine.h b/debuggerd/machine.h index fca9fbe..e65b147 100644 --- a/debuggerd/machine.h +++ b/debuggerd/machine.h @@ -19,9 +19,11 @@ #include +#include + #include "utility.h" -void dump_memory_and_code(log_t* log, pid_t tid); +void dump_memory_and_code(log_t* log, Backtrace* backtrace); void dump_registers(log_t* log, pid_t tid); #endif // _DEBUGGERD_MACHINE_H -- cgit v1.1