From 8172766a9309627ee68f193fc5443af78f1d8f85 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 29 Sep 2009 19:24:46 +0000 Subject: gdb/testsuite/ * 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/gdb.base/breakpoint-shadow.exp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'gdb/testsuite/gdb.base') diff --git a/gdb/testsuite/gdb.base/breakpoint-shadow.exp b/gdb/testsuite/gdb.base/breakpoint-shadow.exp index a787bb6..fcc50dd 100644 --- a/gdb/testsuite/gdb.base/breakpoint-shadow.exp +++ b/gdb/testsuite/gdb.base/breakpoint-shadow.exp @@ -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 { -- cgit v1.1