This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA/RFC: dump symtab and psymtab lists
On Thu, Apr 10, 2003 at 05:49:11PM -0400, Andrew Cagney wrote:
> >Andrew Cagney <ac131313 at redhat dot 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 <table> <expression>
> >>maint search <table> <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