diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2014-12-09 16:25:46 -0800 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2014-12-10 10:21:12 -0800 |
commit | 052fc0a225e5e866d4c20a8d5baecbc3dd4a62eb (patch) | |
tree | 2cc04b63d1e437306512c2ce56b7e95f368326da /debuggerd/utility.cpp | |
parent | 65c06de7629103234bd56392db1a99ee0ab6cb79 (diff) | |
download | system_core-052fc0a225e5e866d4c20a8d5baecbc3dd4a62eb.zip system_core-052fc0a225e5e866d4c20a8d5baecbc3dd4a62eb.tar.gz system_core-052fc0a225e5e866d4c20a8d5baecbc3dd4a62eb.tar.bz2 |
Print ASCII near register for all archs
Bug: 17880617
Change-Id: I6870e8ac670c08e45d8efb64479976a38edfdc93
Diffstat (limited to 'debuggerd/utility.cpp')
-rw-r--r-- | debuggerd/utility.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/debuggerd/utility.cpp b/debuggerd/utility.cpp index 2baf9de..e10feff 100644 --- a/debuggerd/utility.cpp +++ b/debuggerd/utility.cpp @@ -131,12 +131,6 @@ int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, bool* detach_failed) return -1; } -#if defined (__mips__) -#define DUMP_MEMORY_AS_ASCII 1 -#else -#define DUMP_MEMORY_AS_ASCII 0 -#endif - void dump_memory(log_t* log, pid_t tid, uintptr_t addr) { char code_buffer[64]; char ascii_buffer[32]; @@ -183,7 +177,6 @@ void dump_memory(log_t* log, pid_t tid, uintptr_t addr) { static_cast<uintptr_t>(data)); } -#if DUMP_MEMORY_AS_ASCII for (size_t j = 0; j < sizeof(long); j++) { /* * Our isprint() allows high-ASCII characters that display @@ -197,7 +190,6 @@ void dump_memory(log_t* log, pid_t tid, uintptr_t addr) { *asc_out++ = '.'; } } -#endif p += sizeof(long); } *asc_out = '\0'; |