summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
index 4f0044b5ab0..ec94e2c72e4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
@@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+load_lib dwarf.exp
# Test inter-cu references where the referenced DIE is within
# initial_length_size bytes of the end of the CU.
@@ -20,13 +21,7 @@
# in the length of the CU. */
# This test can only be run on targets which support DWARF-2 and use gas.
-# For now pick a sampling of likely targets.
-if {![istarget *-*-linux*]
- && ![istarget *-*-gnu*]
- && ![istarget *-*-elf*]
- && ![istarget *-*-openbsd*]
- && ![istarget arm-*-eabi*]
- && ![istarget powerpc-*-eabi*]} {
+if {![dwarf2_support]} {
return 0
}