Re: [PATCH v3 0/8] Correctly handle inline functions with dwz

Tom Tromey
2026-02-23T22:31:44Z

>>>>> "Sam" == Sam James <sam@gentoo.org> writes:

Sam> dwarf2/index-write.c:818: internal-error: build: Assertion `offset_inserted' failed.

Thanks for sending the executable.

The assert here is wrong now, because a given cooked_index_entry can be
seen twice in this loop -- but only when the entry represents an inline
function.

The fix is to rewrite the assert:

gdb_assert (offset_inserted
|| (entry->flags & IS_INLINED) != 0);

I'm looking to see how I can turn this into a test case.

Tom