2004-06-07 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Mon, 7 Jun 2004 15:24:44 +0000 (15:24 +0000)
committerRandolph Chung <tausq@debian.org>
Mon, 7 Jun 2004 15:24:44 +0000 (15:24 +0000)
* gdb.base/shlib-call.exp: Allow breakpoint to be added after inferior
has started.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/shlib-call.exp

index 0590ee9fdc29cbd66d9d90bd53206a63a6eab91a..20f5d5419abb08c36eea3f91144ef9a4cb1c227e 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-07  Randolph Chung  <tausq@debian.org>
+
+       * gdb.base/shlib-call.exp: Allow breakpoint to be added after inferior
+       has started.
+
 2004-06-04  Roland McGrath  <roland@redhat.com>
 
        Fix PR gdb/1647.
index 4205253e2f53d13e667107074ac1cd2dc412d361..26a6556464de841caae48da46b4757979103d156 100644 (file)
@@ -291,17 +291,17 @@ send_gdb "set width 0\n" ; gdb_expect -re "$gdb_prompt $"
 
 # PR's 16495, 18213
 # test that we can re-set breakpoints in shared libraries
-gdb_breakpoint "shr1"
+gdb_breakpoint "shr1" "allow-pending"
 
 # FIXME: should not send "run" explicitly.  Non-portable.
 
 if ![is_remote target] {
-  gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
+  gdb_test "run" "Starting program:.*Breakpoint .,.*" \
        "run to bp in shared library"
 
   gdb_test "cont" ".*Program exited normally..*"
 
-  gdb_test "run" "Starting program:.*Breakpoint 1,.*" \
+  gdb_test "run" "Starting program:.*Breakpoint .,.*" \
        "re-run to bp in shared library (PR's 16495, 18213)"
 
   gdb_test "cont" ".*Program exited normally..*"