diff options
| author | 2012-09-10 08:54:25 -0700 | |
|---|---|---|
| committer | 2012-09-10 09:42:13 -0700 | |
| commit | 18c24b6e05e7591069f1a2ac9c614b28fc0853ac (patch) | |
| tree | cf1d9507d4cba52017f71fd7073ff565a90b8c36 /src/utils.cc | |
| parent | 1a0806c6847a9dc5cc6d73460d7e8ad3183b5c49 (diff) | |
Add new_array type info to dex dump output.
Also cleaned up a bit of the field printing.
Change-Id: Ia731d58b16f554fde9a9ac733f4d4f0148e55ac9
Diffstat (limited to 'src/utils.cc')
| -rw-r--r-- | src/utils.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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 += '('; |