OSDN Git Service

Support field watchpoint in interpreter
authorSebastien Hertz <shertz@google.com>
Fri, 4 Apr 2014 15:51:34 +0000 (17:51 +0200)
committerSebastien Hertz <shertz@google.com>
Fri, 25 Apr 2014 07:35:54 +0000 (09:35 +0200)
commit479fc1ecc12fa6560ca90d841c4d5174fb346618
tree9c89abea89494c90934b260f42f81e8ca83c3611
parent96a4f29350bf279d48bff70e21e3264cce216683
Support field watchpoint in interpreter

We report field read/write events to instrumentation from the interpreter. This
allows it to send JDWP field access and field modification events to debugger.
This completes CL https://android-review.googlesource.com/90390.

We also fix the JDWP FieldOnly modifier by introducing ModBasket.fieldTypeID.
We incorrectly used ModBasket.classId which is actually dedicated to ClassOnly
modifier based on thread's location's class id.

Finally, we now enable canWatchFieldModification and canWatchFieldAccess JDWP
capabilities so a debugger can request these events to be reported.

Bug: 8267708
Change-Id: I987852ad47abb27b2f7e78544a8189c7a4e2f462
runtime/interpreter/interpreter_common.h
runtime/jdwp/jdwp_event.cc
runtime/jdwp/jdwp_handler.cc
runtime/mirror/art_field.cc
runtime/mirror/art_field.h
runtime/verifier/method_verifier.cc