Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 052fc0a2 authored by Dmitriy Ivanov's avatar Dmitriy Ivanov
Browse files

Print ASCII near register for all archs

Bug: 17880617
Change-Id: I6870e8ac670c08e45d8efb64479976a38edfdc93
parent 65c06de7
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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';