Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Another "ptype B" validity question
@ 2002-12-03  8:41 Michael Elizabeth Chastain
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2002-12-03  8:41 UTC (permalink / raw)
  To: drow; +Cc: gdb

Daniel J writes:
> It is _not_ acceptable.  I thought I'd gotten most of these but
> obviously I've missed some.  Please do file a bug.

Okay, I will do that.

With gdb HEAD and binutils 2.13.1 and stabs+:

  gcc 3.2.1   48 FAIL, 81 XFAIL
  gcc HEAD   114 FAIL, 80 XFAIL

It's going to be a couple of bug reports.  :(

gcc HEAD with dwarf-2 is fine compared to gcc 3.2.1 with dwarf-2.

Here is a good table for you:

  http://www.shout.net/~mec/sunday/2002-11-25/difference/compare-by-gcc-17.html

Michael C


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Another "ptype B" validity question
@ 2002-12-04 10:20 Michael Elizabeth Chastain
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2002-12-04 10:20 UTC (permalink / raw)
  To: drow; +Cc: gdb

mec> . If gdb does print the "A;" member, is that acceptable or not?
mec>   Note that this is a slightly different question!

drow> It is _not_ acceptable.  I thought I'd gotten most of these but
drow> obviously I've missed some.  Please do file a bug.

Gotcha, pr gdb/869, ""ptype class B" fails with 3.3-ish gcc, stabs.".  I
attached a tarball with the test executable in it (among other things) so you
can get right to the nitty gritty.

Michael C


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Another "ptype B" validity question
@ 2002-12-03  7:57 Michael Elizabeth Chastain
  2002-12-03  8:08 ` Gabriel Dos Reis
  2002-12-03  8:27 ` Daniel Jacobowitz
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2002-12-03  7:57 UTC (permalink / raw)
  To: gdb

I'm seeing some new output from the "ptype" command when I use a new
version of the compiler.

Here are some gdb.log excerpts.

The first excerpt is fine:

  # gdb HEAD, gcc 3.2.1, binutils 2.13.1, stabs+
  ptype class B
  type = class B : public A {
    public:
      int b;
      int x;
  
      B & operator=(B const&);
      B(B const&);
      B();
  }
  (gdb) PASS: gdb.c++/classes.exp: ptype class B

The second excerpt raises an issue:

  # gdb HEAD, gcc HEAD, binutils 2.13.1, stabs+
  ptype class B
  type = class B : public A {
    public:
      A;
      int b;
      int x;
  
      B & operator=(B const&);
      B(B const&);
      B();
  }
  (gdb) FAIL: gdb.c++/classes.exp: ptype class B

Note the "A" line.  I suppose this is gdb's way of showing the
base class as a data member.

My questions are:

. What should gdb print for this ptype operation?

. If gdb does print the "A;" member, is that acceptable or not?
  Note that this is a slightly different question!

. More generally, what is the long term future of stabs+?

I really need an answer for #2 so that I can decide whether to change
the test script or brandish the FAIL in a bug report.

My view is that the test suite should be liberal about what it accepts
in the output of "ptype" as long as it is somehow correct and does not
mislead human users.  In this case, I think that most C++ programmers
would understand the nature of the "A;" line, so I would like to
change classes.exp to accept it.

Michael C


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-04 18:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03  8:41 Another "ptype B" validity question Michael Elizabeth Chastain
  -- strict thread matches above, loose matches on Subject: below --
2002-12-04 10:20 Michael Elizabeth Chastain
2002-12-03  7:57 Michael Elizabeth Chastain
2002-12-03  8:08 ` Gabriel Dos Reis
2002-12-03  8:27 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox