This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA/RFC: dump symtab and psymtab lists


Andrew Cagney <ac131313 at redhat dot 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]