dwarf-reader: Support creating functions from DW_TAG_inlined_subroutine

Update the assert in build_function_decl to work on
DW_TAG_inlined_subroutine DIEs.

	* src/abg-dwarf-reader.cc (build_function_decl): Loosen the assert
	to accept DW_TAG_inlined_subroutine DIEs.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2024-03-08 15:25:18 +01:00
parent 908f56e1b5
commit c68bcc6dbf

View File

@ -15348,7 +15348,8 @@ build_function_decl(reader& rdr,
function_decl_sptr result = fn;
if (!die)
return result;
ABG_ASSERT(dwarf_tag(die) == DW_TAG_subprogram);
int tag = dwarf_tag(die);
ABG_ASSERT(tag == DW_TAG_subprogram || tag == DW_TAG_inlined_subroutine);
if (!die_is_public_decl(die))
return result;