]> 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>
Fri, 25 Apr 2025 17:07:41 +0000 (18:07 +0100)
commit7bcd444b9c9c5e68cd18472d1f4d924144546026
treeb3007510088dfc222290acbb5bc70615853392a0
parent2ef95540239a6687ef032839c936cf1a49454b98
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