Summary: | Missing DW_ATE_UTF support (char16_t, char32_t) | ||
---|---|---|---|
Product: | systemtap | Reporter: | Mark Wielaard <mark> |
Component: | translator | Assignee: | Unassigned <systemtap> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jistone |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | Add kernel_string_utf16/32 |
Description
Mark Wielaard
2012-07-24 22:25:51 UTC
(In reply to comment #0) > $ stap -e 'probe process.function("main") { log($foo$$); log($bar$$) }' -c > ./utf > "cow" > 4195852 > > Would be nice to see the $bar value also decoded. dwarf_pretty_print::print_chars() uses user_string2/kernel_string2 to read strings bytewise. We could add similar functions for UTF-16 and UTF-32 which convert to UTF-8 to make stap strings. Created attachment 6570 [details]
Add kernel_string_utf16/32
Here's a prototype of what those conversion functions might look like for kernel memory. The user variants would be the same, just s/kread/uread/.
(And now I see that uread() doesn't exist, but it should...)
|