[commit] Forward "c++" option to get_compiler_info.
Doug Evans
dje@google.com
Fri Jul 30 20:03:00 GMT 2010
Hi.
While testing another fix I was running the test with
runtest CXX_FOR_TARGET=/foo/g++ bar.exp
This failed because the wrong compiler was being used by
get_compiler_info.
The test is a c++ test and get_compiler_info was invoking gcc instead
of the g++ I specified.
Committed.
2010-07-30 Doug Evans <dje@google.com>
* lib/gdb.exp (build_executable): Forward "c++" option to
get_compiler_info.
Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.156
diff -u -p -r1.156 gdb.exp
--- lib/gdb.exp 29 Jul 2010 14:18:57 -0000 1.156
+++ lib/gdb.exp 30 Jul 2010 19:58:39 -0000
@@ -3257,7 +3257,11 @@ proc build_executable { testname executa
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
More information about the Gdb-patches
mailing list