This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/14396] New: Missing DW_ATE_UTF support (char16_t, char32_t)
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 24 Jul 2012 22:25:51 +0000
- Subject: [Bug translator/14396] New: Missing DW_ATE_UTF support (char16_t, char32_t)
- Auto-submitted: auto-generated
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.