More debugger support.
This wires up method-entry events and fixes a bug in exception events.
Change-Id: Ia7c46786a8073434fbb4546615072622f301ef84
diff --git a/src/utils.cc b/src/utils.cc
index 09a01c6..f599c0e 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -375,13 +375,18 @@
}
std::string DescriptorToDot(const char* descriptor) {
+ std::string result(DescriptorToName(descriptor));
+ std::replace(result.begin(), result.end(), '/', '.');
+ return result;
+}
+
+std::string DescriptorToName(const char* descriptor) {
size_t length = strlen(descriptor);
DCHECK_GT(length, 0U);
DCHECK_EQ(descriptor[0], 'L');
DCHECK_EQ(descriptor[length - 1], ';');
- std::string dot(descriptor + 1, length - 2);
- std::replace(dot.begin(), dot.end(), '/', '.');
- return dot;
+ std::string result(descriptor + 1, length - 2);
+ return result;
}
std::string JniShortName(const Method* m) {