Bug 450183 - Missing support of char16_t type introduced with C++ 11
Summary: Missing support of char16_t type introduced with C++ 11
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: 1.3   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: 1.3   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 11:57 EST by Benoit Perrin CLA
Modified: 2015-06-16 03:17 EDT (History)
0 users

See Also:


Attachments
C++11 example (36.14 KB, application/octet-stream)
2014-11-05 11:57 EST, Benoit Perrin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benoit Perrin CLA 2014-11-05 11:57:46 EST
Created attachment 248415 [details]
C++11 example

C++ 11 introduces new basic types like char16_t, char32_t. Those types are encoded as DWARF DW_ATE_packed_decimal (0x0a).
Such an encoding is not recognized by the agent, so the Symbol.getContext command does not return the TypeClass:

2014-11-05 17:20:38,938 : ---> C 24 Symbols getContext "@M0.@S4.19.1374331.545A34E6%1E.1B25.2.0.0.0.P9557"
2014-11-05 17:20:38,943 : <--- R 24 None {"ID":"@M0.@S4.19.1374331.545A34E6%1E.1B25.2.0.0.0.P9557","OwnerID":"P9557","UpdatePolicy":0,"Name":"char16_t","TypeID":"@M0.@S4.19.1374331.545A34E6%1E.1B25.2.0.0.0.P9557","ContainerID":"@M0.@S5.19.1374331.545A34E6%1E.B.2.0.0.0.P9557","Size":2,"Flags":8192,"Class":4}
Comment 1 Eugene Tarassov CLA 2014-11-12 20:18:55 EST
Actually, they are encoded as DW_ATE_UTF (0x10).
Added it as CARDINAL type class.
Fixed.
Thanks!
Comment 2 Benoit Perrin CLA 2014-11-13 04:28:35 EST
I mixed my read about hexa/dec (16/0x10/10/0xa) that wrongly pointed me to DW_ATE_packed_decimal value. For DW_ATE_UTF support, I should have been able to provide a patch ... Sorry about that. Thanks for the fix!