From 5226ef61131c1dbb58bcf4ff10ece4312690bc82 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Thu, 25 Mar 2021 16:32:46 +0000 Subject: libctf: make ctf_bfdopen_ctfsect a debugger entry point This makes it possible to use LIBCTF_DEBUG to debug things that happen before the ctf_bfdopen_internal call that ctf_bfdopen_ctfsect eventually thunks down to (symtab/strtab lookup, archive opening, etc). This is not important for ctf_open callers, since ctf_fdopen already calls libctf_init_debug, but ctf_bfdopen_ctfsect is a public entry point that can be called directly (e.g. objdump and readelf both do so). libctf/ChangeLog 2021-03-25 Nick Alcock * ctf-open-bfd.c (ctf_bfdopen_ctfsect): Initialize debugging. --- libctf/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libctf/ChangeLog') diff --git a/libctf/ChangeLog b/libctf/ChangeLog index a9e76ec..32268f8 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,9 @@ 2021-03-25 Nick Alcock + * ctf-open-bfd.c (ctf_bfdopen_ctfsect): Initialize debugging. + +2021-03-25 Nick Alcock + PR libctf/27628 * ctf-serialize.c (ctf_emit_type_sect): Allow for a NULL vlen in CTF_K_FUNCTION types. -- cgit v1.1