From 5cc349f3dd578e974f78314c50b6a0267c23e591 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Fri, 18 Dec 2015 15:04:48 +0000 Subject: Report DWARF debug information for JITed code. Change-Id: Ia5b2133c54386932c76c22774cf3d2ae61e0925f --- runtime/jit/jit_code_cache.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/jit/jit_code_cache.cc') diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc index c260ca4629..1ac57b1d84 100644 --- a/runtime/jit/jit_code_cache.cc +++ b/runtime/jit/jit_code_cache.cc @@ -21,6 +21,7 @@ #include "art_method-inl.h" #include "base/stl_util.h" #include "base/time_utils.h" +#include "debugger_interface.h" #include "entrypoints/runtime_asm_entrypoints.h" #include "gc/accounting/bitmap-inl.h" #include "jit/profiling_info.h" @@ -215,6 +216,9 @@ void JitCodeCache::FreeCode(const void* code_ptr, ArtMethod* method ATTRIBUTE_UN uintptr_t allocation = FromCodeToAllocation(code_ptr); const OatQuickMethodHeader* method_header = OatQuickMethodHeader::FromCodePointer(code_ptr); const uint8_t* data = method_header->GetNativeGcMap(); + // Notify native debugger that we are about to remove the code. + // It does nothing if we are not using native debugger. + DeleteJITCodeEntryForAddress(reinterpret_cast(code_ptr)); if (data != nullptr) { mspace_free(data_mspace_, const_cast(data)); } -- cgit v1.2.3-59-g8ed1b