aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-01-30 22:51:49 -0700
committerTom Tromey <tom@tromey.com>2025-01-30 22:51:49 -0700
commit114434a1f184b0e259dcaa9b40eec90b2be13a79 (patch)
treec7fda2a9867d07bd0ffbdfc7ee8f1e3a1adee409 /gdb/testsuite/gdb.dwarf2
parent36e173e092bd36a7aae5521d4353abb9383492ad (diff)
downloadbinutils-114434a1f184b0e259dcaa9b40eec90b2be13a79.zip
binutils-114434a1f184b0e259dcaa9b40eec90b2be13a79.tar.gz
binutils-114434a1f184b0e259dcaa9b40eec90b2be13a79.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl4
-rw-r--r--gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl8
2 files changed, 3 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
index b688f4d..b7ed935 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
+++ b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl b/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
index 5817b2b..4a103fb 100644
--- a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
+++ b/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
@@ -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