summaryrefslogtreecommitdiff
path: root/compiler/debug/method_debug_info.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2016-03-11 17:11:44 +0000
committer David Srbecky <dsrbecky@google.com> 2016-03-11 17:35:19 +0000
commit09c2a6be63337ee060e2d54bd01cf18be7301d29 (patch)
treec623c5352bc908410f03b20b772c3dad47df207c /compiler/debug/method_debug_info.h
parentfdaa583e785383cca68df63c7ef53fcaf667b8e2 (diff)
Add trampoline symbols to native debug info.
The debugger needs them to unwind through the trampolines and to understand what is happening in the call stack. Change-Id: Ia554058c3796788adcd7336d620a7734eb366905
Diffstat (limited to 'compiler/debug/method_debug_info.h')
-rw-r--r--compiler/debug/method_debug_info.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/debug/method_debug_info.h b/compiler/debug/method_debug_info.h
index 1ccc705ff9..ed1da2c26e 100644
--- a/compiler/debug/method_debug_info.h
+++ b/compiler/debug/method_debug_info.h
@@ -24,7 +24,8 @@ namespace art {
namespace debug {
struct MethodDebugInfo {
- const DexFile* dex_file;
+ const char* trampoline_name;
+ const DexFile* dex_file; // Native methods (trampolines) do not reference dex file.
size_t class_def_index;
uint32_t dex_method_index;
uint32_t access_flags;
@@ -37,7 +38,7 @@ struct MethodDebugInfo {
uint64_t code_address;
uint32_t code_size;
uint32_t frame_size_in_bytes;
- const uint8_t* code_info;
+ const void* code_info;
ArrayRef<const uint8_t> cfi;
};