public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 2/2] gprofng: fix Dwarf reader for DW_TAG_subprogram
@ 2023-02-17  4:41 vladimir.mezentsev
  0 siblings, 0 replies; only message in thread
From: vladimir.mezentsev @ 2023-02-17  4:41 UTC (permalink / raw)
  To: binutils; +Cc: Vladimir Mezentsev

From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>

gprofng/ChangeLog
2023-02-16  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

	* 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.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-17  4:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17  4:41 [PATCH 2/2] gprofng: fix Dwarf reader for DW_TAG_subprogram vladimir.mezentsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).