• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  
17  #ifndef ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_
18  #define ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_
19  
20  #include <string>
21  
22  #include "arch/instruction_set.h"
23  #include "base/array_ref.h"
24  #include "base/macros.h"
25  #include "dex/dex_file.h"
26  
27  namespace art HIDDEN {
28  namespace debug {
29  
30  struct MethodDebugInfo {
31    std::string custom_name;
32    const DexFile* dex_file;  // Native methods (trampolines) do not reference dex file.
33    size_t class_def_index;
34    uint32_t dex_method_index;
35    uint32_t access_flags;
36    const dex::CodeItem* code_item;
37    InstructionSet isa;
38    bool deduped;
39    bool is_native_debuggable;
40    bool is_optimized;
41    bool is_code_address_text_relative;  // Is the address offset from start of .text section?
42    uint64_t code_address;
43    uint32_t code_size;
44    uint32_t frame_size_in_bytes;
45    const uint8_t* code_info;
46    ArrayRef<const uint8_t> cfi;
47  };
48  
49  }  // namespace debug
50  }  // namespace art
51  
52  #endif  // ART_COMPILER_DEBUG_METHOD_DEBUG_INFO_H_
53