This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37590] g++ should emit different debug info for variable's type
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Sep 2008 13:28:14 -0000
- Subject: [Bug c++/37590] g++ should emit different debug info for variable's type
- References: <bug-37590-360@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dodji at gcc dot gnu dot org 2008-09-21 13:28 -------
What if gcc always outputs the fully qualified type name ?
Today's DWARF supports the DW_TAG_imported_module tag that should let the
debugger know that a "using namespace std;" was present in the lexical block
enclosing the variable declaration that we are considering.
So with those two pieces of informations (fully qualified type name and the
using directive), I believe the debugger should be able to display the correct
thing to the user.
Woud that make sense ?
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dodji at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37590