This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] boards/fission.exp: Explicitly pass -ggnu-pubnames for clang.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Cc: dblaikie at gmail dot com
- Date: Mon, 18 Aug 2014 12:10:08 -0700
- Subject: [commit] boards/fission.exp: Explicitly pass -ggnu-pubnames for clang.
- Authentication-results: sourceware.org; auth=none
Hi.
I committed this for David.
2014-08-18 David Blaikie <dblaikie@gmail.com>
* boards/fission.exp: Explicitly pass -ggnu-pubnames for clang.
diff --git a/gdb/testsuite/boards/fission.exp b/gdb/testsuite/boards/fission.exp
index 0947502..9c111ba 100644
--- a/gdb/testsuite/boards/fission.exp
+++ b/gdb/testsuite/boards/fission.exp
@@ -27,7 +27,9 @@ set_board_info compiler "[find_gcc]"
# This requires a relatively recent version of gcc (>4.7) and gold
# for the linker.
-set_board_info debug_flags "-gdwarf-4 -gsplit-dwarf -fdebug-types-section -Wl,--gdb-index"
+# Note: -ggnu-pubnames is required for Gold to build .gdb_index, and while
+# -gsplit-dwarf implies -ggnu-pubnames for gcc, it doesn't for clang.
+set_board_info debug_flags "-gdwarf-4 -gsplit-dwarf -ggnu-pubnames -fdebug-types-section -Wl,--gdb-index"
# This is needed otherwise dejagnu tries to rsh to host "fission". Blech.
# Double blech: set_board_info only sets the value if not already set.