This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Fix selftest.exp
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 20 Jul 2003 10:21:03 +0200
- Subject: Fix selftest.exp
GCC 3.4 can reorder insns quite heavily. On PPC the selftest fails
because (parts of) later statements are executed much earlier in the
function.
Andreas.
2003-07-20 Andreas Schwab <schwab@suse.de>
* gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
due to insn reordering.
--- gdb/testsuite/gdb.base/selftest.exp.~1.8.6.1.~ 2003-06-30 23:06:56.000000000 +0200
+++ gdb/testsuite/gdb.base/selftest.exp 2003-07-20 10:11:30.000000000 +0200
@@ -180,6 +180,18 @@ proc do_steps_and_nexts {} {
set description "step over gdb_sysroot initialization"
set command "step"
}
+ -re ".*ndir = 0.*$gdb_prompt $" {
+ set description "step over ndir initialization"
+ set command "step"
+ }
+ -re ".*instream = stdin.*$gdb_prompt $" {
+ set description "step over instream initialization"
+ set command "step"
+ }
+ -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf..;.*$gdb_prompt $" {
+ set description "next over getcwd"
+ set command "next"
+ }
-re "\[ \t\]+\{\r\n$gdb_prompt $" {
setup_xfail "mips-*-irix5*"
fail "$description ended up at odd location"