From: Michael Elizabeth Chastain <mec@shout.net>
To: carlton@math.stanford.edu, gdb@sources.redhat.com
Cc: drow@mvista.com
Subject: Re: [rfc] xfailed tests in gdb.c++/classes.exp
Date: Fri, 03 Jan 2003 23:27:00 -0000 [thread overview]
Message-ID: <200301032327.h03NRVA21462@duracef.shout.net> (raw)
> 1) GDB prints "class X { public: ... }" when the programmer originally
> wrote "struct X { ... }".
We talked about this about two years ago, and the consensus was
that this is a bug in gdb. I did not agree with that consensus.
> 2) GDB prints "class X { private: int x; ... }" when the programmer
> originally wrote "class X { int x; ... }".
I don't recall discussing this in particular.
> The arguments for treating them as passes is as follows: GDB's goal
> isn't to print out exactly what the programmer typed: it's to print
> out a type that's equivalent to what the programmer typed, one that
> gives all the information that the programmer needs.
I believe in this.
> And, in both of the cases above, programmers could replace their
> definitions by the definitions that GDB prints out without changing the
> behavior of their programs.
I believe this is a good operational test.
As a user, it's perfectly fine with me that GDB canonicalizes the
class/struct when printing it out. It's vital that GDB prints
_correct_ information. It's important that GDB prints _complete_
information. We have so many problems at this level with C++,
it's a crying shame that we devote bug-handling resources to
"class X { public: ... }".
> Personally, I'd treat both these cases as passes. On the other hand,
> Daniel's the C++ maintainer; if he thinks one or both of these cases
> should be considered a bug in GDB, then I'll file PR's and KFAIL them
> as appropriate.
Ditto.
Michael C
next reply other threads:[~2003-01-03 23:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-03 23:27 Michael Elizabeth Chastain [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-28 5:01 Michael Elizabeth Chastain
2003-02-28 15:15 ` Daniel Jacobowitz
2003-02-28 17:58 ` David Carlton
2003-02-28 3:51 Michael Elizabeth Chastain
2003-02-28 3:59 ` Daniel Jacobowitz
2003-02-28 13:40 ` Paul Koning
2003-02-28 20:58 ` Jason Molenda
2003-01-03 22:53 David Carlton
2003-02-28 1:30 ` Daniel Jacobowitz
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=200301032327.h03NRVA21462@duracef.shout.net \
--to=mec@shout.net \
--cc=carlton@math.stanford.edu \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.com \
/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