GDB (xrefs)
Loading...
Searching...
No Matches
read-gdb-index.h
Go to the documentation of this file.
1/* Reading code for .gdb_index
2
3 Copyright (C) 2023 Free Software Foundation, Inc.
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_READ_GDB_INDEX_H
21#define DWARF2_READ_GDB_INDEX_H
22
23#include "gdbsupport/function-view.h"
24
25struct dwarf2_per_bfd;
27struct dwz_file;
28struct objfile;
29
30/* Callback types for dwarf2_read_gdb_index. */
31
32typedef gdb::function_view
33 <gdb::array_view<const gdb_byte>(objfile *, dwarf2_per_bfd *)>
35typedef gdb::function_view
36 <gdb::array_view<const gdb_byte>(objfile *, dwz_file *)>
38
39/* Read .gdb_index. If everything went ok, initialize the "quick"
40 elements of all the CUs and return 1. Otherwise, return 0. */
41
43 (dwarf2_per_objfile *per_objfile,
44 get_gdb_index_contents_ftype get_gdb_index_contents,
45 get_gdb_index_contents_dwz_ftype get_gdb_index_contents_dwz);
46
47#endif /* DWARF2_READ_GDB_INDEX_H */
gdb::function_view< gdb::array_view< const gdb_byte >(objfile *, dwz_file *) get_gdb_index_contents_dwz_ftype)
int dwarf2_read_gdb_index(dwarf2_per_objfile *per_objfile, get_gdb_index_contents_ftype get_gdb_index_contents, get_gdb_index_contents_dwz_ftype get_gdb_index_contents_dwz)
gdb::function_view< gdb::array_view< const gdb_byte >(objfile *, dwarf2_per_bfd *) get_gdb_index_contents_ftype)
Definition dwz.h:32