X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.gdbinit;fp=.gdbinit;h=d12842531c23680d1c96ee3f89781dfe4225e1ac;hb=1bcd182d7d229d4a738141981ac9e0db16648711;hp=08958302c5fafbcff1e1c0b3eed755d6d3b96589;hpb=145ec29a3522cf943b95a332003cd7335c47cd40;p=home.git diff --git a/.gdbinit b/.gdbinit index 0895830..d128425 100644 --- a/.gdbinit +++ b/.gdbinit @@ -40,7 +40,7 @@ define bfin target remote bfin:1234 end -define dis +define di if $argc == 0 disassemble $pc ($pc + 0x40) end @@ -48,6 +48,14 @@ define dis disassemble $arg0 ($arg0 + 0x40) end end +define dis + if $argc == 0 + disassemble $pc,+0x40 + end + if $argc == 1 + disassemble $arg0,+0x40 + end +end define go jump *$arg0 end