Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
David Srbecky | 4fda4eb | 2016-02-05 13:34:46 +0000 | [diff] [blame] | 17 | #ifndef ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_ |
| 18 | #define ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_ |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 19 | |
Vladimir Marko | 1b404a8 | 2017-09-01 13:35:26 +0100 | [diff] [blame] | 20 | #include <string> |
| 21 | |
Vladimir Marko | d8dbc8d | 2017-09-20 13:37:47 +0100 | [diff] [blame] | 22 | #include "arch/instruction_set.h" |
| 23 | #include "base/array_ref.h" |
David Sehr | 9e734c7 | 2018-01-04 17:56:19 -0800 | [diff] [blame] | 24 | #include "dex/dex_file.h" |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 25 | |
| 26 | namespace art { |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 27 | namespace debug { |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 28 | |
| 29 | struct MethodDebugInfo { |
David Srbecky | c684f33 | 2018-01-19 17:38:06 +0000 | [diff] [blame] | 30 | std::string custom_name; |
David Srbecky | 09c2a6b | 2016-03-11 17:11:44 +0000 | [diff] [blame] | 31 | const DexFile* dex_file; // Native methods (trampolines) do not reference dex file. |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 32 | size_t class_def_index; |
| 33 | uint32_t dex_method_index; |
| 34 | uint32_t access_flags; |
| 35 | const DexFile::CodeItem* code_item; |
David Srbecky | 197160d | 2016-03-07 17:33:57 +0000 | [diff] [blame] | 36 | InstructionSet isa; |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 37 | bool deduped; |
David Srbecky | 91cc06c | 2016-03-07 16:13:58 +0000 | [diff] [blame] | 38 | bool is_native_debuggable; |
David Srbecky | 197160d | 2016-03-07 17:33:57 +0000 | [diff] [blame] | 39 | bool is_optimized; |
| 40 | bool is_code_address_text_relative; // Is the address offset from start of .text section? |
| 41 | uint64_t code_address; |
| 42 | uint32_t code_size; |
| 43 | uint32_t frame_size_in_bytes; |
David Srbecky | 09c2a6b | 2016-03-11 17:11:44 +0000 | [diff] [blame] | 44 | const void* code_info; |
David Srbecky | 197160d | 2016-03-07 17:33:57 +0000 | [diff] [blame] | 45 | ArrayRef<const uint8_t> cfi; |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 46 | }; |
| 47 | |
David Srbecky | c5bfa97 | 2016-02-05 15:49:10 +0000 | [diff] [blame] | 48 | } // namespace debug |
Vladimir Marko | 10c1356 | 2015-11-25 14:33:36 +0000 | [diff] [blame] | 49 | } // namespace art |
| 50 | |
David Srbecky | 4fda4eb | 2016-02-05 13:34:46 +0000 | [diff] [blame] | 51 | #endif // ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_ |