More JDWP array support.
This lets you examine array elements in jdb.
Change-Id: I74698496311015b4ba8fc5bdad15a21904106316
diff --git a/src/jdwp/jdwp_bits.h b/src/jdwp/jdwp_bits.h
index faa3960..344d2de 100644
--- a/src/jdwp/jdwp_bits.h
+++ b/src/jdwp/jdwp_bits.h
@@ -147,18 +147,26 @@
*buf = (uint8_t)(val);
}
-// @deprecated
static inline void Write1BE(uint8_t** dst, uint8_t value) {
Set1(*dst, value);
*dst += sizeof(value);
}
-// @deprecated
+static inline void Write2BE(uint8_t** dst, uint16_t value) {
+ Set2BE(*dst, value);
+ *dst += sizeof(value);
+}
+
static inline void Write4BE(uint8_t** dst, uint32_t value) {
Set4BE(*dst, value);
*dst += sizeof(value);
}
+static inline void Write8BE(uint8_t** dst, uint64_t value) {
+ Set8BE(*dst, value);
+ *dst += sizeof(value);
+}
+
} // namespace JDWP
} // namespace art