diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-01-21 11:03:32 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-03-11 22:48:21 +0000 |
commit | f2403c39342b723a18a2bea5ed209c8c96203d2b (patch) | |
tree | fae4982a4dbea2848a4f8468dd00b05bc90b8f50 /gdb/doc | |
parent | c4b3e547d50b01dcf909498119ff6c0af482f2c8 (diff) | |
download | binutils-f2403c39342b723a18a2bea5ed209c8c96203d2b.zip binutils-f2403c39342b723a18a2bea5ed209c8c96203d2b.tar.gz binutils-f2403c39342b723a18a2bea5ed209c8c96203d2b.tar.bz2 |
gdb: New maint info line-table command.
Add a new command 'maint info line-table' to display the contents of
GDB's internal line table structure. Useful when trying to understand
problems (within gdb) relating to line tables.
gdb/ChangeLog:
* symmisc.c (maintenance_info_line_tables): New function.
(maintenance_print_one_line_table): New function.
(_initialize_symmisc): Register 'maint info line-table' command.
* NEWS: Mention new command.
gdb/doc/ChangeLog:
* gdb.texinfo (Symbols): Document new 'maint info line-table'
command.
gdb/testsuite/ChangeLog:
* gdb.base/maint.exp: New tests for 'maint info line-table'.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 3a98647..3d49085 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com> + + * gdb.texinfo (Symbols): Document new 'maint info line-table' + command. + 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca> * gdb.texinfo (Convenience Functions): Document $_as_string. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 0b249f4..bf7df35 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -17175,6 +17175,15 @@ line 1574. (@value{GDBP}) @end smallexample +@kindex maint info line-table +@cindex listing @value{GDBN}'s internal line tables +@cindex line tables, listing @value{GDBN}'s internal +@item maint info line-table @r{[} @var{regexp} @r{]} + +List the @code{struct linetable} from all @code{struct symtab} +instances whose name matches @var{regexp}. If @var{regexp} is not +given, list the @code{struct linetable} from all @code{struct symtab}. + @kindex maint set symbol-cache-size @cindex symbol cache size @item maint set symbol-cache-size @var{size} |