Re: [RFA, doc RFA] Fix symtab/15885

Eli Zaretskii
2013-08-24T06:48:25Z

> From: Doug Evans <dje@google.com>
> Date: Fri, 23 Aug 2013 18:11:55 -0700
>
> This patch fixes symtab/15885: gdb isn't using .gdb_index when it
> reloads symbols for a file.

Thanks.

> Index: NEWS
> ===================================================================
> RCS file: /cvs/src/src/gdb/NEWS,v
> retrieving revision 1.609
> diff -u -p -r1.609 NEWS
> --- NEWS 22 Aug 2013 20:32:54 -0000 1.609
> +++ NEWS 24 Aug 2013 00:55:05 -0000
> @@ -3,6 +3,8 @@
>
> *** Changes since GDB 7.6
>
> +* The "maintenance print objfiles" command now takes an optional regexp.
> +
> * The "catch syscall" command now works on arm*-linux* targets.
>
> * Python scripting

This part is OK.

> --- doc/gdb.texinfo 5 Aug 2013 15:39:25 -0000 1.1103
> +++ doc/gdb.texinfo 24 Aug 2013 00:55:06 -0000
> @@ -36820,10 +36820,11 @@ This command forces @value{GDBN} to flus
>
> @kindex maint print objfiles
> @cindex info for known object files
> -@item maint print objfiles
> -Print a dump of all known object files. For each object file, this
> -command prints its name, address in memory, and all of its psymtabs
> -and symtabs.
> +@item maint print objfiles [@var{regexp}]

This @item is in "@table @samp", which means each item is typeset in
monospaced font. But we don't want the brackets [] to be in that
typeface, so please use

@item maint print objfiles @r{[}@var{regexp}@r{]}

> +Print a dump of all known object files.
> +If @var{regexp} is specified, only print object files with names
^^^^^^^^^^
I'd prefer "whose names" here, it removes a slight ambiguity in this
sentence.

OK with those changes.