mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
edceb2a99a
* gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command and dir commands into an if block.
42 lines
641 B
Plaintext
42 lines
641 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
|
|
|
|
b info_command
|
|
commands
|
|
silent
|
|
return
|
|
end
|
|
|
|
dir @srcdir@/../libiberty
|
|
dir @srcdir@/../bfd
|
|
dir @srcdir@
|
|
dir .
|
|
|
|
# Commands below are not fully compatible with wrapping into an 'if' block.
|
|
end
|
|
|
|
set prompt (top-gdb)
|
|
|
|
define pdie
|
|
if $argc == 1
|
|
call dump_die ($arg0, 1)
|
|
else
|
|
if $argc == 2
|
|
call dump_die ($arg0, $arg1)
|
|
else
|
|
printf "Syntax: pdie die [depth]\n"
|
|
end
|
|
end
|
|
end
|
|
|
|
document pdie
|
|
Pretty print a DWARF DIE.
|
|
Syntax: pdie die [depth]
|
|
end
|