Switch the inferior before outputting its id in "info inferiors"
[deliverable/binutils-gdb.git] / gdb / gdb-gdb.gdb.in
CommitLineData
c906108c
SS
1echo Setting up the environment for debugging gdb.\n
2
edceb2a9
JK
3if !$gdb_init_done
4 set variable $gdb_init_done = 1
c906108c 5
edceb2a9 6 set complaints 1
c906108c 7
edceb2a9
JK
8 b internal_error
9
10 b info_command
11 commands
12 silent
13 return
14 end
15
16 dir @srcdir@/../libiberty
17 dir @srcdir@/../bfd
18 dir @srcdir@
19 dir .
20
21 # Commands below are not fully compatible with wrapping into an 'if' block.
c906108c
SS
22end
23
c906108c 24set prompt (top-gdb)
d97bc12b
DE
25
26define pdie
27 if $argc == 1
28 call dump_die ($arg0, 1)
29 else
30 if $argc == 2
31 call dump_die ($arg0, $arg1)
32 else
33 printf "Syntax: pdie die [depth]\n"
34 end
35 end
36end
37
38document pdie
39Pretty print a DWARF DIE.
40Syntax: pdie die [depth]
41end
This page took 1.394842 seconds and 4 git commands to generate.