Improve -verbose:jdwp.
Move toward automated logging instead of ad hoc logging in every command.
Change-Id: I55427022374390745209677bae4e0b3146a9d126
diff --git a/src/debugger.h b/src/debugger.h
index b33216b..b34a401 100644
--- a/src/debugger.h
+++ b/src/debugger.h
@@ -199,7 +199,7 @@
//
// Methods and fields.
//
- static std::string GetMethodName(JDWP::RefTypeId ref_type_id, JDWP::MethodId id)
+ static std::string GetMethodName(JDWP::MethodId method_id)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
static JDWP::JdwpError OutputDeclaredFields(JDWP::RefTypeId ref_type_id, bool with_generic,
JDWP::ExpandBuf* pReply)
@@ -220,6 +220,8 @@
std::vector<uint8_t>& bytecodes)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+ static std::string GetFieldName(JDWP::FieldId field_id)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
static JDWP::JdwpTag GetFieldBasicTag(JDWP::FieldId field_id)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
static JDWP::JdwpTag GetStaticFieldBasicTag(JDWP::FieldId field_id)