This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH] gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 02 Jan 2015 13:02:29 -0800
- Subject: [COMMITTED PATCH] gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.
- Authentication-results: sourceware.org; auth=none
Hi.
I happened to notice this while adding a new test.
Regression tested on amd64-linux.
2015-01-02 Doug Evans <dje@google.com>
* gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.
diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
index e47dc2b..3523b66 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 <http://www.gnu.org/licenses/>.
-# 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
}