summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-02-13 18:11:38 +0000
committerJim Blandy <jimb@codesourcery.com>2006-02-13 18:11:38 +0000
commit34e41e637a9134fd5d3fa00eefe4b42428e7ddc8 (patch)
tree08f55669696011ca44af757bf944ee5e72e3f027 /gdb/testsuite/gdb.base
parent94089a50d3b7afda89669a16a52c8953fd9c4f66 (diff)
downloadbinutils-gdb-34e41e637a9134fd5d3fa00eefe4b42428e7ddc8.tar.gz
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.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/scope.exp22
1 files changed, 6 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.base/scope.exp b/gdb/testsuite/gdb.base/scope.exp
index 49386d2899d..a9f8deaf096 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