]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 29 Sep 2009 19:27:16 +0000 (19:27 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 29 Sep 2009 19:27:16 +0000 (19:27 +0000)
* gdb.base/breakpoint-shadow.exp: Move the ia64 part into ...
* gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests.
* gdb.arch/ia64-breakpoint-shadow.S: New file.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/breakpoint-shadow.exp

index d44a8f4e60fb5dc61dd47ba91d54f70f92bf8ccd..9fabdf7673829db974aa90cc0b9a4c859763336d 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/breakpoint-shadow.exp: Move the ia64 part into ...
+       * gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests.
+       * gdb.arch/ia64-breakpoint-shadow.S: New file.
+
 2009-09-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * gdb.objc/basicclass.exp: Disable pending breakpoint query.
index a787bb690b421ca148a5b885822be49a63bd6719..fcc50dd47306d7d6804144d8692abc86aa0c19c7 100644 (file)
@@ -48,29 +48,7 @@ gdb_test_multiple "disass main" $test {
 }
 
 gdb_test "b [gdb_get_line_number "break-first"]" "Breakpoint \[0-9\] at .*" "First breakpoint placed"
-set test "Second breakpoint placed"
-gdb_test_multiple "b [gdb_get_line_number "break-second"]" $test {
-    -re "Breakpoint \[0-9\] at (0x\[0-9a-f\]*):.*$gdb_prompt $" {
-       pass $test
-       set bpt2address $expect_out(1,string)
-    }
-}
-
-if [istarget "ia64-*-*"] then {
-    # Unoptimized code should not use the 3rd slot for the first instruction of
-    # a source line.  This is important for our test, because we want both
-    # breakpoints ("Second breakpoint" and the following one) to be in the same
-    # bundle.
-
-    set test "Second breakpoint address is valid on ia64"
-    if [string match "*\[01\]" $bpt2address] {
-       pass $test
-
-       gdb_test "b *($bpt2address + 1)" "Breakpoint \[0-9\] at .*" "Third breakpoint on ia64 in the Second breakpoint's bundle"
-    } else {
-       unresolved $test
-    }
-}
+gdb_test "b [gdb_get_line_number "break-second"]" "Breakpoint \[0-9\] at .*" "Second breakpoint placed"
 
 set test "disassembly with breakpoints"
 gdb_test_multiple "disass main" $test {