* Fix selftest.exp
@ 2003-07-20 8:21 Andreas Schwab
2003-07-20 15:52 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2003-07-20 8:21 UTC (permalink / raw)
To: gdb-patches
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix selftest.exp
2003-07-20 8:21 Fix selftest.exp Andreas Schwab
@ 2003-07-20 15:52 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-07-20 15:52 UTC (permalink / raw)
To: gdb-patches
On Sun, Jul 20, 2003 at 10:21:03AM +0200, Andreas Schwab wrote:
> 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.
This is OK. I hate this test...
> 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"
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-20 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-20 8:21 Fix selftest.exp Andreas Schwab
2003-07-20 15:52 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox