aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shlib-call.exp
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-09-28 01:12:04 +0000
committerKevin Buettner <kevinb@redhat.com>2002-09-28 01:12:04 +0000
commit6fde09ad290932de048764393daeb7d363c971fa (patch)
tree8b72946c88e58d9a6d08d2bd4767aef95676b3bb /gdb/testsuite/gdb.base/shlib-call.exp
parent8ba4dac030f0e32ab1589cf58e1dff856084bee9 (diff)
downloadgdb-6fde09ad290932de048764393daeb7d363c971fa.zip
gdb-6fde09ad290932de048764393daeb7d363c971fa.tar.gz
gdb-6fde09ad290932de048764393daeb7d363c971fa.tar.bz2
* gdb.base/annota1.exp (info break): Make directory components of
path optional since not all compilers emit this debug information. * gdb.base/shlib-call.exp (step inside shr2): Don't fail if first step ends up stepping out of the function instead of stopping on the epilogue.
Diffstat (limited to 'gdb/testsuite/gdb.base/shlib-call.exp')
-rw-r--r--gdb/testsuite/gdb.base/shlib-call.exp27
1 files changed, 18 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.base/shlib-call.exp b/gdb/testsuite/gdb.base/shlib-call.exp
index dd88274..8fe8b22 100644
--- a/gdb/testsuite/gdb.base/shlib-call.exp
+++ b/gdb/testsuite/gdb.base/shlib-call.exp
@@ -239,18 +239,27 @@ gdb_expect {
#step -return
send_gdb "step\n"
+ # A step at this point will either take us entirely out of
+ # the function or into the function's epilogue. The exact
+ # behavior will differ depending upon upon whether or not
+ # the compiler emits line number information for the epilogue.
gdb_expect {
- -re ".*\\\}.*$gdb_prompt $" { pass "step inside shr2 (shlib func)"}
- -re ".*$gdb_prompt $" { fail "step inside shr2 (shlib func)" }
- timeout { fail "step inside shr2 (shlib func) (timeout)" }
- }
-
- send_gdb "step\n"
- gdb_expect {
- -re "main \\(\\) at.*g = mainshr1\\(g\\);.*$gdb_prompt $" { pass "step out of shr2 to main"}
- -re ".*$gdb_prompt $" { fail "step out of shr2 to main" }
+ -re "main \\(\\) at.*g = mainshr1\\(g\\);.*$gdb_prompt $" {
+ pass "step out of shr2 to main"
+ }
+ -re ".*\\\}.*$gdb_prompt $" {
+ pass "step out of shr2 to main (stopped in shr2 epilogue)"
+ send_gdb "step\n"
+ gdb_expect {
+ -re "main \\(\\) at.*g = mainshr1\\(g\\);.*$gdb_prompt $" { pass "step out of shr2 epilogue to main"}
+ -re ".*$gdb_prompt $" { fail "step out of shr2 epilogue to main" }
+ timeout { fail "step out of shr2 epilogue to main (timeout)" }
+ }
+ }
+ -re ".*$gdb_prompt $" { fail "step out of shr2" }
timeout { fail "step out of shr2 to main (timeout)" }
}
+
#print mainshr1(1)
send_gdb "print mainshr1(1)\n"