From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5A933858C50; Tue, 12 Sep 2023 09:41:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5A933858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694511714; bh=+iAGqA64rs7kulIRc3ItvLYM8wJMIyTkYk2Rku7yfes=; h=From:To:Subject:Date:From; b=ayuY6s9j85StfbGCvE6r9Uy9YxXKg6zfQU8zV8qEudmAYyOQWhVR092fK3SuE8/IM z7RDdxngIV+n24xs/pe9hy4TbQj7UOmmh7qucimtEoWtGyEHs2dScysLOG/u6HbFO2 Mtx6YQgvoMk6/44RdH6wnKPZ7nHZ5RgjJwZ2hREA= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30841] New: [gdb, symtab] gdb-add-index doesn't support .gnu_debugaltlink Date: Tue, 12 Sep 2023 09:41:54 +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: enhancement 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=3D30841 Bug ID: 30841 Summary: [gdb, symtab] gdb-add-index doesn't support .gnu_debugaltlink Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Say we have an executable a.out, with a .gnu_debugaltlink to a dwz file a.d= wz. Adding a .gdb_index section to a.out also requires adding a minimal .gdb_in= dex section to a.dwz. Our current implementation of gdb-add-index, based on the "save gdb-index" command (which currently only generates a symbol-file.gdb-index) doesn't support this. Supporting this would involve: - modifying "save gdb-index" to also generate a symbol-file.dwz-gdb-index, and - modifying gdb-add-index to add that as a .gdb_section to the file pointed= to by the .gnu_debugaltlink. --=20 You are receiving this mail because: You are on the CC list for the bug.=