diff options
author | Jim Blandy <jimb@codesourcery.com> | 2006-02-13 18:11:38 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2006-02-13 18:11:38 +0000 |
commit | 34e41e637a9134fd5d3fa00eefe4b42428e7ddc8 (patch) | |
tree | 08f55669696011ca44af757bf944ee5e72e3f027 | |
parent | 94089a50d3b7afda89669a16a52c8953fd9c4f66 (diff) | |
download | gdb-34e41e637a9134fd5d3fa00eefe4b42428e7ddc8.zip gdb-34e41e637a9134fd5d3fa00eefe4b42428e7ddc8.tar.gz gdb-34e41e637a9134fd5d3fa00eefe4b42428e7ddc8.tar.bz2 |
gdb/testsuite/ChangeLog:
2006-02-13 Jim Blandy <jimb@redhat.com>
* gdb.base/scope.exp (test_at_main): Remove logic to handle the
case where it takes two "next" commands to skip past the init
call.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/scope.exp | 22 |
2 files changed, 12 insertions, 16 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2747510..ee17900 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-02-13 Jim Blandy <jimb@redhat.com> + + * gdb.base/scope.exp (test_at_main): Remove logic to handle the + case where it takes two "next" commands to skip past the init + call. + 2006-02-12 Fred Fish <fnf@specifix.com> * gdb.base/scope.exp (test_at_main): Use gdb_test_multiple diff --git a/gdb/testsuite/gdb.base/scope.exp b/gdb/testsuite/gdb.base/scope.exp index 49386d2..a9f8dea 100644 --- a/gdb/testsuite/gdb.base/scope.exp +++ b/gdb/testsuite/gdb.base/scope.exp @@ -61,22 +61,12 @@ proc test_at_main {} { global subdir global hp_cc_compiler - # skip past init. There may be a call to __main at the start of - # main, so the first next may only get us to the init0 call. - gdb_test_multiple "next" "next over init0() in main" { - -re "$decimal.*foo \\(\\).*$gdb_prompt $" { - pass "next over init0() in main" - } - -re "$decimal.*init0 \\(\\).*$gdb_prompt $" { - send_gdb "next\n" - exp_continue - } - -re ".*$gdb_prompt $" { - fail "next over init0() in main" - gdb_suppress_tests - } - } - + # skip past init0. + # This used to do an extra "next" if the first one didn't get us + # over the call to init0, to handle calls to __main in the + # prologue, etc. But if a breakpoint at main doesn't leave us on + # the first line of real code in the function, that's a GDB bug. + gdb_test "next" "$decimal.*foo \\(\\);" "next over init0() in main" # Print scope0.c::filelocal, which is 1 |