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

Amitay Isaacs amitay at ozlabs.org
Wed Apr 10 14:42:24 AEST 2019


On Fri, 2019-04-05 at 19:17 +1100, Amitay Isaacs wrote:
> 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
> 

Another version coming soon ...


Amitay.
-- 

Science is nothing but trained and organized common-sense.



More information about the Pdbg mailing list