File: abg-dwarf-reader.h

package info (click to toggle)
libabigail 2.9-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,021,756 kB
  • sloc: xml: 572,663; cpp: 110,945; sh: 11,868; ansic: 4,329; makefile: 3,486; python: 1,684; ada: 62
file content (69 lines) | stat: -rw-r--r-- 1,775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// -*- Mode: C++ -*-
//
// Copyright (C) 2013-2025 Red Hat, Inc.
//
// Author: Dodji Seketeli

/// @file
///
/// This file contains the declarations of the entry points to
/// de-serialize an instance of @ref abigail::corpus from a file in
/// elf format, containing dwarf information.

#ifndef __ABG_DWARF_READER_H__
#define __ABG_DWARF_READER_H__

#include <ostream>
#include <elfutils/libdwfl.h>
#include "abg-corpus.h"
#include "abg-suppression.h"
#include "abg-elf-based-reader.h"

namespace abigail
{

/// The namespace for the DWARF reader.
namespace dwarf
{

using namespace abigail::ir;

elf_based_reader_sptr
create_reader(const std::string&	elf_path,
	      const vector<string>& debug_info_root_paths,
	      environment&	environment,
	      bool		read_all_types = false,
	      bool		linux_kernel_mode = false);

void
reset_reader(elf_based_reader&		rdr,
	     const std::string&		elf_path,
	     const vector<string>&	debug_info_root_paths,
	     bool			read_all_types = false,
	     bool			linux_kernel_mode = false);

corpus_sptr
read_corpus_from_elf(const std::string&	elf_path,
		     const vector<string>&	debug_info_root_paths,
		     environment&		environment,
		     bool			load_all_types,
		     fe_iface::status&		status);

bool
lookup_symbol_from_elf(const environment&		env,
		       const string&			elf_path,
		       const string&			symbol_name,
		       bool				demangle,
		       vector<elf_symbol_sptr>&	symbols);

bool
lookup_public_function_symbol_from_elf(const environment&		env,
				       const string&			path,
				       const string&			symname,
				       vector<elf_symbol_sptr>&	func_syms);
}// end namespace dwarf

}// end namespace abigail

#endif //__ABG_DWARF_READER_H__