Re: RFA/RFC: dump symtab and psymtab lists

Daniel Jacobowitz
2003-04-10T21:56:00Z

On Thu, Apr 10, 2003 at 05:49:11PM -0400, Andrew Cagney wrote:
> >Andrew Cagney <ac131313@redhat.com> writes:
> >
> >>> Could you suggest a way I can provide the utility I need, without
> >>> introducing an unnecessary inconsistency? I'm not sure what you're
> >>> looking for.
> >
> >>
> >>Some level of consistency with the rest of the CLI (which isn't easy).
> >>
> >
> >>> How about 'maint print symtabs [-matching REGEXP] [outfile]'?
> >
> >>
> >>maint grep <expression>
> >>maint search <expression>
> >
> >
> >Okay, here's a revised patch that calls them "maint list {,p}symtab".
>
> Unfortunatly, there is `(gdb) list' command, so one would expect a
> certain level of correspondance between `(gdb) list' and `(gdb maint
> list'. This is like `(gdb) info breakpoints' vs `(gdb) maint info
> breakpoints'.
>
> This also rules out my `maint search' suggestion :-(
> `maint query <db> <query>'?
>
> >Perhaps commands that produce so much output that they need to be able
> >to send it to a file should be renamed to "maint dump"?
>
> True.

I think this is an excellent idea.

It does point out that expecting the correspondence may be unwise. We
already have both print and dump.

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer