This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Processing of convenience variables for scripts ...
- From: Richard Sharpe <rsharpe at ns dot aus dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: Andrew Cagney <ac131313 at redhat dot com>, <gdb at sources dot redhat dot com>
- Date: Thu, 21 Nov 2002 04:22:53 +1030 (CST)
- Subject: Re: Processing of convenience variables for scripts ...
On Wed, 20 Nov 2002, Daniel Jacobowitz wrote:
> On Wed, Nov 20, 2002 at 11:32:24AM -0500, Andrew Cagney wrote:
> > >The loop works, but add-symbol-file seems to be called without the
> > >>convenience variables being expanded.
> > >>
> > >>Have it got that right?
> > >>
> > >>If so, what would be the first step to get them expanded?
> > >
> > >
> > >add-symbol-file takes constants, not expressions - so variables are not
> > >expanded. This should probably change but it's not clear how, given
> > >the parser...
> >
> > A quick/dirty hack would be:
> >
> > eval .....
> >
> > similar to the SH equivalent. I suspect an eval will be needed anyway.
>
> Honestly, I'd rather define the CLI grammar I've been talking about
> than add any more quick hacks. That's a good 6.0 thing to do, clean up
> our CLI a little...
I have a short-term need and a long-term need.
I am willing to expend effort on both. Where is the description of this
grammar?
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com