[pushed,01/10,gdb/testsuite] Add missing include_file in gdb.dwarf/*.exp

Message ID 20230327115858.5950-2-tdevries@suse.de
State Committed
Headers
Series Fix gdb.dwarf2 for remote host |

Commit Message

Tom de Vries March 27, 2023, 11:58 a.m. UTC
  ---
 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(+)
  

Patch

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]