blob: 567891087aced014f26b463786ef527344840519 [file] [log] [blame]
Vladimir Marko10c13562015-11-25 14:33:36 +00001/*
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 Srbecky4fda4eb2016-02-05 13:34:46 +000017#ifndef ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_
18#define ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_
Vladimir Marko10c13562015-11-25 14:33:36 +000019
Vladimir Marko1b404a82017-09-01 13:35:26 +010020#include <string>
21
David Srbeckyc5bfa972016-02-05 15:49:10 +000022#include "compiled_method.h"
Vladimir Marko10c13562015-11-25 14:33:36 +000023#include "dex_file.h"
24
25namespace art {
David Srbeckyc5bfa972016-02-05 15:49:10 +000026namespace debug {
Vladimir Marko10c13562015-11-25 14:33:36 +000027
28struct MethodDebugInfo {
Vladimir Marko1b404a82017-09-01 13:35:26 +010029 std::string trampoline_name;
David Srbecky09c2a6b2016-03-11 17:11:44 +000030 const DexFile* dex_file; // Native methods (trampolines) do not reference dex file.
David Srbeckyc5bfa972016-02-05 15:49:10 +000031 size_t class_def_index;
32 uint32_t dex_method_index;
33 uint32_t access_flags;
34 const DexFile::CodeItem* code_item;
David Srbecky197160d2016-03-07 17:33:57 +000035 InstructionSet isa;
David Srbeckyc5bfa972016-02-05 15:49:10 +000036 bool deduped;
David Srbecky91cc06c2016-03-07 16:13:58 +000037 bool is_native_debuggable;
David Srbecky197160d2016-03-07 17:33:57 +000038 bool is_optimized;
39 bool is_code_address_text_relative; // Is the address offset from start of .text section?
40 uint64_t code_address;
41 uint32_t code_size;
42 uint32_t frame_size_in_bytes;
David Srbecky09c2a6b2016-03-11 17:11:44 +000043 const void* code_info;
David Srbecky197160d2016-03-07 17:33:57 +000044 ArrayRef<const uint8_t> cfi;
Vladimir Marko10c13562015-11-25 14:33:36 +000045};
46
David Srbeckyc5bfa972016-02-05 15:49:10 +000047} // namespace debug
Vladimir Marko10c13562015-11-25 14:33:36 +000048} // namespace art
49
David Srbecky4fda4eb2016-02-05 13:34:46 +000050#endif // ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_