]> git.wh0rd.org - home.git/blobdiff - .gdbinit
updates
[home.git] / .gdbinit
index 08958302c5fafbcff1e1c0b3eed755d6d3b96589..d12842531c23680d1c96ee3f89781dfe4225e1ac 100644 (file)
--- 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