From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: RFC: Formatting of type output
Date: Thu, 06 Dec 2001 09:01:00 -0000 [thread overview]
Message-ID: <20011206120205.A1278@nevyn.them.org> (raw)
Right now, we get as much as we can from demangled names when we print
classes. Fine for stabs, but for dwarf and (say) constructors, we don't
have a demangled name to use.
We can print the methods using just their types, from the debug info. We
have plenty of information for doing that.
That means that, regrettably, they are formatted differently; it is closer
to the v2 demangler than to the v3 demangler, but different from both
(classes get prefixed by "class" even in C++, for example).
Does anything mechanical depend on the format of type output, besides our
testsuite? Does anyone have any radically strong feelings about how it
should be formatted? I believe that it should at least be consistent with
itself, and the only possible way to achieve that is to use the type
information at all times. It'll require some cleanups to the involved code
(for instance, lookup_opaque_type currently kills qualifiers! Patch later
this week when I have a moment) but will actually simplify the testsuite
quite a bit (since we will not have to cope with multiple demanglers, only
multiple class layouts).
Similarly, does anyone prefer to have vtbl and vbase pointers explicitly
printed? It seems cleaner to me to suppress them, and perhaps offer another
way to print them explicitly.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next reply other threads:[~2001-12-06 17:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-06 9:01 Daniel Jacobowitz [this message]
2001-12-06 12:43 ` Eli Zaretskii
2001-12-06 12:54 ` Daniel Jacobowitz
2001-12-06 13:41 ` Eli Zaretskii
2001-12-06 9:39 Michael Elizabeth Chastain
2001-12-06 12:42 ` 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=20011206120205.A1278@nevyn.them.org \
--to=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