]> git.wh0rd.org - home.git/blobdiff - .gdbinit
more words
[home.git] / .gdbinit
index 594c24c4274833151931f05572b7a2814d8a9335..d12842531c23680d1c96ee3f89781dfe4225e1ac 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -4,6 +4,8 @@ set history save on
 set pagination off
 set output-radix 16
 set remotetimeout 300
+#handle SIGINT nostop noprint pass
+#handle SIGQUIT stop print nopass
 #catch fork
 #catch vfork
 
@@ -38,7 +40,7 @@ define bfin
        target remote bfin:1234
 end
 
-define dis
+define di
        if $argc == 0
                disassemble $pc ($pc + 0x40)
        end
@@ -46,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