$thread convenience variable

Andrew STUBBS andrew.stubbs@st.com
Tue Feb 7 10:59:00 GMT 2006


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



More information about the Gdb mailing list