From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7289F3858422; Fri, 23 Sep 2022 20:23:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7289F3858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663964604; bh=ohxkip4zK1XircQ8z9PQ1bkK7aXb6h6JbMTaH7NK6a4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x2VD67FSnhaDj/+logUX0R/xvImR0TcIeYSjc9RgppQ+uyg2JdqiXRMkDeYjzzv92 1a2Zu4ckKYKnEvfe/SWWFrvAGyH9T2N703uB8+lDclwNwe3OqU9fWZbGmKmQYaBHVf +j5qiuv9s1g3pmu6zYubM9D/42fNcTalHM5mFDM8= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29105] new DWARF reader still slow Date: Fri, 23 Sep 2022 20:23:23 +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: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- 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=3D29105 --- Comment #11 from Tom Tromey --- I managed to reproduce this with the 'sizeof' test program (after hacking gdb to ignore .gdb_index, since the Fedora libc debuginfo uses that). I couldn't reproduce it when running on gdb itself, and I discovered that I can avoid the problem by using C++. That is, when debugging sizeof: (gdb) set debug dwarf-read 1 (gdb) set lang c++ Warning: the current language does not match this frame. (gdb) print sizeof(short) $1 =3D 2 So I tend to think this probably a bug elsewhere in gdb. In C++, gdb canonializes inputs so that lookups will succeed. This isn't done for C, I think, probably because it seemed like there was no need. But given that the DWARF says "signed short" as a symbol name, perhaps we need some special cases for this sort of thing. --=20 You are receiving this mail because: You are on the CC list for the bug.=