diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-09-06 18:16:41 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-09-06 18:16:41 +0300 |
commit | 7c29578e36d41f97ac3bdb76157ea5ba0a93eb98 (patch) | |
tree | 7fec236cb7b9a81bcc3d820287dedaa565dbda3c /%HOME% | |
parent | gdb: add command bta (diff) | |
download | linux-home-7c29578e36d41f97ac3bdb76157ea5ba0a93eb98.tar.gz linux-home-7c29578e36d41f97ac3bdb76157ea5ba0a93eb98.zip |
gdb: add command xxd
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.gdbinit | 5 |
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 |