From fd961404f8a666948fd63c035c14bcf25e2aa6df Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 30 Jul 2010 19:59:42 +0000 Subject: [PATCH] * lib/gdb.exp (build_executable): Forward "c++" option to get_compiler_info. --- gdb/testsuite/ChangeLog | 3 +++ gdb/testsuite/lib/gdb.exp | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1332407e16..183b277e80 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2010-07-30 Doug Evans + * lib/gdb.exp (build_executable): Forward "c++" option to + get_compiler_info. + * gdb.python/py-type.exp (test_template): Mark as xfail tests "python print ttype.template_argument(1)" and "python print isinstance(ttype.template_argument(1), gdb.Value)" diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 04e00e2007..ce179b25f4 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 -- 2.34.1