the "ambiguous linespec" series
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / solib-symbol.exp
index aa723c65611eea2703ee953e3bdf83432e134236..d402ebb9ffd0759d4f56b84ac29369ee40acb934 100644 (file)
@@ -46,11 +46,6 @@ gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 gdb_load_shlibs $binfile_lib
 
-if ![runto_main] then {
-  fail "Can't run to main"
-  return 0
-}
-
 # Set a breakpoint in the binary.
 gdb_test "br foo2" \
         "Breakpoint.*file.*${testfile}\\.c.*" \
@@ -58,6 +53,11 @@ gdb_test "br foo2" \
 
 delete_breakpoints
 
+if ![runto_main] then {
+  fail "Can't run to main"
+  return 0
+}
+
 # Break in the library.
 gdb_test "br foo" \
         "Breakpoint.*file.*${libname}\\.c.*" \
@@ -67,9 +67,9 @@ gdb_test "continue" \
         "Continuing.*" \
         "continue"
 
-# This symbol is now looked up in the ELF library.
+# This symbol is now looked up in the ELF library and the binary.
 gdb_test "br foo2" \
-        "Breakpoint.*file.*${libname}\\.c.*" \
+        "Breakpoint.*: foo2. .2 locations..*" \
         "foo2 in mdlib"
 
 gdb_exit
This page took 0.026909 seconds and 4 git commands to generate.