RFA/RFC: dump symtab and psymtab lists

Andrew Cagney ac131313@redhat.com
Thu Apr 10 02:10:00 GMT 2003


> Andrew Cagney <ac131313@redhat.com> writes:
> 
> 
>> >
>> > Right, but that doesn't make sense for this command.  It doesn't
>> > produce so much output that it needs to be directed to a file ---
>> > that's the reason the existing 'maint print' commands didn't suffice,
>> > even though they include all the info the new commands do.  And the
>> > regexp is really helpful.
> 
>> 
>> Helpful or not, the proposed syntax intentionally introduces an
>> unnecessary inconsistency into the CLI.
> 
> 
> 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>

?
Andrew




More information about the Gdb-patches mailing list