public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/16063] New: Debuggers need more information about enum types in C++
@ 2004-06-18 16:13 jcownie at etnus dot com
  2004-06-18 16:14 ` [Bug debug/16063] " jcownie at etnus dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: jcownie at etnus dot com @ 2004-06-18 16:13 UTC (permalink / raw)
  To: gcc-bugs

The debug information emitted for enumerated types does not allow a debugger
to unambiguously determine the "underlying type" of the enumeration.

A debugger therefore does not have enough information to allow it to perform
overload resolution when asked to evaluate a function call with an enum type
as an actual argument.

One can view this either as a bug (the compiler is emitting an unsigned value
using DW_FORM_sdata), or as requiring an enhancement.

I believe the simplest solution would be to have the compiler be explicit about 
the representation of the enum type by emitting a DW_AT_encoding with the
DW_TAG_enumeration, so that the debugger is explicitly told whether the 
underlying type of the enumeration is signed or unsigned.

See the (about to be attached) test case for detailed information.

-- 
           Summary: Debuggers need more information about enum types in C++
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jcownie at etnus dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16063


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-12 11:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16063-4@http.gcc.gnu.org/bugzilla/>
2012-06-29 13:51 ` [Bug debug/16063] Debuggers need more information about enum types in C++ tromey at gcc dot gnu.org
2014-03-23 11:22 ` mark at gcc dot gnu.org
2014-06-25 18:55 ` tromey at gcc dot gnu.org
2014-09-12 11:40 ` mpolacek at gcc dot gnu.org
2004-06-18 16:13 [Bug debug/16063] New: " jcownie at etnus dot com
2004-06-18 16:14 ` [Bug debug/16063] " jcownie at etnus dot com
2004-06-18 16:22 ` pinskia at gcc dot gnu dot org
2004-06-18 16:31 ` jcownie at etnus dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).