From: Fred Fish <fnf@fred.ninemoons.com>
To: gdb-patches@sources.redhat.com
Cc: fnf@redhat.com
Subject: [RFC] xfail a break.exp test for remote targets
Date: Sat, 02 Mar 2002 11:10:00 -0000 [thread overview]
Message-ID: <200203021910.g22JA8P04673@fred.ninemoons.com> (raw)
I just posted a fairly long analysis to the gdb-bug list about how
remote targets can miss breakpoints internal to a line or fail to
print the breakpoint info for a breakpoint at the end of a stepping
range, when single stepping over a source line. This patch will fix
the testsuite failure until the remote/native difference in resuming
execution in the single step case can be resolved.
Comments?
-Fred
2002-03-02 Fred Fish <fnf@redhat.com>
* gdb.base/break.exp: Setup xfail for remote targets for the
"step onto breakpoint" due to the way remote targets handle
breakpoints at the end of a stepping range.
Index: gdb.base/break.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/break.exp,v
retrieving revision 1.65
diff -c -p -r1.65 break.exp
*** break.exp 2002/01/13 00:32:27 1.65
--- break.exp 2002/03/02 18:50:04
*************** gdb_test "break +1" \
*** 222,227 ****
--- 222,237 ----
# Check to see if breakpoint is hit when stepped onto
+ # This will always fail for remote targets that step over the entire
+ # source line in one operation local to the target because gdb won't
+ # have breakpoints inserted for the first single step and thus won't
+ # print the breakpoint at the location it stops at after stepping.
+ # Note that removing the current stopped-at breakpoint (number 5) would
+ # cause this test to succeed. Perhaps we should try it both ways.
+ if [is_remote target] {
+ setup_xfail "*-*-*"
+ }
+
gdb_test "step" \
".*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:86.*86\[\t \]+return argc;" \
"step onto breakpoint"
next reply other threads:[~2002-03-02 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-02 11:10 Fred Fish [this message]
2002-03-02 15:01 ` 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=200203021910.g22JA8P04673@fred.ninemoons.com \
--to=fnf@fred.ninemoons.com \
--cc=fnf@redhat.com \
--cc=gdb-patches@sources.redhat.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