diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2025-04-08 14:02:26 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2025-04-08 14:02:26 +0100 |
commit | eda34582aa3322899fa6889aba05573e908a8cc0 (patch) | |
tree | 1edb84a9e6f542b51ff0c6b97653b679f517cfe4 /gdb/gdb-stabs.h | |
parent | cba57e167d73528f54dd7a70c21f89aff14571c2 (diff) | |
download | binutils-users/nalcock/road-to-ctfv4.zip binutils-users/nalcock/road-to-ctfv4.tar.gz binutils-users/nalcock/road-to-ctfv4.tar.bz2 |
libctf: open: don't play with ctf_typemax during name table initusers/nalcock/road-to-ctfv4
This seemed safe, but name table init includes ptrtab initialization, and
*that* involves doing ctf_type_to_index() on the type the pointer
references -- which can be a forward-reference. So ctf_typemax must
have its final valid value at all stages in this loop or we can't
get an index back out reliably.
Playing with ctf_typemax here doesn't really buy us anything, only stopping
us from doing name lookups on types we can't look up names for anyway
because we haven't yet put them in the name table hashes.
Diffstat (limited to 'gdb/gdb-stabs.h')
0 files changed, 0 insertions, 0 deletions