This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]