binutils-gdb/gdb/gdb-gdb.gdb.in
Tom Tromey fdc82b33c4 Move some code from dwarf2/read.c to die.c
This patch introduces a new file, dwarf2/die.c, and moves some
DIE-related code out of dwarf2/read.c and into this new file.  This is
just a small part of the long-term project to split up read.c.
(According to 'wc', dwarf2/read.c is the largest file in gdb by around
8000 LOC.)

Regression tested on x86-64 Fedora 36.
2023-02-12 13:03:58 -07:00

40 lines
698 B
Plaintext

echo Setting up the environment for debugging gdb.\n
if !$gdb_init_done
set variable $gdb_init_done = 1
set complaints 1
b internal_error_loc
# This provides an easy way to break into the top-level GDB by
# typing "info".
b info_command
commands
silent
# This avoids the voluminous output of "info".
return
end
# Commands below are not fully compatible with wrapping into an 'if' block.
end
set prompt (top-gdb)
define pdie
if $argc == 1
call $arg0->dump (1)
else
if $argc == 2
call $arg0->dump ($arg1)
else
printf "Syntax: pdie die [depth]\n"
end
end
end
document pdie
Pretty print a DWARF DIE.
Syntax: pdie die [depth]
end