aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-07-30 19:59:42 +0000
committerDoug Evans <dje@google.com>2010-07-30 19:59:42 +0000
commitfd961404f8a666948fd63c035c14bcf25e2aa6df (patch)
tree913067650d1218d933d966fc6cee0b44e69dd53d /gdb/testsuite/lib
parentf32b2f0980b9310ce83725c3a0c1d7a1e830c2f1 (diff)
downloadgdb-fd961404f8a666948fd63c035c14bcf25e2aa6df.zip
gdb-fd961404f8a666948fd63c035c14bcf25e2aa6df.tar.gz
gdb-fd961404f8a666948fd63c035c14bcf25e2aa6df.tar.bz2
* lib/gdb.exp (build_executable): Forward "c++" option to
get_compiler_info.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 04e00e2..ce179b2 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3257,7 +3257,11 @@ proc build_executable { testname executable {sources ""} {options {debug}} } {
return -1
}
- if [get_compiler_info ${binfile}] {
+ set info_options ""
+ if { [lsearch -exact $options "c++"] >= 0 } {
+ set info_options "c++"
+ }
+ if [get_compiler_info ${binfile} ${info_options}] {
return -1
}
return 0