From c68bcc6dbfa6ccf2ff724ff23781b5d999addaf7 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Fri, 8 Mar 2024 15:25:18 +0100 Subject: [PATCH] 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 --- src/abg-dwarf-reader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc index 2473588c..dda5507d 100644 --- a/src/abg-dwarf-reader.cc +++ b/src/abg-dwarf-reader.cc @@ -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;