This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite/stabs] weird.exp: skip hp
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: cagney at gnu dot org, mec dot gnu at mindspring dot com
- Cc: ezannoni at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Wed, 7 Jan 2004 19:40:53 -0500 (EST)
- Subject: Re: [rfa/testsuite/stabs] weird.exp: skip hp
ac> BTW, does your get_compiler_info rewrite mean that those hpcc_...
ac> variables can eventually be eliminated (replaced by test_compiler_info)?
Hell yeah!
In fact, get_compiler_info logs the value that it calculates for
"compiler_info". gdb.log looks like this:
Running /house/chastain/gdb/s1/gdb/testsuite/gdb.base/volatile.exp ...
get_compiler_info: hpcc-111106
Executing on host: gcc /house/chastain/gdb/s1/gdb/testsuite/gdb.base/constvars.c -g -lm -o /house/chastain/gdb/build/hppa2.0w-hp-hpux11.11/s1-blank-gcc/gdb/testsuite/gdb.base/constvars (timeout = 300)
GNU gdb 2004-01-07-cvs
Copyright 2004 Free Software Foundation, Inc.
(Yes, my hpcc compiler is a shell script named "gcc").
And it will be trivial to add more vendor compilers to
compiler.c/compiler.cc:
#if defined(__SUN_whatever)
set compiler_info [join {suncc __SUN_whatever} -]
#endif
#if defined(__TRU64_blah)
set compiler_info [join {osfcc __TRU64_blah} -]
#endif
Michael C