public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [commit] Forward "c++" option to get_compiler_info.
@ 2010-07-30 20:03 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2010-07-30 20:03 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-30 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-30 20:03 [commit] Forward "c++" option to get_compiler_info Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).