From: Pedro Alves <palves@redhat.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: Yao Qi <yao@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: Fix ARM stepping over Thumb-mode "bx pc" or "blx pc"
Date: Wed, 22 Aug 2012 18:01:00 -0000 [thread overview]
Message-ID: <50351E62.4080607@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1208131630060.21427@digraph.polyomino.org.uk>
Hi Joseph,
I'm not an ARM expert, but this looks fine to me. Go ahead.
On 08/13/2012 05:30 PM, Joseph S. Myers wrote:
> +if [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $opts] {
> + untested ${testfile}.exp
See <http://sourceware.org/gdb/wiki/GDBTestcaseCookbook>.
"In untested calls, please spell out the reason the test ends up untested, instead of just writing
the test name, as with the latter we just end up with the test name duplicated in
the gdb.sum output. For example: "
Something like:
untested "Failed to compile $srcfile"
is sufficient.
> + return -1
> +}
> +
> +if ![runto_main] then {
> + untested ${testfile}.exp
untested "could not run to main"
> + return -1
> +}
> +
> +gdb_test "stepi" "0x\[0-9a-fA-F\]+ in main \\(\\)" "stepi for bx pc"
You can use dejagnu's $hex global instead of "0x\[0-9a-fA-F\]+" .
> +
> +gdb_test "x /i \$pc" \
> + "0x\[0-9a-fA-F\]+ <main\\+4>:\[ \t\]+mov\[ \t\]+r0,\[ \t\]+#0.*" \
> + "stepi reached correct instruction"
>
Ditto.
--
Pedro Alves
next prev parent reply other threads:[~2012-08-22 18:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 17:06 Joseph S. Myers
2012-08-11 7:45 ` Yao Qi
2012-08-13 16:31 ` Joseph S. Myers
2012-08-20 11:09 ` Ping " Joseph S. Myers
2012-08-22 14:36 ` Yao Qi
2012-08-23 19:09 ` Tom Tromey
2012-08-22 18:01 ` Pedro Alves [this message]
2012-08-22 19:43 ` Tom Tromey
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=50351E62.4080607@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=joseph@codesourcery.com \
--cc=yao@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