This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/14396] New: Missing DW_ATE_UTF support (char16_t, char32_t)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]