[Bug translator/14396] New: Missing DW_ATE_UTF support (char16_t, char32_t)
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Jul 24 22:26:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14396
Bug #: 14396
Summary: Missing DW_ATE_UTF support (char16_t, char32_t)
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sourceware.org
ReportedBy: mjw@redhat.com
Classification: Unclassified
elfutils dwarf.h was missing the new DWARF4 DW_ATE_UTF define.
So systemtap also doesn't support this this data encoding.
Example usage:
#include <string.h>
const char *foo = "cow";
const char16_t *bar = u"bear";
int
main ()
{
if (foo == "bear" && bar == u"cow")
return 42;
return 0;
}
$ g++ -g -std=c++0x -o utf utf.cxx
$ stap -e 'probe process.function("main") { log($foo$$); log($bar$$) }' -c
./utf
"cow"
4195852
Would be nice to see the $bar value also decoded.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list