This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Prevent appending "-g" after "-g3" to compile options in info-macros.exp.


When upstream gcc is given a command line with "-g3" followed by "-g",
it doesn't generate a ".debug_macro" section.  This is because the last
option wins, thus downgrading the debug level again.  Without any macro
debug information in the executable, info-macros.exp obviously yields
many failures.

Since "-g" is appended by DejaGnu's target_compile whenever the "debug"
option is set, the fix just removes that option.

testsuite/
2014-01-14  Andreas Arnez  <arnez@linux.vnet.ibm.com>

	* gdb.base/info-macros.exp: Remove "debug" from the compile
	options.
---
 gdb/testsuite/gdb.base/info-macros.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/info-macros.exp b/gdb/testsuite/gdb.base/info-macros.exp
index ff889f4..121e00b 100644
--- a/gdb/testsuite/gdb.base/info-macros.exp
+++ b/gdb/testsuite/gdb.base/info-macros.exp
@@ -27,7 +27,7 @@ if ![test_compiler_info gcc*] {
   return -1
 }
 
-set options "debug additional_flags=-g3"
+set options "additional_flags=-g3"
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $options] } {
     untested ${testfile}.exp
-- 
1.8.3.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]