]>
Commit | Line | Data |
---|---|---|
70182375 TT |
1 | /* Public API for gdb DWARF reader |
2 | ||
1d506c26 | 3 | Copyright (C) 2021-2024 Free Software Foundation, Inc. |
70182375 TT |
4 | |
5 | This file is part of GDB. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 3 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | #ifndef DWARF2_PUBLIC_H | |
21 | #define DWARF2_PUBLIC_H | |
22 | ||
70182375 TT |
23 | /* A DWARF names index variant. */ |
24 | enum class dw_index_kind | |
25 | { | |
26 | /* GDB's own .gdb_index format. */ | |
27 | GDB_INDEX, | |
28 | ||
29 | /* DWARF5 .debug_names. */ | |
30 | DEBUG_NAMES, | |
31 | }; | |
32 | ||
aecbdf5f TT |
33 | /* Try to locate the sections we need for DWARF 2 debugging |
34 | information. If these are found, begin reading the DWARF and | |
35 | return true. Otherwise, return false. NAMES points to the dwarf2 | |
36 | section names, or is NULL if the standard ELF names are used. | |
37 | CAN_COPY is true for formats where symbol interposition is possible | |
38 | and so symbol values must follow copy relocation rules. */ | |
39 | ||
40 | extern bool dwarf2_initialize_objfile | |
41 | (struct objfile *, | |
42 | const struct dwarf2_debug_sections * = nullptr, | |
43 | bool = false); | |
70182375 | 44 | |
70182375 TT |
45 | extern void dwarf2_build_frame_info (struct objfile *); |
46 | ||
47 | #endif /* DWARF2_PUBLIC_H */ |