From 18c24b6e05e7591069f1a2ac9c614b28fc0853ac Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Mon, 10 Sep 2012 08:54:25 -0700 Subject: Add new_array type info to dex dump output. Also cleaned up a bit of the field printing. Change-Id: Ia731d58b16f554fde9a9ac733f4d4f0148e55ac9 --- src/utils.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index 71a7ebfc79..d038f6d814 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -277,6 +277,14 @@ std::string PrettyField(uint32_t field_idx, const DexFile& dex_file, bool with_t return result; } +std::string PrettyType(uint32_t type_idx, const DexFile& dex_file) { + const DexFile::TypeId& type_id = dex_file.GetTypeId(type_idx); + std::string result; + result += PrettyDescriptor(dex_file.GetTypeDescriptor(type_id)); + result += ' '; + return result; +} + std::string PrettyArguments(const char* signature) { std::string result; result += '('; -- cgit v1.2.3-59-g8ed1b