* gdb.cell/fork.exp: Delete breakpoints after reaching main.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 2 Jan 2012 18:04:26 +0000 (18:04 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 2 Jan 2012 18:04:26 +0000 (18:04 +0000)
* gdb.cell/gcore.exp: Likewise.
* gdb.cell/solib-symbol.exp: Use "info symbol" instead of "break"
to verify the correct instance of main is selected.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cell/fork.exp
gdb/testsuite/gdb.cell/gcore.exp
gdb/testsuite/gdb.cell/solib-symbol.exp

index 751aa66d8abd694fb11afa49ecc99ba275ef7a27..40bedc5d12e6f6ad4d3145e91c32b7f0558792d4 100644 (file)
@@ -1,3 +1,10 @@
+2011-01-02  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gdb.cell/fork.exp: Delete breakpoints after reaching main.
+       * gdb.cell/gcore.exp: Likewise.
+       * gdb.cell/solib-symbol.exp: Use "info symbol" instead of "break"
+       to verify the correct instance of main is selected.
+
 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
 
        * dg-extract-results.sh, gdb.arch/gcore.c, gdb.arch/gdb1558.c,
index b8c603dddc28593438145bb2e9cebee51826442d..0e713e8f40f9922e7d83801943e44ffb86ff51e2 100644 (file)
@@ -61,6 +61,8 @@ if ![runto_main] then {
   return 0
 }
 
+delete_breakpoints
+
 gdb_test_no_output "set spu stop-on-load" "set spu stop-on-load"
 
 gdb_test "continue" "Continuing\\..*Temporary breakpoint \[0-9\]+, main \\(speid=.*, argp=.*, envp=.*\\) at .*$spu_file\\.c:.*spu_write_out_intr_mbox.*" \
index 304657ebb9c6977ce8374e4745b07b3de0034b7d..7986e56b0b7eef379f81e3a6e38cd7d022732dca 100644 (file)
@@ -65,6 +65,8 @@ if ![runto_main] then {
   return 0
 }
 
+delete_breakpoints
+
 gdb_test "continue" ".*Aborted.*"
 
 set escapedfilename [string_to_regexp ${objdir}/${subdir}/gcore.test]
index 274f7769f5e2f90acab201b54ed9957e74891893..dc262c82a7aa9849a48492093131280a49ee643d 100644 (file)
@@ -61,20 +61,19 @@ if ![runto_main] then {
   return 0
 }
 
-# Breakpoint resolved in PPU thread.
-gdb_test "break foo" \
-        "Breakpoint.*file.*$ppu_file.c.*" \
-        "br foo in break"
+# Symbol resolved in PPU thread.
+gdb_test "info symbol foo" \
+        "foo in section \.text of .*$ppu_file\[\r\n\]+.*" \
+        "info symbol foo in break"
 
 # Continue to SPU
 cont_spu_main
 check_spu_arch ""
 
-# Breakpoint resolved in SPU thread.
-delete_breakpoints
-gdb_test "break foo" \
-        "Breakpoint.*file.*$spu_file.c.*" \
-        "br foo in $spu_file.c"
+# Symbol resolved in SPU thread.
+gdb_test "info symbol foo" \
+        "foo in section \.text of .*$spu_file@.*" \
+        "info symbol foo in break-spu"
 
 gdb_exit
 return 0