Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <gdb-patches@sourceware.org>
Subject: Results of macscp.exp test on cygwin
Date: Thu, 09 Oct 2008 11:37:00 -0000	[thread overview]
Message-ID: <011801c92a03$4b71afa0$e2550ee0$@u-strasbg.fr> (raw)

  Following a recent email about the testsuite that I 
ran on cygwin, where Pedro fond that the
number of failures was very high, I started to 
look into this. 

 Cygwin target uses stabs debugging format as a default,
but stabs doesn't generate any macro debugging information,
which results in 244 FAIL's (87 KFAIL plus 157 FAIL) from this unique test.

 Shouldn't we force dwarf-2 debug format, or at least 
skip the test if only stabs format is available?

 The test just add "-g3" option to the compilation command line
and that does not switch over to dwarf-2 debugging format.

Using 
make check RUNTESTFLAGS="gdb.base/macscp.exp CC_FOR_TARGET=\"gcc -gstabs+\""
I get 67 PASS, 87 KFAIL and 157 FAIL.

The strange thing is that even with
make check RUNTESTFLAGS="gdb.base/macscp.exp CC_FOR_TARGET=\"gcc
-gdwarf-2\""
(gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125))
I still get the same results :(

Only if I force the use of gcc version 4 (gcc version 4.3.2 20080827
(alpha-testing) 1 (GCC))
make check RUNTESTFLAGS="gdb.base/macscp.exp CC_FOR_TARGET=\"gcc-4
-gdwarf-2\""  
do I get good results:
PASSES: 286 FAIL:6 KFAIL:19
FAIL: gdb.base/macscp.exp: c99 varargs expansion
FAIL: gdb.base/macscp.exp: c99 varargs expansion without an argument
FAIL: gdb.base/macscp.exp: c99 varargs expansion, multiple formal arguments
FAIL: gdb.base/macscp.exp: gnu varargs expansion
FAIL: gdb.base/macscp.exp: gnu varargs expansion without an argument
FAIL: gdb.base/macscp.exp: gnu varargs expansion special splicing without an
argument
These failures are all due to the fact that stderr
is itself a macro in cygwin that is expanded into
"((__getreent())->_stderr)".

I also checked that gcc-4 with stabs, and I also get the 87 KFAIL and 157
FAIL.
 
  So all these tests seem to require gcc version 4, and explicit 
dwarf-2 selection.

  Is gcc version 3 still being developed?
If not, we could probably just fail generally once 
and skip the whole rest of the test if gcc version 3 is used.

  Should we add something to force use of 'dwarf-2' debug format?
Or at least also fail only once if stabs is used and skip the rest?


Pierre Muller
Pascal language support maintainer for GDB






             reply	other threads:[~2008-10-09 11:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 11:37 Pierre Muller [this message]
2008-10-09 16:29 ` Tom Tromey
2008-10-09 16:46   ` Pedro Alves
2008-10-09 18:14   ` Daniel Jacobowitz
2008-10-09 20:21     ` Michael Snyder
2008-10-09 22:28       ` Paul Pluzhnikov
2008-10-10 16:04   ` [RFC] " Pierre Muller
2009-01-26  9:13     ` [PING] " Pierre Muller
2009-01-28 13:32       ` [RFC] Use untested for macscp.exp if no macro information generated Pierre Muller
2009-02-01 18:28         ` Daniel Jacobowitz
2009-02-03 14:36           ` [RFC-v2] " Pierre Muller
2009-02-18 22:59             ` [PING] " Pierre Muller
2009-02-19  8:20               ` Tom Tromey
2009-02-20 10:08                 ` Pierre Muller
2009-05-11 11:30                   ` PING : " Pierre Muller
2009-05-29 23:40                     ` Tom Tromey
2009-05-30  8:04                       ` Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='011801c92a03$4b71afa0$e2550ee0$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox