This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/23103] C++ parser doesn't recognize typedefs in template parameters
- From: "weimin.pan at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 17 Oct 2018 21:56:15 +0000
- Subject: [Bug c++/23103] C++ parser doesn't recognize typedefs in template parameters
- Auto-submitted: auto-generated
- References: <bug-23103-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23103
weimin.pan at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |weimin.pan at oracle dot com
--- Comment #1 from weimin.pan at oracle dot com ---
Looks like a compiler problem which didn't emit a DW_TAG_typedef tag
for "uchar" for the template type parameter:
<1><2d>: Abbrev Number: 2 (DW_TAG_base_type)
<2e> DW_AT_byte_size : 1
<2f> DW_AT_encoding : 8 (unsigned char)
<30> DW_AT_name : (indirect string, offset: 0x0): unsigned char
...
<2><4c>: Abbrev Number: 5 (DW_TAG_template_type_param)
<4d> DW_AT_name : T
<4f> DW_AT_type : <0x2d>
Instead it should generate something like:
<1><2d>: Abbrev Number: 2 (DW_TAG_typedef)
<2e> DW_AT_name : (indirect string, offset: 0x0): uchar
<34> DW_AT_type : <0x38>
...
<1><38>: Abbrev Number: 3 (DW_TAG_base_type)
<39> DW_AT_byte_size : 1
<3a> DW_AT_encoding : 8 (unsigned char)
<3b> DW_AT_name : (indirect string, offset: 0x31): unsigned char
...
<2><4c>: Abbrev Number: 5 (DW_TAG_template_type_param)
<4d> DW_AT_name : T
<4f> DW_AT_type : <0x2d>
--
You are receiving this mail because:
You are on the CC list for the bug.