diff options
author | 2017-06-16 20:34:28 +0000 | |
---|---|---|
committer | 2017-06-16 20:34:30 +0000 | |
commit | 8b0673f022711bc725b63517bf338447a00cb45c (patch) | |
tree | 16e40759a676d61554730c6830baa736ff6d83fe /runtime/debugger.cc | |
parent | 8d80bba69c113cc53dd322aa6d4130e1a07db5a3 (diff) | |
parent | e00ec30588a36eed90aa24eaca9dbc7520f17bf7 (diff) |
Merge "Make native field operations call instrumentation listeners."
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 7e70b7564c..12bdb32fec 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -2927,7 +2927,8 @@ void Dbg::PostLocationEvent(ArtMethod* m, int dex_pc, mirror::Object* this_objec void Dbg::PostFieldAccessEvent(ArtMethod* m, int dex_pc, mirror::Object* this_object, ArtField* f) { - if (!IsDebuggerActive()) { + // TODO We should send events for native methods. + if (!IsDebuggerActive() || m->IsNative()) { return; } DCHECK(m != nullptr); @@ -2941,7 +2942,8 @@ void Dbg::PostFieldAccessEvent(ArtMethod* m, int dex_pc, void Dbg::PostFieldModificationEvent(ArtMethod* m, int dex_pc, mirror::Object* this_object, ArtField* f, const JValue* field_value) { - if (!IsDebuggerActive()) { + // TODO We should send events for native methods. + if (!IsDebuggerActive() || m->IsNative()) { return; } DCHECK(m != nullptr); |