Add new_array type info to dex dump output.
Also cleaned up a bit of the field printing.
Change-Id: Ia731d58b16f554fde9a9ac733f4d4f0148e55ac9
diff --git a/src/utils.cc b/src/utils.cc
index 71a7ebf..d038f6d 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -277,6 +277,14 @@
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 += '(';