This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: $thread convenience variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]