From: Doug Evans Date: Fri, 2 Jan 2015 20:59:44 +0000 (-0800) Subject: gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc. X-Git-Tag: gdb-7.9-branchpoint~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0300bbc7c585cdcdd7ee9046aa2edb4f9ec36bc1;p=thirdparty%2Fbinutils-gdb.git gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 400a562baa1..eebef25dafb 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-01-02 Doug Evans + + * gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc. + 2014-12-29 Yao Qi * gdb.trace/entry-values.exp: Update comments. Rename variable diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp index e47dc2b4366..3523b66af25 100644 --- a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp +++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp @@ -13,17 +13,17 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Test dwarf4 signatured types. +# Test dwarf4 signatured types (DW_TAG_type_unit). standard_testfile .cc dw4-sig-types-b.cc # This test is intended for targets which support DWARF-4. -# Since we pass an explicit -gdwarf-4 to the compiler, we let -# that be the test of whether the target supports it. +# 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. if { [prepare_for_testing "${testfile}.exp" "${testfile}" \ [list $srcfile $srcfile2] \ - {debug c++ additional_flags=-gdwarf-4}] } { + {debug c++ additional_flags=-gdwarf-4 additional_flags=-fdebug-types-section}] } { return -1 }