From 7c29578e36d41f97ac3bdb76157ea5ba0a93eb98 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 6 Sep 2021 18:16:41 +0300 Subject: gdb: add command xxd --- %HOME%/.gdbinit | 5 +++++ 1 file changed, 5 insertions(+) (limited to '%HOME%') diff --git a/%HOME%/.gdbinit b/%HOME%/.gdbinit index f5bf8d0..58734c2 100644 --- a/%HOME%/.gdbinit +++ b/%HOME%/.gdbinit @@ -15,3 +15,8 @@ set print pretty on define bta thread apply all backtrace end + +define xxd + dump binary memory /tmp/dump.bin $arg0 ((char *)$arg0)+$arg1 + shell xxd -g 1 /tmp/dump.bin +end -- cgit v1.2.3