aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs.exp
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-02-02 21:14:33 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-02-02 21:14:33 +0000
commit18fe20335a444c79dd2de86ca31833189a85e234 (patch)
tree462421af3782b8f7cc2063ca3add0a3dd54419c7 /gdb/testsuite/gdb.base/langs.exp
parent0101ce28cf3a678cee72feb3c05e2ece19bc6e2a (diff)
downloadgdb-18fe20335a444c79dd2de86ca31833189a85e234.zip
gdb-18fe20335a444c79dd2de86ca31833189a85e234.tar.gz
gdb-18fe20335a444c79dd2de86ca31833189a85e234.tar.bz2
2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
* lib/gdb.exp (gdb_breakpoint): Add pending breakpoint support. * gdb.base/langs.exp: Fix test which attempts to create breakpoint on non-existent function to handle new pending support. * gdb.base/shlib-call.exp: Use gdb_breakpoint to set a breakpoint. * gdb.base/pending.exp: New test. * gdb.base/pending.c: New file. * gdb.base/pendshr.c: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.base/langs.exp')
-rw-r--r--gdb/testsuite/gdb.base/langs.exp11
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/langs.exp b/gdb/testsuite/gdb.base/langs.exp
index 8006bbf..a81df66 100644
--- a/gdb/testsuite/gdb.base/langs.exp
+++ b/gdb/testsuite/gdb.base/langs.exp
@@ -65,8 +65,15 @@ gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile
-gdb_test "b langs0" "Function \"langs0\" not defined\.|Breakpoint .* (deferred).*" \
- "break on nonexistent function in langs.exp"
+gdb_test_multiple "b langs0" "break on nonexistent function in langs.exp" {
+ -re "Function \"langs0\" not defined\..*Make breakpoint pending on future shared library load.*y or n. $" {
+
+ gdb_test "n" "" "break on nonexistent function in langs.exp"
+ }
+ -re "Breakpoint .* (deferred).*$gdb_prompt $" {
+ pass "break on nonexistent function in langs.exp"
+ }
+}
if {$hp_aCC_compiler} {
set isfixed 1