]> sourceware.org Git - systemtap.git/commit
PR13999: Use %#c to escape pretty-printed characters
authorJosh Stone <jistone@redhat.com>
Fri, 20 Apr 2012 00:19:53 +0000 (17:19 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 20 Apr 2012 00:19:53 +0000 (17:19 -0700)
commit941101c14c98c0b9ee186d894382bce082f5c16f
tree339c6d79a5c5b24146f27b865c081aa72fccb262
parent5650ca76f837f174335741915c63091912da9e0c
PR13999: Use %#c to escape pretty-printed characters

We especially need escaping to combat \0 characters, which would
truncate the rest of the pretty-printed string.

* tapsets.cxx (dwarf_pretty_print::recurse_base): Use %#c for chars.
* testsuite/systemtap.printf/pretty-char.*: Test char escaping.
tapsets.cxx
testsuite/systemtap.printf/pretty-char.exp [new file with mode: 0644]
testsuite/systemtap.printf/pretty-char.h [new file with mode: 0644]
testsuite/systemtap.printf/pretty-char.stp [new file with mode: 0644]
This page took 0.026519 seconds and 5 git commands to generate.