Commit | Line | Data |
---|---|---|
c906108c SS |
1 | echo Setting up the environment for debugging gdb.\n |
2 | ||
3 | set complaints 1 | |
4 | ||
7be570e7 | 5 | b internal_error |
c906108c SS |
6 | |
7 | b info_command | |
8 | commands | |
9 | silent | |
10 | return | |
11 | end | |
12 | ||
c906108c SS |
13 | dir @srcdir@/../libiberty |
14 | dir @srcdir@/../bfd | |
67f07146 JB |
15 | dir @srcdir@ |
16 | dir . | |
c906108c | 17 | set prompt (top-gdb) |
d97bc12b DE |
18 | |
19 | define pdie | |
20 | if $argc == 1 | |
21 | call dump_die ($arg0, 1) | |
22 | else | |
23 | if $argc == 2 | |
24 | call dump_die ($arg0, $arg1) | |
25 | else | |
26 | printf "Syntax: pdie die [depth]\n" | |
27 | end | |
28 | end | |
29 | end | |
30 | ||
31 | document pdie | |
32 | Pretty print a DWARF DIE. | |
33 | Syntax: pdie die [depth] | |
34 | end |