Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew STUBBS <andrew.stubbs@st.com>
To: Rob Quill <rob.quill@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Various command file questions
Date: Mon, 15 Jan 2007 12:06:00 -0000	[thread overview]
Message-ID: <45AB6E42.1080702@st.com> (raw)
In-Reply-To: <baf6008d0701140602r4d1610ebnb5ca1b95226668e2@mail.gmail.com>

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


      reply	other threads:[~2007-01-15 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-14 14:02 Rob Quill
2007-01-15 12:06 ` Andrew STUBBS [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45AB6E42.1080702@st.com \
    --to=andrew.stubbs@st.com \
    --cc=gdb@sourceware.org \
    --cc=rob.quill@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox