[PATCH] [gdb/symtab] Handle PU in iterate_over_some_symtabs

Tom Tromey tom@tromey.com
Tue Sep 5 16:45:08 GMT 2023


>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> This happens because the PU imported by the CU reuses the filetab of the CU,
Tom> and both the CU and PU are visited by iterate_over_some_symtabs.

Tom> Fix this by skipping PUs in iterate_over_some_symtabs.

Looks good to me.
Approved-By: Tom Tromey <tom@tromey.com>

I wonder what would happen if we simply left included CUs off the linked list.
Is it ever worthwhile to search them?

Tom


More information about the Gdb-patches mailing list