]> git.wh0rd.org Git - home.git/blob - .gdbinit
08958302c5fafbcff1e1c0b3eed755d6d3b96589
[home.git] / .gdbinit
1 set print pretty on
2 set prompt \e[30;1m(\e[34;1mgdb\e[30;1m)\e[0m 
3 set history save on
4 set pagination off
5 set output-radix 16
6 set remotetimeout 300
7 #handle SIGINT nostop noprint pass
8 #handle SIGQUIT stop print nopass
9 #catch fork
10 #catch vfork
11
12 define exit
13         quit
14 end
15
16 define peedi
17         target remote peedi:2000
18 end
19 define jtag
20         target remote localhost:2000
21 end
22 define kgdboc
23         set remotebaud 57600
24         if $argc == 0
25                 target remote /dev/ttyS0
26         else
27                 target remote /dev/tty$arg0
28         end
29 end
30 define kgdbocusb
31         kgdboc USB0
32 end
33 define kgdboe
34         target remote udp:bfin:6443
35 end
36 define vapier
37         target remote vapier:2000
38 end
39 define bfin
40         target remote bfin:1234
41 end
42
43 define dis
44         if $argc == 0
45                 disassemble $pc ($pc + 0x40)
46         end
47         if $argc == 1
48                 disassemble $arg0 ($arg0 + 0x40)
49         end
50 end
51 define go
52         jump *$arg0
53 end
54
55 source /usr/local/src/blackfin/svn/toolchain/trunk/debug-helpers/gdb-scripts/bfin
56 source /usr/local/src/blackfin/svn/toolchain/trunk/debug-helpers/gdb-scripts/u-boot
57 source /usr/local/src/blackfin/git/toolchain/debug-helpers/gdb-scripts/bfin
58 source /usr/local/src/blackfin/git/toolchain/debug-helpers/gdb-scripts/u-boot