From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 28D083858C83; Thu, 26 Jan 2023 17:29:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28D083858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674754157; bh=ZItWGr887LvQBej5cg4Oiy7oGprVupodf43VDUqGbH8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iBM2FNUPsAvO+oGICxARJGEMCokZqNKhhBoCrJ5ptwAOKP+Q1HsB+AUBwdU6+HIha I+Wenog9W8+fUq8fAeAi8m5cNdYmcR87rdEtddhcUKnINJcCNLxqnavbNcDE+D009N 8i4mL2DWaeQEGlEqn7ZCeWephg3Ak+ina3WjJtgA= From: "mark at klomp dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29558] [gdb/symtab] Handle gas-generated debug info (DW_TAG_unspecified_type) Date: Thu, 26 Jan 2023 17:29:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 13.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29558 --- Comment #10 from Mark Wielaard --- (In reply to Mark Wielaard from comment #9) > Created attachment 14632 [details] > tests: Handle DW_TAG_unspecified_type in funcretval test >=20 > This patch just fixes the testcase to check for DW_TAG_unspecified_type as > return type. > With your test binary tests/funcretval now prints: >=20 > () _start: returns unspecified type > () main: return value location: {0x50, 0} >=20 > But maybe a better fix is for dwfl_module_return_value_location to return > zero (which technically means that the function doesn't have a return val= ue). >=20 > Opinions? Sorry, this patch was for elfutils, specifically https://sourceware.org/bugzilla/show_bug.cgi?id=3D30047 I was just looking = how gdb handled this. Apologies. --=20 You are receiving this mail because: You are on the CC list for the bug.=