[haiku-bugs] Re: [Haiku] #8190: Debugger doesn't correctly handle anonymous unions within structs/classes

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 07 Dec 2011 03:47:41 -0000

#8190: Debugger doesn't correctly handle anonymous unions within structs/classes
-------------------------------------+----------------------------
   Reporter:  anevilyak              |      Owner:  bonefish
       Type:  bug                    |     Status:  new
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------
Description changed by anevilyak:

Old description:

> While attempting to debug error messages relating to invalid
> DW_AT_specification attributes with programs generated by our newer gcc4,
> I'm running into issues digging into what's actually going on because
> Debugger isn't properly able to represent the AttributeValue class.
> The anonymous union is simply shown as a blank value node that expands to
> another instance of the AttributeValue class with the same blank value
> node ad infinitum. At the moment I'm not really clear as to what's going
> on though, since the same union declared outside of a class works fine.
> Attached a simplified test program which reproduces the issue.

New description:

 While attempting to debug error messages relating to invalid
 DW_AT_specification attributes with programs generated by our newer gcc4,
 I'm running into issues digging into what's actually going on because
 Debugger isn't properly able to represent the AttributeValue class.
 The anonymous union is simply shown as a blank value node that expands to
 another instance of the AttributeValue class with the same blank value
 node ad infinitum. At the moment I'm not really clear as to what's going
 on though, since the same union declared outside of a class works fine.
 Attached a simplified test program which reproduces the issue ; the
 compiler used to generate the DWARF output in question doesn't appear to
 matter, it's reproducible with both 2 and 4.

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8190#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: