aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-05-18 00:04:13 +0000
committerDoug Evans <dje@google.com>2012-05-18 00:04:13 +0000
commit682c7f7b28c3ac2509864f3504550bc29b7a72a6 (patch)
treef432372a42b39f4e99ab83778d2aa1aa1dde5268 /gdb
parent625af9a0b3cf084d3d2ff4f069793a1b7c95d17c (diff)
downloadgdb-682c7f7b28c3ac2509864f3504550bc29b7a72a6.zip
gdb-682c7f7b28c3ac2509864f3504550bc29b7a72a6.tar.gz
gdb-682c7f7b28c3ac2509864f3504550bc29b7a72a6.tar.bz2
* info-macros.exp: Pass "debug" to prepare_for_testing.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog2
-rw-r--r--gdb/testsuite/gdb.base/info-macros.exp7
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 16bc97a..9eae792 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/info-macros.exp b/gdb/testsuite/gdb.base/info-macros.exp
index d175e9f..9d78581 100644
--- a/gdb/testsuite/gdb.base/info-macros.exp
+++ b/gdb/testsuite/gdb.base/info-macros.exp
@@ -16,14 +16,15 @@
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