* lib/gdb.exp (is_x86_like_target): New proc.
* gdb.dwarf2/watch-notconst.exp: Use is_x86_like_target. * gdb.dwarf2/valop.exp: Use is_x86_like_target. * gdb.dwarf2/typeddwarf.exp: Use is_x86_like_target. Pass -nostdlib to compiler. * gdb.dwarf2/typeddwarf.S (_start): Rename from 'main'. * gdb.dwarf2/pieces.exp: Use is_x86_like_target. * gdb.dwarf2/implptr.exp: Use is_x86_like_target. * gdb.dwarf2/dw2-restore.exp: Check for LP64. * gdb.dwarf2/callframecfa.exp: Use is_x86_like_target.
This commit is contained in:
parent
72fc29ff12
commit
6edba76fe8
10 changed files with 36 additions and 12 deletions
|
@ -1,3 +1,16 @@
|
|||
2011-05-13 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* lib/gdb.exp (is_x86_like_target): New proc.
|
||||
* gdb.dwarf2/watch-notconst.exp: Use is_x86_like_target.
|
||||
* gdb.dwarf2/valop.exp: Use is_x86_like_target.
|
||||
* gdb.dwarf2/typeddwarf.exp: Use is_x86_like_target. Pass
|
||||
-nostdlib to compiler.
|
||||
* gdb.dwarf2/typeddwarf.S (_start): Rename from 'main'.
|
||||
* gdb.dwarf2/pieces.exp: Use is_x86_like_target.
|
||||
* gdb.dwarf2/implptr.exp: Use is_x86_like_target.
|
||||
* gdb.dwarf2/dw2-restore.exp: Check for LP64.
|
||||
* gdb.dwarf2/callframecfa.exp: Use is_x86_like_target.
|
||||
|
||||
2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
|
||||
|
||||
* gdb.python/py-function.exp: Test setting a value from a function
|
||||
|
|
|
@ -21,7 +21,7 @@ if {![dwarf2_support]} {
|
|||
return 0
|
||||
}
|
||||
# This test can only be run on x86 targets.
|
||||
if {![istarget i?86-*]} {
|
||||
if {![is_x86_like_target]} {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# Test handling of DW_CFA_restore_state.
|
||||
|
||||
# This test can only be run on x86_64 targets.
|
||||
if {![istarget x86_64-*]} {
|
||||
if {![istarget x86_64-*] || ![is_lp64_target]} {
|
||||
return 0
|
||||
}
|
||||
set testfile "dw2-restore"
|
||||
|
|
|
@ -21,7 +21,7 @@ if {![dwarf2_support]} {
|
|||
return 0
|
||||
}
|
||||
# This test can only be run on x86 targets.
|
||||
if {![istarget i?86-*]} {
|
||||
if {![is_x86_like_target]} {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ if {![dwarf2_support]} {
|
|||
return 0
|
||||
}
|
||||
# This test can only be run on x86 targets.
|
||||
if {![istarget i?86-*]} {
|
||||
if {![is_x86_like_target]} {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -212,9 +212,9 @@ f4:
|
|||
.size f4, .-f4
|
||||
.section .text.startup,"ax",@progbits
|
||||
.p2align 4,,15
|
||||
.globl main
|
||||
.type main, @function
|
||||
main:
|
||||
.globl _start
|
||||
.type _start, @function
|
||||
_start:
|
||||
.LFB4:
|
||||
# typeddwarf.c:87
|
||||
.LM37:
|
||||
|
@ -314,7 +314,7 @@ main:
|
|||
# SUCC: EXIT [100.0%]
|
||||
ret
|
||||
.LFE4:
|
||||
.size main, .-main
|
||||
.size _start, .-_start
|
||||
.comm vv,4,4
|
||||
.section .rodata.cst4,"aM",@progbits,4
|
||||
.align 4
|
||||
|
|
|
@ -23,11 +23,11 @@ if ![dwarf2_support] {
|
|||
}
|
||||
|
||||
# This test can only be run on x86 targets.
|
||||
if { ![istarget i?86-*] } {
|
||||
if { ![is_x86_like_target] } {
|
||||
return 0
|
||||
}
|
||||
|
||||
if { [prepare_for_testing "${test}.exp" "${test}" ${test}.S {nodebug}] } {
|
||||
if { [prepare_for_testing "${test}.exp" "${test}" ${test}.S {nodebug additional_flags=-nostdlib}] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ if {![dwarf2_support]} {
|
|||
return 0
|
||||
}
|
||||
# This test can only be run on x86 targets.
|
||||
if {![istarget i?86-*]} {
|
||||
if {![is_x86_like_target]} {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ if ![dwarf2_support] {
|
|||
}
|
||||
|
||||
# This test can only be run on x86 targets.
|
||||
if { ![istarget i?86-*] } {
|
||||
if { ![is_x86_like_target] } {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -1563,6 +1563,17 @@ proc is_lp64_target {} {
|
|||
return [set is_lp64_target_saved($board) 1]
|
||||
}
|
||||
|
||||
# Return 1 if this target is an x86 or x86-64 with -m32.
|
||||
proc is_x86_like_target {} {
|
||||
if {[istarget i?86-*]} {
|
||||
return 1
|
||||
}
|
||||
if {![istarget "x86_64-*-*"]} {
|
||||
return 0
|
||||
}
|
||||
return [is_ilp32_target]
|
||||
}
|
||||
|
||||
# Run a test on the target to see if it supports vmx hardware. Return 0 if so,
|
||||
# 1 if it does not. Based on 'check_vmx_hw_available' from the GCC testsuite.
|
||||
|
||||
|
|
Loading…
Reference in a new issue