This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: $thread convenience variable
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: Vladimir Prus <ghost at cs dot msu dot su>, Eli Zaretskii <eliz at gnu dot org>, gdb at sources dot redhat dot com
- Date: Mon, 6 Feb 2006 18:48:59 -0500
- Subject: Re: $thread convenience variable
- References: <drl4fn$4h8$1@sea.gmane.org> <u64nwyaiv.fsf@gnu.org> <200602031410.42115.ghost@cs.msu.su> <43E35434.4070201@st.com>
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.
--
Daniel Jacobowitz
CodeSourcery