diff options
author | David Carlton <carlton@bactrian.org> | 2002-12-23 16:56:25 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2002-12-23 16:56:25 +0000 |
commit | ee73db833ff8f5272ed6f8410e9c906238384cc8 (patch) | |
tree | bc289439fc3d5569fd83c077dd68b8abb6d88b73 /gdb | |
parent | e45febe22eee94c14180d0546f7c8a878a9fabdf (diff) | |
download | gdb-ee73db833ff8f5272ed6f8410e9c906238384cc8.zip gdb-ee73db833ff8f5272ed6f8410e9c906238384cc8.tar.gz gdb-ee73db833ff8f5272ed6f8410e9c906238384cc8.tar.bz2 |
2002-12-23 David Carlton <carlton@math.stanford.edu>
* gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
and current_directory initialization.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/selftest.exp | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 23c9b10..1a0ca46 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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, diff --git a/gdb/testsuite/gdb.base/selftest.exp b/gdb/testsuite/gdb.base/selftest.exp index 573b8aa..bf71c49 100644 --- a/gdb/testsuite/gdb.base/selftest.exp +++ b/gdb/testsuite/gdb.base/selftest.exp @@ -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" |