mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-24 18:52:15 +00:00
8324a223df
This patch makes ctf_reader::read_corpus to get a reference to a `status' variable as an argument, and set it to reflect the result of the read operation. The utilities calling to ctf_reader::read_corpus are updated accordingly. * include/abg-ctf-reader.h: Include abg-elf-reader-common.h. read_corpus now gets an extra argument `status'. * src/abg-ctf-reader.cc (read_corpus): Likewise, and set `status' accordingly when the debug info is not found. * tools/abilint.cc (main): Pass a status argument to ctf_reader::read_corpus. * tools/abidiff.cc (main): Likewise. Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com> Signed-off-by: Dodji Seketeli <dodji@redhat.com>
37 lines
877 B
C++
37 lines
877 B
C++
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
// -*- Mode: C++ -*-
|
|
//
|
|
// Copyright (C) 2021 Oracle, Inc.
|
|
//
|
|
// Author: Jose E. Marchesi
|
|
|
|
/// @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 CTF information.
|
|
|
|
#ifndef __ABG_CTF_READER_H__
|
|
#define __ABG_CTF_READER_H__
|
|
|
|
#include <ostream>
|
|
#include "abg-corpus.h"
|
|
#include "abg-suppression.h"
|
|
#include "abg-elf-reader-common.h"
|
|
|
|
namespace abigail
|
|
{
|
|
namespace ctf_reader
|
|
{
|
|
|
|
class read_context;
|
|
read_context *create_read_context (std::string elf_path,
|
|
ir::environment *env);
|
|
corpus_sptr read_corpus (read_context *ctxt,
|
|
elf_reader::status& status);
|
|
|
|
} // end namespace ctf_reader
|
|
} // end namespace abigail
|
|
|
|
#endif // ! __ABG_CTF_READER_H__
|