This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: $thread convenience variable
On Tue, Feb 07, 2006 at 10:57:08AM +0000, Andrew STUBBS wrote:
> Daniel Jacobowitz wrote:
> >On Fri, Feb 03, 2006 at 01:01:40PM +0000, Andrew STUBBS wrote:
> >>It might be better to do this in cli-script.c in the same way as
> >>$arg0-$arg9 and $argc. That way it would always be up to date and would
> >>be read-only.
> >>
> >>Of course these substitutions currently only work within control
> >>structures, such as if, while or user-defined commands. (Hmmm, a quick
> >>test also shows they crash GDB if not used within a user-define.)
> >
> >Test case? I tried a couple places, it didn't crash.
> >
>
> Just on the command line, not in a define:
>
> if 1 == 1
> echo $arg0
> end
Easily fixed, will post.
--
Daniel Jacobowitz
CodeSourcery