From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23195 invoked by alias); 20 Apr 2012 00:27:43 -0000 Received: (qmail 23141 invoked by uid 9586); 20 Apr 2012 00:27:39 -0000 Date: Fri, 20 Apr 2012 00:27:00 -0000 Message-ID: <20120420002739.23130.qmail@sourceware.org> From: jistone@sourceware.org To: systemtap-cvs@sourceware.org Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.7-173-g941101c X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 600551ca9fb694d2757d66a4bf281dcf6934d9bf X-Git-Newrev: 941101c14c98c0b9ee186d894382bce082f5c16f Mailing-List: contact systemtap-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-cvs-owner@sourceware.org List-Archive: Reply-To: systemtap@sourceware.org X-SW-Source: 2012-q2/txt/msg00025.txt.bz2 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 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 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