Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: gdb@sources.redhat.com
Subject: Re: RFC: Formatting of type output
Date: Thu, 06 Dec 2001 12:42:00 -0000	[thread overview]
Message-ID: <20011206154242.C11234@nevyn.them.org> (raw)
In-Reply-To: <200112061739.LAA11659@duracef.shout.net>

On Thu, Dec 06, 2001 at 11:39:10AM -0600, Michael Elizabeth Chastain wrote:
> Good morning Daniel,
> 
> > Does anything mechanical depend on the format of type output, besides our
> > testsuite?
> 
> AFAIK, the white-space changes between v2 g++ and v3 g++ haven't
> caused any external consumers of this information to break in such a way
> that bug reports have reached the gnats database or the gdb mailing
> lists.  So I would suspect "no".
> 
> > Does anyone have any radically strong feelings about how it
> > should be formatted?
> 
> Basically no.

I am going to attempt to print types without the use of the demangler,
then.  If I can get it to work adequately, I'll ask again.

> > Similarly, does anyone prefer to have vtbl and vbase pointers explicitly
> > printed?
> 
> Are you talking about "ptype *Foo" or "print *pFoo" here?
> 
> At my day job, I use cygwin + gcc 2.95.3 + pthreads + gdb,
> and the vtbl pointer is a quick indicator whether a pointer points
> to a sane, live object.  That is a case of "print *pFoo".

OK, that does seem useful.  Survey of facts and opinions:
  - are not part of the explicit data of the class
  - vary wildly depending on one's compiler.  2.95 has vbase pointers
only, 3.0 has vtbl pointers only.
  - are exceedingly useful to people debugging C++ support or Java
support, but not normally useful to people debugging user code.

I'm going to lean towards option (B) [suppressing them by default and
adding a set flag to show them] when I get around to this.  This is at
the bottom of my list though.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2001-12-06 20:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-06  9:39 Michael Elizabeth Chastain
2001-12-06 12:42 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-06  9:01 Daniel Jacobowitz
2001-12-06 12:43 ` Eli Zaretskii
2001-12-06 12:54   ` Daniel Jacobowitz
2001-12-06 13:41     ` Eli Zaretskii

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=20011206154242.C11234@nevyn.them.org \
    --to=drow@mvista.com \
    --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