From: Joel Brobecker <brobecker@adacore.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: Tom Tromey <tromey@redhat.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Vladimir Prus <vladimir@codesourcery.com>,
"dan@codesourcery.com" <dan@codesourcery.com>
Subject: Re: [RFA] add test for memattr, use get_number_or_range for memattr commands
Date: Wed, 23 Feb 2011 04:01:00 -0000 [thread overview]
Message-ID: <20110223034622.GS2600@adacore.com> (raw)
In-Reply-To: <4D63F936.2000505@vmware.com>
> Hmmm, how about if I initialize mem1start etc. to -1?
> Then the rest of the tests will fail but not crash.
> Is that better?
Yep, that would work for me. You could also do something like this:
if {![info exists mem1start] || ![info exists mem2start] ...} {
fail "..."
# No point in continuing the rest of the testcase if we couldn't
# get the addresses we need bla bla bla.
return
}
--
Joel
next prev parent reply other threads:[~2011-02-23 3:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 1:44 Michael Snyder
2011-02-21 9:24 ` Joel Brobecker
2011-02-21 15:06 ` Tom Tromey
2011-02-21 19:55 ` Michael Snyder
2011-02-21 23:40 ` Michael Snyder
2011-02-22 8:51 ` Joel Brobecker
2011-02-22 17:58 ` Michael Snyder
2011-02-23 4:01 ` Joel Brobecker [this message]
2011-02-23 18:34 ` Michael Snyder
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=20110223034622.GS2600@adacore.com \
--to=brobecker@adacore.com \
--cc=dan@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@vmware.com \
--cc=tromey@redhat.com \
--cc=vladimir@codesourcery.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