8#ifndef __ABG_TOOLS_UTILS_H
9#define __ABG_TOOLS_UTILS_H
17#include "abg-suppression.h"
42 const vector<char**>& debug_info_root_paths);
44 const vector<char**>& debug_info_root_paths);
46 const vector<char**>& debug_info_root_paths);
56 string& path_dir_name,
57 bool keep_separator_at_end=
false);
58void real_path(
const string&path,
string& realpath);
61ostream&
emit_prefix(
const string& prog_name, ostream& out);
62bool check_file(
const string& path, ostream& out,
const string& prog_name =
"");
63bool check_dir(
const string& path, ostream& out,
const string& prog_name=
"");
68bool split_string(
const string&,
const string&, vector<string>&);
76 vector<string>& arguments);
78 set<string>& provided_dsos);
89 const vector<string>& hdr_files);
93 const vector<string>& header_files);
97 (
const vector<string>& abi_whitelist_paths);
101 string& vmlinux_path);
105 const string& debug_info_root_path,
106 string& vmlinux_path,
107 vector<string>& module_paths);
111 string& vmlinux_path,
112 vector<string>& module_paths);
128 const string& file_path_to_look_for,
133 const string& file_path_to_look_for,
141 const vector<string>& binaries,
142 const vector<string>& deps_dirs,
143 corpus_group& group);
147 const corpus& korpus,
148 const vector<string>& deps_dirs,
149 corpus_group& group);
153 const corpus_sptr& korpus,
154 const vector<string>& binaries,
155 const vector<string>& deps_dirs);
159 const corpus_sptr& korpus,
160 const vector<string>& deps_dirs);
182 std::unique_ptr<priv> priv_;
221 FILE_TYPE_XML_CORPUS,
224 FILE_TYPE_XML_CORPUS_GROUP,
294 std::unique_ptr<priv> priv_;
309 bool value(time_t& hours,
312 time_t& milliseconds)
const;
341 const string& file_name);
355 const string debug_info_root,
356 const string& vmlinux_path,
357 vector<string>& suppr_paths,
358 vector<string>& kabi_wl_paths,
366 const vector<char**>& debug_info_root_paths,
370 bool linux_kernel_mode =
false);
378#define ABG_ASSERT_NOT_REACHED \
380 std::cerr << "in " << __FUNCTION__ \
381 << " at: " << __FILE__ << ":" << __LINE__ \
382 << ": execution should not have reached this point!\n"; \
This file contains the declarations for an elf-based. DWARF and CTF readers can inherit this one.
origin
This abstracts where the corpus comes from. That is, either it has been read from the native xml form...
This is an abstraction of the set of resources necessary to manage several aspects of the internal re...
vector< suppression_sptr > suppressions_type
Convenience typedef for a vector of suppression_sptr.
shared_ptr< type_suppression > type_suppression_sptr
Convenience typedef for a shared pointer to type_suppression.
Toplevel namespace for libabigail.