This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/7078] debug info is not generated correctly with c++ namespaces are used
- From: "carlton at bactrian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2003 19:36:14 -0000
- Subject: [Bug debug/7078] debug info is not generated correctly with c++ namespaces are used
- References: <20020619070603.7078.salman.khilji@cae.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7078
carlton@bactrian.org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|11114 |
------- Additional Comments From carlton@bactrian.org 2003-06-06 19:36 -------
This isn't the same as 11114: that bug is about DWARF 2, whereas this
bug is about stabs. Exactly what stabs should do in the presence of
namespaces isn't clear (that might not be true, but frankly most of
us working on debug info just wish stabs would go away), but the problems
are unrelated.
There were some changes in GCC's stabs behavior between 2.95 and 3.x that
have a negative effect on how well GDB can debug C++ code: GCC started emitting
not-fully-qualified unmangled names instead of mangled names. (So if you
have a namespace (or class?) C with a member x, then GCC just calls it 'x'
instead of the mangled name (which is what it used to do in 2.95) or 'C::x'
or anything that would actually give GDB an idea that it lives in 'C'.