binutils-gdb/gdb/gdb-gdb.gdb.in
Simon Marchi a5a0a4fd0f gdb: internal_error -> internal_error_loc in gdb-gdb.gdb.in
Commit f34652de0b ("internal_error: remove need to pass
__FILE__/__LINE__") renamed the internal_error function to
internal_error_loc.  Change gdb-gdb.gdb.in accordingly.

Change-Id: I876e1623607b6becf74ade53d102ead53a74ed86
2022-10-25 00:12:38 -04:00

45 lines
780 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
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