[PATCH 2/2] Remove dwarf2_cu::language

Tom Tromey tom@tromey.com
Wed Jun 9 21:00:51 GMT 2021

Tom> But actually, I wonder whether that code even needs a language check.
Tom> My thought is that an import of a DW_UT_compile / DW_TAG_compile_unit CU
Tom> can always be skipped on the grounds that the CU is being scanned
Tom> separately anyway.

Removing the check causes gdb.dwarf2/imported-unit-bp.exp to fail.
However, I think this is probably a bug in the test case.
Or, if it isn't, then it points out that this import special case is
wrong -- because the test case fails if I change it to think the
sources are C++.


More information about the Gdb-patches mailing list