diff options
author | Elliott Hughes <enh@google.com> | 2011-12-02 16:16:23 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-12-02 16:16:23 -0800 |
commit | aed4be94da51b4fbb54c728151f0daf11535f6ab (patch) | |
tree | 75b2d9b28862b1aa8529199964bf91a4b3df4c9d /src/jdwp/jdwp.h | |
parent | f03b8f66511a2d8cb78d306f36feb51392232a5e (diff) | |
download | art-aed4be94da51b4fbb54c728151f0daf11535f6ab.zip art-aed4be94da51b4fbb54c728151f0daf11535f6ab.tar.gz art-aed4be94da51b4fbb54c728151f0daf11535f6ab.tar.bz2 |
Implement field getting and setting.
This lets you use "dump" and "set <object>.<field> = <value>".
Change-Id: I47aee563b26e04f4931ac1cf3de2cd2e38db35a7
Diffstat (limited to 'src/jdwp/jdwp.h')
-rw-r--r-- | src/jdwp/jdwp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jdwp/jdwp.h b/src/jdwp/jdwp.h index 1b766bd..f138880 100644 --- a/src/jdwp/jdwp.h +++ b/src/jdwp/jdwp.h @@ -55,6 +55,7 @@ static inline MethodId ReadMethodId(const uint8_t** pBuf) { return Read4BE(pBuf) static inline ObjectId ReadObjectId(const uint8_t** pBuf) { return Read8BE(pBuf); } static inline RefTypeId ReadRefTypeId(const uint8_t** pBuf) { return Read8BE(pBuf); } static inline FrameId ReadFrameId(const uint8_t** pBuf) { return Read8BE(pBuf); } +static inline JdwpTag ReadTag(const uint8_t** pBuf) { return static_cast<JdwpTag>(Read1(pBuf)); } static inline void SetFieldId(uint8_t* buf, FieldId val) { return Set4BE(buf, val); } static inline void SetMethodId(uint8_t* buf, MethodId val) { return Set4BE(buf, val); } static inline void SetObjectId(uint8_t* buf, ObjectId val) { return Set8BE(buf, val); } |