* gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 20 Jul 2003 17:39:16 +0000 (17:39 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 20 Jul 2003 17:39:16 +0000 (17:39 +0000)
due to insn reordering.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/selftest.exp

index 2e123135ee3bd1b8cccf45908bb4940725e3e083..3ac2523fcd2e016c37adcdf1f4294fd44fddc2bd 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-20  Andreas Schwab  <schwab@suse.de>
+
+       * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
+       due to insn reordering.
+
 2003-07-15  Andrew Cagney  <cagney@redhat.com>
 
        * gdb.asm/asm-source.exp: Do not allow "start" in the backtrace.
index 57f4f3ff7aa0db5adc8a59576d1405581c00798c..6fe601eda522a6b0939cde9a913104ae788db91e 100644 (file)
@@ -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"