Return values for locals, so "locals" can show them.
Also implement a couple of other JDWP commands so jdb can show the length
of arrays and the value of strings.
Change-Id: Ib2a4dc2ee784ee10bdb924e91b0150aa8a96845d
diff --git a/src/object.h b/src/object.h
index 91fca63..85542d2 100644
--- a/src/object.h
+++ b/src/object.h
@@ -808,22 +808,7 @@
SetMappingTable(reinterpret_cast<const uint32_t*>(mapping_table_offset));
}
- const uint16_t* GetVmapTable() const {
- const uint16_t* vmap = GetVmapTableRaw();
- if (vmap == NULL) {
- return vmap;
- }
- return vmap + 1;
- }
-
- uint16_t GetVmapTableLength() const {
- const uint16_t* vmap = GetVmapTableRaw();
- if (vmap == NULL) {
- return 0;
- }
- return *vmap;
- }
-
+ // Callers should wrap the uint16_t* in a VmapTable instance for convenient access.
const uint16_t* GetVmapTableRaw() const {
return GetFieldPtr<const uint16_t*>(OFFSET_OF_OBJECT_MEMBER(Method, vmap_table_), false);
}