From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13290 invoked by alias); 6 Jun 2003 19:36:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13248 invoked by uid 48); 6 Jun 2003 19:36:14 -0000 Date: Fri, 06 Jun 2003 19:36:00 -0000 Message-ID: <20030606193614.13246.qmail@sources.redhat.com> From: "carlton@bactrian.org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20020619070603.7078.salman.khilji@cae.com> References: <20020619070603.7078.salman.khilji@cae.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug debug/7078] debug info is not generated correctly with c++ namespaces are used X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg00786.txt.bz2 List-Id: 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'.