]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf, include: debuggability improvements
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 13:20:28 +0000 (14:20 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 30 Oct 2025 14:27:43 +0000 (14:27 +0000)
commite27ecfad8cc4c86cc28f3dc0a3adeb7c9de936e2
tree4f3cde407db2df4f60d224e0d2f82ac12a37d6e2
parentd22bbffbe275468ea401c7db51fdc10e7409fd24
libctf, include: debuggability improvements

When --enable-libctf-hash-debugging is on, make ctf_set_errno and
ctf_set_typed_errno into real functions, not inlines, so you can
drop breakpoints on them.  Since we are breaking API, also move
ECTF_NEXT_END to the start of the _CTF_ERRORS array, so you can
check for real (non-ECTF_NEXT_END) errors in breakpooints on those
functions by checking for err > 1000.
include/ctf-api.h
libctf/ctf-api.c
libctf/ctf-inlines.h