* info-macros.exp: Pass "debug" to prepare_for_testing.
authorDoug Evans <dje@google.com>
Fri, 18 May 2012 00:04:13 +0000 (00:04 +0000)
committerDoug Evans <dje@google.com>
Fri, 18 May 2012 00:04:13 +0000 (00:04 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/info-macros.exp

index 16bc97ae712a5a398ddf6043a7d0268f9a7bebd9..9eae7929af15fe83a087a00af6d304850464831f 100644 (file)
@@ -1,5 +1,7 @@
 2012-05-17  Doug Evans  <dje@google.com>
 
+       * info-macros.exp: Pass "debug" to prepare_for_testing.
+
        * Makefile.in (clean): Remove Fission .dwo and .dwp files.
        * gdb.ada/Makefile.in (clean): Ditto.
        * gdb.arch/Makefile.in (clean): Ditto.
index d175e9fb460a60fce60b13aeb50ca61fe343005b..9d785816f6b4998a5b567d00837aa19efbc06146 100644 (file)
 set testfile "info-macros"
 set srcfile ${testfile}.c
 set binfile ${objdir}/${subdir}/${testfile}
+
 get_compiler_info ${binfile}
-if [test_compiler_info gcc*] {
-    lappend options additional_flags=-g3
-} else {
+if ![test_compiler_info gcc*] {
   untested ${testfile}.exp
   return -1
 }
 
+set options "debug additional_flags=-g3"
+
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $options] } {
     untested ${testfile}.exp
     return -1