From 88fc1be26acbd83afed2eb8fc7e364cd45447ba3 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 27 Mar 2023 13:58:09 +0200 Subject: [PATCH] [gdb/testsuite] Add missing include_file in gdb.dwarf/*.exp --- gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp | 2 ++ gdb/testsuite/gdb.dwarf2/fission-mix.exp | 2 ++ gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp | 1 + 3 files changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp index 06ce4906f07..c08179fe5e9 100644 --- a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp +++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp @@ -17,6 +17,8 @@ standard_testfile .cc -b.cc +include_file dw4-sig-types.h + # This test is intended for targets which support DWARF-4. # Since we pass an explicit -gdwarf-4 -fdebug-types-section to the compiler, # we let that be the test of whether the target supports it. diff --git a/gdb/testsuite/gdb.dwarf2/fission-mix.exp b/gdb/testsuite/gdb.dwarf2/fission-mix.exp index a396747714d..1e78de6990e 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-mix.exp +++ b/gdb/testsuite/gdb.dwarf2/fission-mix.exp @@ -19,6 +19,8 @@ load_lib dwarf.exp require dwarf2_support standard_testfile .c -2.c +include_file fission-mix.h + set objfile [standard_output_file ${testfile}.o] set objfile2 [standard_output_file ${testfile}2.o] diff --git a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp index a5b301e26fb..5bdc3e49b1c 100644 --- a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp +++ b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp @@ -67,6 +67,7 @@ set lib_basename ${::gdb_test_file_name}-lib # which will be ${srcfile3} after the execution of standard_testfile. standard_testfile $main_basename.c $lib_basename.c $lib_basename.S +include_file locexpr-data-member-location.h set libsrc "${::srcdir}/${::subdir}/${::srcfile2}" set lib_so [standard_output_file ${lib_basename}.so] -- 2.30.2