This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: So what is wrong with v3 C++
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: So what is wrong with v3 C++
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 04 Jul 2001 12:22:53 -0400
- Cc: GDB Discussion <gdb at sources dot redhat dot com>
- References: <3B3BBD90.8070601@cygnus.com> <npk81vrpbi.fsf@zwingli.cygnus.com>
> I just talked about this on the phone with Ben Kosnik. He says that
> the bug causing him the most trouble is the simple inability to print
> his objects. Troubles with virtual base classes and stepping into
> virtual functions are insignificant compared to the frustration of
> being unable to see his data.
My take would be, in order of priority:
o not dump core
o not lie when printing data
o anything else
you can work around broken step/next, it gets really hard to work around
random core dumps and incorrect C++ output.
The second one is, I think, is somewhat unique to C++. Unlike more
straight forward languages such as C, there is typically no
direct/obvious correspondance between a data declaration and its
representation in memory. Consequently, it is important to get that
data display right.
Andrew