Opened 7 years ago

Closed 7 years ago

#9398 closed bug (fixed)

Debugger fails to parse C++11 compiled program

Reported by: pulkomandy Owned by: anevilyak
Priority: normal Milestone: R1
Component: Applications/Debugger Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is a reduced (but not minimal) test case.

wget http://pulkomandy.tk/drop/cro2_haiku_cpp98.zip
unzip cro2_haiku_cpp98.zip
cd software
rm *.o
make
Debugger ./CrO2

Debugger does not manage to show the source file nor the variables. Removing --std=c++0x from the makefile (and recompiling) gets things working as expected.

The actual use of C++11 features in the sourcecode seems unrelated to the problem.

Change History (3)

comment:1 by anevilyak, 7 years ago

Version: R1/alpha4.1R1/Development

Seems that in this instance gcc's generating some tags for GNU extensions to DWARF that aren't yet part of the standard, specifically:

 * DW_TAG_GNU_template_parameter_pack: 0x4107
 * DW_TAG_GNU_formal_parameter_pack: 0x4108

The proposed extensions are referenced at http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates

Will need to look into this a bit to see how to handle those.

comment:2 by anevilyak, 7 years ago

Status: newin-progress

comment:3 by anevilyak, 7 years ago

Resolution: fixed
Status: in-progressclosed

Implemented in hrev45189.

Note: See TracTickets for help on using tickets.