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: Doug Evans <dje at transmeta dot com>
- To: fnasser at redhat dot com
- Cc: gdb at sources dot redhat dot com
- Date: Sun, 8 Dec 2002 11:36:22 -0800
- Subject: Re: Processing of convenience variables for scripts ...
- References: <20021120163549.GA14036@nevyn.them.org> <Pine.LNX.4.33.0211210421480.3936-100000@ns.aus.com> <20021120183613.GA24089@nevyn.them.org>
Fernando writes:
>>Daniel Jacobowitz wrote:
>>
>> In that case, in the short term, it would be worthwhile to implement
>> eval. A simple version would just find any individual word that
>> started with a $ and substitute variables, and end up with something
>> like "eval add-symbol-file $name $addr".
>
> Seems useful to me, and probably not difficult to implement.
add-symbol-file takes a file name as the first argument and
you can't store strings (of any kind) in convenience variables.
I haven't checked FSF sources in the last few months,
maybe things have improved. If so great. If not, how would this work?