From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CFB43844041; Thu, 11 Mar 2021 19:17:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CFB43844041 From: "dhoyer at netapp dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information Date: Thu, 11 Mar 2021 19:17:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: dhoyer at netapp dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 19:17:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81932 David Hoyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dhoyer at netapp dot com --- Comment #31 from David Hoyer --- (In reply to robert@ocallahan.org from comment #30) > (In reply to Xi Ruoyao from comment #27) > > Yes. Could GDB search the symbol with linkage name? >=20 > This might work for function names but if you're trying to look up a type > name (e.g. for a cast expression) this doesn't work because types don't h= ave > linkage names. We can often find a mangled name for a type as part of a > function or global variable linkage name, but we can't guarantee that. >=20 > Taking a user-provided type name and converting it into something we can > look up in DWARF is already pretty hard due to C++ vagaries, but not know= ing > how the compiler canonicalizes these names makes it even harder, and it > would simplify things if the compiler at least matches the demangler. This issue has gotten stale and yet is still a problem for us using debian buster. Is there any update?=