]>
Commit | Line | Data |
---|---|---|
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 di | |
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 dis | |
52 | if $argc == 0 | |
53 | disassemble $pc,+0x40 | |
54 | end | |
55 | if $argc == 1 | |
56 | disassemble $arg0,+0x40 | |
57 | end | |
58 | end | |
59 | define go | |
60 | jump *$arg0 | |
61 | end | |
62 | ||
63 | source /usr/local/src/blackfin/svn/toolchain/trunk/debug-helpers/gdb-scripts/bfin | |
64 | source /usr/local/src/blackfin/svn/toolchain/trunk/debug-helpers/gdb-scripts/u-boot | |
65 | source /usr/local/src/blackfin/git/toolchain/debug-helpers/gdb-scripts/bfin | |
66 | source /usr/local/src/blackfin/git/toolchain/debug-helpers/gdb-scripts/u-boot |