From 490ea364df8bea907b6990200912b99ce79e6a55 Mon Sep 17 00:00:00 2001 From: Vladimir Mezentsev Date: Thu, 16 Feb 2023 19:35:35 -0800 Subject: [PATCH] gprofng: fix Dwarf reader for DW_TAG_subprogram gprofng/ChangeLog 2023-02-16 Vladimir Mezentsev * src/Dwarf.cc: Skip DW_TAG_subprogram when DW_AT_declaration is 1. --- gprofng/src/Dwarf.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gprofng/src/Dwarf.cc b/gprofng/src/Dwarf.cc index 5485be7f796..fb430cdb079 100644 --- a/gprofng/src/Dwarf.cc +++ b/gprofng/src/Dwarf.cc @@ -499,8 +499,7 @@ DwrCU::parseChild (Dwarf_cnt *ctx) if (link_name && streq (link_name, NTXT ("MAIN"))) ctx->fortranMAIN = Stabs::find_func (NTXT ("MAIN"), ctx->module->functions, true, true); } - if (get_linkage_name () == NULL) - break; + break; } func = append_Function (ctx); if (func) -- 2.30.2