]> sourceware.org Git - systemtap.git/commit - tapsets.cxx
PR14396: Add pretty-printing support for UTF
authorJosh Stone <jistone@redhat.com>
Sat, 11 Aug 2012 00:46:13 +0000 (17:46 -0700)
committerJosh Stone <jistone@redhat.com>
Sat, 11 Aug 2012 00:57:33 +0000 (17:57 -0700)
commit6561d8d1c4246d6a9aa21a5df36066406f26f0b3
tree8d07d105c340137887b6bd6aae82c60df2f24c04
parent8987b3050c167457ef8dfe93ce58adb4d1d441b1
PR14396: Add pretty-printing support for UTF

* dwarf_wrappers.h: Define DW_ATE_UTF if elfutils < 0.155.
* tapsets.cxx (dwarf_pretty_print::recurse_base): Print UTF with %#c
  too. This will generally only work with the ASCII subset for now...
  (dwarf_pretty_print::print_chars): Match strings by char/UTF encoding
  types, rather than by type name, and use the byte_size to select the
  correct string dereferencing function.
* testsuite/systemtap.base/utf_pretty.*: Test it!
dwarf_wrappers.h
tapsets.cxx
testsuite/systemtap.base/utf_pretty.cxx [new file with mode: 0644]
testsuite/systemtap.base/utf_pretty.exp [new file with mode: 0644]
testsuite/systemtap.base/utf_pretty.stp [new file with mode: 0644]
This page took 0.024445 seconds and 5 git commands to generate.