This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Version 2 of patch to add 'maint profile-gdb' command
Eli Zaretskii wrote:
>
> > Date: Wed, 19 Sep 2001 10:07:55 -0400
> > From: Fernando Nasser <fnasser@cygnus.com>
> >
> > Also, I would like someone else to support us on this move: Tom? Jason? Eli?
>
> Sorry, I probably wasn't following this thread closely enough: what
> move did you have in mind?
We have some maint commands that actually set values. Either turn things
on/off or set control variables (for instance, name of a log file).
As these are just plain commands, there is no way to examine the current
settings.
Andrew has proposed creating a class of set/show commands "set/show maint"
to replace those. It would be used for instance to turn gdb self profiling
on/off. I proposed that we use the deprecate the existent maint commands that
currently set things directly and add the new "set/show maint" for them.
So, for maintenance we would have:
maint <action> [<args>]
set maint <control var> <value>
show maint [<control var>]
All these are introspective commands that will examine/affect gdb in order
to debug, test or even to understand it.
Anyway, it is a modification on the current "maintenance" interface, that is
why I asked for some support beyond the two of us.
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9