8 #ifndef __ABG_TOOLS_UTILS_H
9 #define __ABG_TOOLS_UTILS_H
17 #include "abg-suppression.h"
31 using std::shared_ptr;
42 const vector<char**>& debug_info_root_paths);
44 const vector<char**>& debug_info_root_paths);
46 const vector<char**>& debug_info_root_paths);
47 bool is_dir(
const string&);
56 string& path_dir_name,
57 bool keep_separator_at_end=
false);
58 void real_path(
const string&path,
string& realpath);
61 ostream&
emit_prefix(
const string& prog_name, ostream& out);
62 bool check_file(
const string& path, ostream& out,
const string& prog_name =
"");
63 bool check_dir(
const string& path, ostream& out,
const string& prog_name=
"");
68 bool split_string(
const string&,
const string&, vector<string>&);
75 set<string>& provided_dsos);
86 const vector<string>& hdr_files);
90 const vector<string>& header_files);
94 (
const vector<string>& abi_whitelist_paths);
98 string& vmlinux_path);
102 const string& debug_info_root_path,
103 string& vmlinux_path,
104 vector<string>& module_paths);
108 string& vmlinux_path,
109 vector<string>& module_paths);
125 const string& file_path_to_look_for,
147 std::unique_ptr<priv> priv_;
186 FILE_TYPE_XML_CORPUS,
189 FILE_TYPE_XML_CORPUS_GROUP,
259 std::unique_ptr<priv> priv_;
274 bool value(time_t& hours,
277 time_t& milliseconds)
const;
306 const string& file_name);
312 std::shared_ptr<char>
320 const string debug_info_root,
321 const string& vmlinux_path,
322 vector<string>& suppr_paths,
323 vector<string>& kabi_wl_paths,
329 elf_based_reader_sptr
331 const vector<char**>& debug_info_root_paths,
335 bool linux_kernel_mode =
false);
343 #define ABG_ASSERT_NOT_REACHED \
345 std::cerr << "in " << __FUNCTION__ \
346 << " at: " << __FILE__ << ":" << __LINE__ \
347 << ": 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.