From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A857C3858430; Thu, 26 Jan 2023 16:39:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A857C3858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674751142; bh=uVxEMWx09oiaP8mYO9mr7VJ6pX6ok4CyyGmaIkhxCfs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=thaxrDJuitjueE7yEsqZx1WOIlRzLH4wYdysopKhHZr2nAY0+YHFK77v+DgnfWzi+ Q+0sh9V9r/cwLemcjNMDzcl7NVUAAZ8nx18KPeLLGjWnM7BeqtmIOAyRRa8uQ7zSv3 bW7/ydcrpGc/9xRJF5IiirGijjhEBphJF+1Qr0MA= From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/30047] libdw unable to handle DW_TAG_unspecified_type Date: Thu, 26 Jan 2023 16:39:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D30047 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #2 from Mark Wielaard --- This is slightly tricky, because I think we technically do the right thing here. dwfl_module_return_value_location returns that cannot handle DWARF type description error, which is technically correct, since it is an unspecified_type. dwfl_module_return_value_location can return an error (< 0) which means eit= her bad DWARF or unknown/unhandled type, it can return zero, which means the function has no return value, or it return the number of DWARF expression operations (> 0) that describe how to get the value returned by the functio= n. Sadly we don't have an easy way to distinguish between bad DWARF/type and cannot handle type. I think we can change the testcase though, to check for the special case of DW_TAG_unspecified_type. --=20 You are receiving this mail because: You are on the CC list for the bug.=