From 58cf0567b5d6f06e320d169be722eefb3df2b2c1 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 23 Feb 2006 21:01:51 +0000 Subject: 2006-02-23 Martin Hunt PR 1989. Adds support for %p in printf * staptree.h (struct print_format): Add conv_unsigned_ptr. * staptree.cxx (components_to_string): Output 'p' for conv_unsigned_ptr. * elaborate.cxx (visit_print_format): Add case for conv_unsigned_ptr. --- staptree.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'staptree.cxx') diff --git a/staptree.cxx b/staptree.cxx index 74aa3964..6669e9ae 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -401,6 +401,10 @@ print_format::components_to_string(vector const & components) oss << "llo"; break; + case conv_unsigned_ptr: + oss << "p"; + break; + case conv_unsigned_uppercase_hex: oss << "llX"; break; @@ -551,6 +555,10 @@ print_format::string_to_components(string const & str) curr.type = conv_unsigned_decimal; break; + case 'p': + curr.type = conv_unsigned_ptr; + break; + case 'X': curr.type = conv_unsigned_uppercase_hex; break; -- cgit