Rename "info definitions"?

Pedro Alves pedro@codesourcery.com
Thu Sep 29 13:28:00 GMT 2011


On Thursday 29 September 2011 13:33:37, Matt Rice wrote:
> On Thu, Sep 29, 2011 at 3:54 AM, Pedro Alves <pedro@codesourcery.com> wrote:
> > On Thursday 29 September 2011 03:13:58, Matt Rice wrote:
> >> +info macro [-all] [--] MACRO
> >> +  The info macro command has new options -all and --. The first or printing
> >> +  all definitions of a macro.  The second for explicitly specifying the end
> >> +  of arguments and the beginning of the macro name.
> >
> > Why do we need [--]?  MACROS can't start with `-', can they?
> 
> not in cpp macros or m4 at least,
> lisp/scheme macros allow them i'm not sure what else may,

Ah, I now see you've put comments in that direction in the code.
Sorry I missed them before.

> I don't think any of the languages gdb currently supports allow it,
> but not positive

I'm not sure scheme macros would be a good fit for gdb's
(C/preprocessor) macros infrastructure.

> I figured someone would complain but at least there'd be a patch in
> the archives...

:-)  Given that it's optional, I don't care that much.  Fine with
me to put it in.

We could just add it back if we ever find a need though.
If a language needing it for macros would require adding more
such switches to other commands.

-- 
Pedro Alves



More information about the Gdb-patches mailing list