]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: open-bfd: open BTF dicts
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:26:45 +0000 (18:26 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:23:07 +0000 (21:23 +0100)
commit27d5d0ccc73858336cdca094b80cfefded3d1061
treea7bf50c1e32e251a1fbc4af70186ba6929485637
parent0a283f3d7a84286111eeed792e41856160a6937e
libctf: open-bfd: open BTF dicts

Teaching ctf_open and ctf_fdopen to open BTF dicts if passed is quite
simple: we just need to check the magic number and allow BTF dicts
into the lower-level ctf_simple_open machinery (which ultimately
calls ctf_bufopen).
libctf/ctf-open-bfd.c