Fix building Loongarch BFD with a 32-bit compiler
[binutils-gdb.git] / gdb / gdb-gdb.gdb.in
blobd5d533a0a2e070103f2fb38221fe1ddfbb47dd03
1 echo Setting up the environment for debugging gdb.\n
3 if !$gdb_init_done
4   set variable $gdb_init_done = 1
6   set complaints 1
8   b internal_error_loc
10   # This provides an easy way to break into the top-level GDB by
11   # typing "info".
12   b info_command
13   commands
14     silent
15     # This avoids the voluminous output of "info".
16     return
17   end
19   # Commands below are not fully compatible with wrapping into an 'if' block.
20 end
22 set prompt (top-gdb) 
24 define pdie
25   if $argc == 1
26     call $arg0->dump (1)
27   else
28     if $argc == 2
29       call $arg0->dump ($arg1)
30     else
31       printf "Syntax: pdie die [depth]\n"
32     end
33   end
34 end
36 document pdie
37 Pretty print a DWARF DIE.
38 Syntax: pdie die [depth]
39 end