aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-09-06 18:16:41 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-09-06 18:16:41 +0300
commit7c29578e36d41f97ac3bdb76157ea5ba0a93eb98 (patch)
tree7fec236cb7b9a81bcc3d820287dedaa565dbda3c /%HOME%
parentgdb: add command bta (diff)
downloadlinux-home-7c29578e36d41f97ac3bdb76157ea5ba0a93eb98.tar.gz
linux-home-7c29578e36d41f97ac3bdb76157ea5ba0a93eb98.zip
gdb: add command xxd
Diffstat (limited to '')
-rw-r--r--%HOME%/.gdbinit5
1 files changed, 5 insertions, 0 deletions
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