This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: New maint info line-table command.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Cc: gdb-patches at sourceware dot org, andrew dot burgess at embecosm dot com
- Date: Sun, 07 Feb 2016 18:15:48 +0200
- Subject: Re: [PATCH] gdb: New maint info line-table command.
- Authentication-results: sourceware.org; auth=none
- References: <ca54477642135f97eda104b54da83ae21f483914 dot 1454796848 dot git dot andrew dot burgess at embecosm dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Cc: Andrew Burgess <andrew.burgess@embecosm.com>
> Date: Sat, 6 Feb 2016 22:16:23 +0000
>
> 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.
Thanks.
> +@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 @var{filename}
> +
> +List the @code{struct linetable} for the symtab with @var{filename}.
I'd suggest to tell here in a couple of words what that structure
includes.
> +If @var{filename} is not given then the the @code{struct linetable}
^^^^^^^
"the" twice
> +that contains the current @var{pc} is given.
^^^^^^^^
"is listed"
> + add_cmd ("line-table", class_maintenance, maintenance_info_line_tables, _("\
> +List line tables contents for specified symtab.\n\
I suggest "List contents of line tables for the specified symtab."
The documentation parts are okay with these fixed.