Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Rob Quill" <rob.quill@gmail.com>
To: gdb@sourceware.org
Subject: Various command file questions
Date: Sun, 14 Jan 2007 14:02:00 -0000	[thread overview]
Message-ID: <baf6008d0701140602r4d1610ebnb5ca1b95226668e2@mail.gmail.com> (raw)

Hi,

Appologies for the non-descriptive subject, but I couldn't think of
one that covered all the questions I wanted to ask.

The script I current have is of the form

checkpoint
while $_exitcode == void(0)
...
end
restore 1

The aim being for a checkpoint to be made, then the program ran until
it terminates, then some information printed, then the program
restored.

The problems are as follows:

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.

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.

Finally, is there a way to record the number of a checkpoint when it
is created, so that it can be used with the restore command later? As
currently the script assumes that the checkpouint created at the
beginning is checkpoint 1.

Thanks for your help.

Rob


             reply	other threads:[~2007-01-14 14:02 UTC|newest]

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

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=baf6008d0701140602r4d1610ebnb5ca1b95226668e2@mail.gmail.com \
    --to=rob.quill@gmail.com \
    --cc=gdb@sourceware.org \
    /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