mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Use "require" a two gdb.dwarf2 test files
A couple of ".tcl" files in gdb.dwarf2 escaped notice during the "require" refactoring. This patch fixes these to use "require" rather than if/return.
This commit is contained in:
parent
36e173e092
commit
114434a1f1
@ -16,9 +16,7 @@
|
||||
load_lib dwarf.exp
|
||||
|
||||
# This test can only be run on targets which support DWARF-2 and use gas.
|
||||
if {![dwarf2_support]} {
|
||||
return 0
|
||||
}
|
||||
require dwarf2_support
|
||||
|
||||
standard_testfile _start.c debug-names.S
|
||||
|
||||
|
@ -18,14 +18,10 @@
|
||||
load_lib dwarf.exp
|
||||
|
||||
# This test can only be run on targets which support DWARF-2 and use gas.
|
||||
if {![dwarf2_support]} {
|
||||
return 0
|
||||
}
|
||||
require dwarf2_support
|
||||
|
||||
# The .c files use __attribute__.
|
||||
if ![is_c_compiler_gcc] {
|
||||
return 0
|
||||
}
|
||||
require is_c_compiler_gcc
|
||||
|
||||
standard_testfile imported-unit-bp-alt.c .S imported-unit-bp-main.c
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user