libctf: make ctf_bfdopen_ctfsect a debugger entry point
authorNick Alcock <nick.alcock@oracle.com>
Thu, 25 Mar 2021 16:32:46 +0000 (16:32 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 25 Mar 2021 16:32:49 +0000 (16:32 +0000)
commit5226ef61131c1dbb58bcf4ff10ece4312690bc82
treed8eaa6454bb50cdd0ffd03f25f1055f27c4ccee7
parent86f64bf43f70ecefa9232f5b8621b179dfff52fd
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  <nick.alcock@oracle.com>

* ctf-open-bfd.c (ctf_bfdopen_ctfsect): Initialize debugging.
libctf/ChangeLog
libctf/ctf-open-bfd.c