mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-05 00:04:22 +08:00
4fd6c7e872
As discussed on gdb-patches, this restores info_command and the breakpoint on info_command in gdb-gdb.gdb. This reverts a tiny part of0743fc83c0
("Replace most calls to help_list and cmd_show_list"), as well as652fc23a30
("Remove gdb-gdb.gdb breakpoint on disappeared function info_command."). gdb/ChangeLog 2020-05-11 Tom Tromey <tromey@adacore.com> * cli/cli-cmds.c (info_command): Restore. (_initialize_cli_cmds): Use add_prefix_command for "info". * gdb-gdb.gdb.in: Restore breakpoint on info_command.
45 lines
776 B
Plaintext
45 lines
776 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
|
|
|
|
# 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
|