mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
fdc82b33c4
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.
40 lines
698 B
Plaintext
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
|