From: Andrew Cagney <cagney@gnu.org>
To: Michael Elizabeth Chastain <mec.gnu@mindspring.com>
Cc: drow@false.org, ac131313@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [rfa] New test sigbpt.{c,exp}
Date: Tue, 06 Jul 2004 19:29:00 -0000 [thread overview]
Message-ID: <40EAFD7B.9020506@gnu.org> (raw)
In-Reply-To: <20040706185952.3360F4B104@berman.michael-chastain.com>
> mec> How about:
> mec>
> mec> (1) before running the program, 'disassemble bowler'
> mec> (2) at the breakpoint, 'x/i $pc'
> mec> check that the output of (2) matches one of the lines in (1)
FYI, that's effectively what I did. It checks the $pc address against a
table of valid instruction addresses. It doesn't match it fails, via
gdb_test_multiple internals. All thats missing is a pattern to match
any other pc address in bowler.
Trying to single-step after corrupting the $pc would be meaningless.
Andrew
next prev parent reply other threads:[~2004-07-06 19:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-06 18:59 Michael Elizabeth Chastain
2004-07-06 19:29 ` Andrew Cagney [this message]
2004-07-07 17:31 ` Andrew Cagney
2004-07-08 14:28 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2004-07-07 18:39 Michael Elizabeth Chastain
2004-07-06 18:12 Michael Elizabeth Chastain
2004-07-06 18:30 ` Daniel Jacobowitz
2004-06-30 18:53 Michael Elizabeth Chastain
2004-07-06 15:10 ` Andrew Cagney
2004-07-06 15:35 ` Daniel Jacobowitz
2004-07-06 16:00 ` Andrew Cagney
2004-06-30 3:53 Michael Elizabeth Chastain
2004-06-30 15:25 ` Andrew Cagney
2004-06-30 15:30 ` Daniel Jacobowitz
2004-07-02 13:24 ` Andrew Cagney
2004-06-29 23:44 Andrew Cagney
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=40EAFD7B.9020506@gnu.org \
--to=cagney@gnu.org \
--cc=ac131313@redhat.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=mec.gnu@mindspring.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