This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Another "ptype B" validity question
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb at sources dot redhat dot com
- Date: 03 Dec 2002 17:03:37 +0100
- Subject: Re: Another "ptype B" validity question
- Organization: Integrable Solutions
- References: <200212031556.gB3Fuwb30282@duracef.shout.net>
Michael Elizabeth Chastain <mec@shout.net> writes:
[...]
| # gdb HEAD, gcc HEAD, binutils 2.13.1, stabs+
| ptype class B
| type = class B : public A {
| public:
| A;
[...]
| 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!
I think the line
class B : public A
saying that B inherits from A is self-explanatory and there is no need
to display A as a member-declaration -- it is not, and that is confusing.
[...]
| In this case, I think that most C++ programmers
| would understand the nature of the "A;" line,
Well, I find it very confusing -- it is too close to nested-type
declaration.
-- Gaby