This is the mail archive of the
systemtap-cvs@sourceware.org
mailing list for the systemtap project.
[SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.7-173-g941101c
- From: jistone at sourceware dot org
- To: systemtap-cvs at sourceware dot org
- Date: 20 Apr 2012 00:27:39 -0000
- Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.7-173-g941101c
- Reply-to: systemtap at sourceware dot org
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "systemtap: system-wide probe/trace tool".
The branch, master has been updated
via 941101c14c98c0b9ee186d894382bce082f5c16f (commit)
via 5650ca76f837f174335741915c63091912da9e0c (commit)
from 600551ca9fb694d2757d66a4bf281dcf6934d9bf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 941101c14c98c0b9ee186d894382bce082f5c16f
Author: Josh Stone <jistone@redhat.com>
Date: Thu Apr 19 17:19:53 2012 -0700
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.
commit 5650ca76f837f174335741915c63091912da9e0c
Author: Josh Stone <jistone@redhat.com>
Date: Thu Apr 19 17:11:14 2012 -0700
PR13999: Let "%#c" add escapes for nonprintables
The special '#' flag previously didn't do anything for characters. Now
it signals that non-printable characters should be escaped in the output
string, either using C shortcuts or octal values.
* runtime/vsprintf.c (_stp_vsprint_char_size, _stp_vsprint_char): New
functions to size and fill the buffer, accounting for escape chars.
(_stp_vsnprintf): Use the new char functions.
* translate.cxx (c_unparser::emit_compiled_printfs): Ditto.
* testsuite/systemtap.printf/char2.*: Test %#c
* NEWS, stap.1: Document it.
-----------------------------------------------------------------------
Summary of changes:
NEWS | 2 +
runtime/vsprintf.c | 153 +++++++++++++++++---
runtime/vsprintf.h | 4 +
stap.1 | 10 ++
tapsets.cxx | 4 +-
testsuite/systemtap.printf/char2.exp | 7 +
testsuite/systemtap.printf/char2.stp | 17 +++
.../{pretty-bits.exp => pretty-char.exp} | 4 +-
testsuite/systemtap.printf/pretty-char.h | 1 +
testsuite/systemtap.printf/pretty-char.stp | 16 ++
translate.cxx | 12 +-
11 files changed, 195 insertions(+), 35 deletions(-)
create mode 100644 testsuite/systemtap.printf/char2.exp
create mode 100644 testsuite/systemtap.printf/char2.stp
copy testsuite/systemtap.printf/{pretty-bits.exp => pretty-char.exp} (63%)
create mode 100644 testsuite/systemtap.printf/pretty-char.h
create mode 100644 testsuite/systemtap.printf/pretty-char.stp
hooks/post-receive
--
systemtap: system-wide probe/trace tool