From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC2B23858D1E; Thu, 8 Sep 2022 12:13:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC2B23858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662639222; bh=Edv0nYoPlG3zd5woyd/GnvHtDJ4DKfGFR3QXJQTx4CU=; h=From:To:Subject:Date:From; b=h6URxjxsNDYxAMbaKnUCrbr9aQh4aNzH4cgCHhemXOtApac/43es+3CcMPxrVu0la d3pwot95j1LB0HNay0CPORgcjjdsu/n5Z00py+53Q32GzxbCe/DCt0crjPre0+BkMQ HMC0uzJTIU5TwSQ/N1Rh8AZ0E483wTyiHidEH7EU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29561] New: [gdb/symtab] During symbol reading: file index out of range Date: Thu, 08 Sep 2022 12:13:42 +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=3D29561 Bug ID: 29561 Summary: [gdb/symtab] During symbol reading: file index out of range 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: --- Fairly simple test-case: ... $ gcc -g ~/hello.c ... With gdb build from trunk: ... $ gdb -q -batch -iex "set complaints 100" ./a.out -ex "maint expand-symtab= s" During symbol reading: file index out of range $ ... With system gdb (11.1): ... $ gdb -q -batch -iex "set complaints 100" ./a.out -ex "maint expand-symtab= s"=20 $ ... DIE that is complained about is: ... <1><4b>: Abbrev Number: 2 (DW_TAG_variable) <4c> DW_AT_name : _IO_stdin_used <50> DW_AT_decl_file : 1 <51> DW_AT_decl_line : 23 <52> DW_AT_type : <0x67> <56> DW_AT_external : 1 <56> DW_AT_location : 9 byte block: 3 70 5 40 0 0 0 0 0=20=20=20= =20=20=20=20 (DW_OP_addr: 400570) ... Referring to file/dir info: ... The Directory Table is empty. The File Name Table (offset 0x78): Entry Dir Time Size Name 1 0 0 0 init.c ... --=20 You are receiving this mail because: You are on the CC list for the bug.=