[Pdbg] [PATCH v2 0/3] hexdump bytes from getmem

Amitay Isaacs amitay at ozlabs.org
Fri Apr 5 19:17:55 AEDT 2019


If running getmem from a terminal and if the output contains non-printable
characters, then dump output using hexdump format.

This avoids the need to introduce additional command-line option.

Amitay Isaacs (3):
  main: Add hexdump() function to dump bytes
  mem: Dump memory only if mem_read was successful
  main: Use hexdump to dump memory from gemem

 Makefile.am              |  5 ++++-
 src/mem.c                | 42 ++++++++++++++++++++++++++++++----------
 src/tests/hexdump_test.c | 26 +++++++++++++++++++++++++
 src/util.c               | 35 +++++++++++++++++++++++++++++++++
 src/util.h               | 15 ++++++++++++++
 5 files changed, 112 insertions(+), 11 deletions(-)
 create mode 100644 src/tests/hexdump_test.c

-- 
2.20.1



More information about the Pdbg mailing list