From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 529C83858410; Fri, 21 Jul 2023 07:34:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 529C83858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689924865; bh=0g5FCMf+H+aVI+qUCjwjdJcvM6R/RZcl8wIrG06UXnM=; h=From:To:Subject:Date:From; b=Kh4/8HCAeqWEopFM43t5wHDgKltDwZ3RYSZpBE2ky0+HYDGTL5idU40Y3CBQpc/xT jzhYBsqd4LZ82TxBFqFdVunwVHTxOyNeiWKnRbfYf6hKWSqUzEwpeArGaRqaIhtnB6 lDK4h6yCEsqqkpWpMhS/rl1RqWwk6FD26fmpb2JY= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30661] New: [gdb/symtab] main symbol language lookup causes symtab expansion Date: Fri, 21 Jul 2023 07:34:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D30661 Bug ID: 30661 Summary: [gdb/symtab] main symbol language lookup causes symtab expansion Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Consider a hello world: ... $ gcc -g hello.c=20 ... With gdb-12-branch: ... $ gdb -q -batch a.out -ex "maint info symtabs" $ ... With gdb-13-branch: ... $ gdb -q -batch a.out -ex "maint info symtabs" { objfile /data/vries/gdb/a.out ((struct objfile *) 0x146ca90) { ((struct compunit_symtab *) 0x1460fc0) debugformat DWARF 4 producer GNU C11 7.5.0 -mtune=3Dgeneric -march=3Dx86-64 -g name hello.c ... ... This is a feature that was added to work around the slowness in expansion of lto debug info, in order to not have to wait too long for the "file a.out" = to finish. Feature was added in commit d3214198119 ("[gdb] Use partial symbol table to find language for main"). This seems to have regressed. --=20 You are receiving this mail because: You are on the CC list for the bug.=