[PATCH] ctf: ctf_reader::read_corpus now sets a status

Dodji Seketeli dodji@seketeli.org
Thu Nov 18 08:49:50 GMT 2021


Hello,

[...]

"Jose E. Marchesi via Libabigail" <libabigail@sourceware.org> a écrit:


> diff --git a/src/abg-ctf-reader.cc b/src/abg-ctf-reader.cc
> index 27eddc2e..9cfa6cb7 100644
> --- a/src/abg-ctf-reader.cc
> +++ b/src/abg-ctf-reader.cc
> @@ -1073,19 +1073,28 @@ create_read_context(std::string elf_path, ir::environment *env)
>  /// @return a shared pointer to the read corpus.
>  
>  corpus_sptr
> -read_corpus(read_context *ctxt)
> +read_corpus(read_context *ctxt, elf_reader::status &status)
>  {

I have just added a comment to this function.

[...]

>
> 	* 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>

Applied to master.

Thanks!

Cheers,

-- 
		Dodji


More information about the Libabigail mailing list