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: Various command file questions


Rob Quill wrote:
When the program deos terminate $_exitcode is assigned a value, and so
checking if it is void causes a type error, and the error stops the
script running. I was wondering if there was any way to get around
this.

set $_exitcode = 99999 while $_exitcode == 99999 ... end

In a similar vein, when the checkpoint is restored, $_exitcode still
has a value, but I would like to be able to delete the convenience
variable so that the script may be executed again.

set $_exitcode = (void)0


... but with the above you wouldn't need to.

Dunno the answer to the other question.

Hope that helps.

Andrew


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