Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: gdb@sources.redhat.com
Subject: Re: Another "ptype B" validity question
Date: Tue, 03 Dec 2002 08:08:00 -0000	[thread overview]
Message-ID: <m3y977ay3q.fsf@uniton.integrable-solutions.net> (raw)
In-Reply-To: <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


  reply	other threads:[~2002-12-03 16:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-03  7:57 Michael Elizabeth Chastain
2002-12-03  8:08 ` Gabriel Dos Reis [this message]
2002-12-03  8:27 ` Daniel Jacobowitz
2002-12-03  8:41 Michael Elizabeth Chastain
2002-12-04 10:20 Michael Elizabeth Chastain

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=m3y977ay3q.fsf@uniton.integrable-solutions.net \
    --to=gdr@integrable-solutions.net \
    --cc=gdb@sources.redhat.com \
    --cc=mec@shout.net \
    /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