aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-12-02 07:17:28 +0000
committerStan Shebs <shebs@codesourcery.com>1994-12-02 07:17:28 +0000
commit3046ecae1f55dfbe21c7e9d4ae358e20a4e1f14d (patch)
tree8b0ef26d86c65d01fb2dc48a061391de005ba636 /gdb/testsuite
parente9c99bc0ee4e942d9a9f54215ac04812902e7bb0 (diff)
downloadgdb-3046ecae1f55dfbe21c7e9d4ae358e20a4e1f14d.zip
gdb-3046ecae1f55dfbe21c7e9d4ae358e20a4e1f14d.tar.gz
gdb-3046ecae1f55dfbe21c7e9d4ae358e20a4e1f14d.tar.bz2
* gdb.base/a1-selftest.exp: Change initial stepping to know about
additional line of code that was added.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/a1-selftest.exp26
1 files changed, 16 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.base/a1-selftest.exp b/gdb/testsuite/gdb.base/a1-selftest.exp
index f22e5e8..5cf6d53 100644
--- a/gdb/testsuite/gdb.base/a1-selftest.exp
+++ b/gdb/testsuite/gdb.base/a1-selftest.exp
@@ -201,7 +201,7 @@ proc test_with_self {} {
set description "step over ttyarg initialization"
send "step\n"
expect {
- -re "init_malloc.* NULL.*$prompt $" {
+ -re ".*time_at_startup = get_run_time .*$prompt $" {
pass "$description"
}
-re ".*No such file or directory.\r\n$prompt $" {
@@ -220,17 +220,22 @@ proc test_with_self {} {
# now jump over a few functions
- set description "next over init_malloc and everything it calls"
+ set description "next over get_run_time and everything it calls"
send "next\n"
expect {
- -re "if.*SET_TOP_LEVEL.*$prompt $" {
+ -re ".*init_malloc.*$prompt $" {
pass "$description"
- }
- -re "i = .*count.*$prompt $" {
- pass "$description"
- set description "next over ALIGN_STACK_ON_STARTUP code"
- send "next\n"
+ set description "next over init_malloc and everything it calls"
+ send "next\n"
expect {
+ -re "if.*SET_TOP_LEVEL.*$prompt $" {
+ pass "$description"
+ }
+ -re "i = .*count.*$prompt $" {
+ pass "$description"
+ set description "next over ALIGN_STACK_ON_STARTUP code"
+ send "next\n"
+ expect {
-re "if.*i != 0.*$prompt $" {
pass "$description"
send "next\n"
@@ -248,8 +253,10 @@ proc test_with_self {} {
}
}
}
- }
+ }
+ }
}
+ }
-re ".*No such file or directory.\r\n$prompt $" {
pass "$description (no source available)"
}
@@ -265,7 +272,6 @@ proc test_with_self {} {
}
# -re "if \(setmp \(to_top_level\)\).*$prompt $" { pass "first next" }
-
# This one fails on Solaris (for some versions of gdb) because you
# can't next over library functions
setup_xfail "sparc-sun-solaris2" 1817