From: Doug Evans Date: Fri, 30 Jul 2010 19:59:42 +0000 (+0000) Subject: * lib/gdb.exp (build_executable): Forward "c++" option to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd961404f8a666948fd63c035c14bcf25e2aa6df;p=binutils-gdb.git * lib/gdb.exp (build_executable): Forward "c++" option to get_compiler_info. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1332407e166..183b277e808 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 04e00e2007f..ce179b25f4e 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