2002-12-23 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Mon, 23 Dec 2002 16:56:25 +0000 (16:56 +0000)
committerDavid Carlton <carlton@bactrian.org>
Mon, 23 Dec 2002 16:56:25 +0000 (16:56 +0000)
* gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
and current_directory initialization.

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

index 23c9b107047f52ae8acfdbabb46b8d3cf3f99068..1a0ca466f3c469d5d813bc0d20a5e697fe9f1c24 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-23  David Carlton  <carlton@math.stanford.edu>
+
+       * gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
+       and current_directory initialization.
+
 2002-12-22  Jim Blandy  <jimb@redhat.com>
 
        * gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
index 573b8aa47665a7051b920d3e171d4c3a7f3129fb..bf71c49cbae0b1af0357baf29aba7d9891c3e502 100644 (file)
@@ -54,6 +54,10 @@ proc do_steps_and_nexts {} {
 
     for {set count 0} {$count < 26} {incr count} {
        send_gdb "list\n"
+       # NOTE: carlton/2002-12-11: The "initial brace" and
+       # "current_directory initialization" possibilities happen to
+       # me with GCC 3.1 on i686-pc-linux-gnu when I compile with
+       # optimization.
        gdb_expect {
            -re ".*context = data.*$gdb_prompt $" {
                set description "step over context initialization"
@@ -158,6 +162,14 @@ proc do_steps_and_nexts {} {
                set description "next over textdomain PACKAGE"
                set command "next"
            }
+           -re "\[0-9\]*\t\{\r\n$gdb_prompt $" {
+               set description "step over initial brace"
+               set command "step"
+           }
+           -re ".*current_directory = gdb_dirbuf.*$gdb_prompt $" {
+               set description "step over current_directory initialization"
+               set command "step"
+           }
            -re "\[ \t\]+\{\r\n$gdb_prompt $" {
                setup_xfail "mips-*-irix5*"
                fail "$description ended up at odd location"