OSDN Git Service

PR 11123
[pf3gnuchains/pf3gnuchains3x.git] / gdb / gdbinit.in
1 echo Setting up the environment for debugging gdb.\n
2
3 set complaints 1
4
5 b internal_error
6
7 b info_command
8 commands
9         silent
10         return
11 end
12
13 dir @srcdir@/../libiberty
14 dir @srcdir@/../bfd
15 dir @srcdir@
16 dir .
17 set prompt (top-gdb) 
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