This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: >, >>, and "tee" operators
- From: Fernando Nasser <fnasser at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: Andrew Cagney <ac131313 at ges dot redhat dot com>,Tom Tromey <tromey at redhat dot com>, gdb-patches at sources dot redhat dot com,Fernando Nasser <fnasser at redhat dot com>
- Date: Tue, 13 Aug 2002 18:13:17 -0400
- Subject: Re: RFA: >, >>, and "tee" operators
- Organization: Red Hat Canada
- References: <20020723183956.GA28558@nevyn.them.org> <871y9ub6fj.fsf@fleche.redhat.com> <20020723192325.GA30738@nevyn.them.org> <87d6te8a6o.fsf@fleche.redhat.com> <20020723202051.GA5427@nevyn.them.org> <3D3F5BDF.2050209@ges.redhat.com> <20020725031026.GA20117@nevyn.them.org>
Daniel Jacobowitz wrote:
>
> GDB's option identifier varies, actually; symbol-file -readnow,
> add-symbol-file -s <section> <address> are the only two I see offhand.
> We only use / for print format characters. Mostly we just drop them
> all on one line.
>
That went in by mistake (it was before my time anyway). Not that I have
anything against it (see below).
> Well, I don't have a problem with reserving / for FMT sequences
> (anything that modifies how output is printed) and - for options
> (anything that modifies what gets done). I think '/' is only used for
> format sequences right now; at least I don't see anything otherwise in
> the manual besides display, print, and x. Heck, I actually think
> separating format specifiers and options this way is intuitive.
That was exactly my argument years ago. But I lost it (well, actually
the discussion went on and on for weeks without anyone reaching an
agreement and I gave up on the idea).
I don't see much problem in using the set commands (and thus avoinding
this issue). It also has its advantages like a show comand.
Besides, set/show commands are there for things that alter GDB's
behavior -- in the case, where output is sent.
What is the current option being defended?
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9