From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B001E3858D35; Wed, 15 Feb 2023 15:56:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B001E3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676476615; bh=OhfLSDx16AXzoDqNqCZKjA22IqCRrkK5XtkWSuoiHPQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PaQVVtLx4Id2R6pBbPImqV20bdruqwSKKr3x7LVmuZHISY/Qm/mG1DXASqFCmd7vb IMi9dapuPZ/0H9MDDXTuIMshzxyASXwhdJzgcxf8Gomi5NtjkhaS6AMUmSShNRuO0J av7ruOJSqISMeRWVrmdB47L49233pPzQiSrn+DXs= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/30008] gdb fails to get line numbers with gold/mold with --gdb-index Date: Wed, 15 Feb 2023 15:56:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: UNCONFIRMED 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: cc 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=3D30008 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #3 from Tom Tromey --- I set my ld to gold, just to be sure. murgatroyd. /bin/ld --version GNU gold (version 2.37-37.fc36) 1.16 Then I tried the instructions in comment #2 and I get: Breakpoint 1.1, mold::elf::parse_nonpositional_args (ctx=3D...) at /home/tromey/gdb/PRs/pr-30008-mold/mold/elf/cmdline.cc:395 395 std::span args =3D ctx.cmdline_args; #0 mold::elf::parse_nonpositional_args (ctx=3D...) at /home/tromey/gdb/PRs/pr-30008-mold/mold/elf/cmdline.cc:395 #1 0x000000000064297e in mold::elf::elf_main (argc=3D3, argv=3D0x7fffffffe368) at /home/tromey/gdb/PRs/pr-30008-mold/mold/elf/elf-main.cc:391 #2 0x000000000063e2eb in mold::elf::main (argc=3D3, argv=3D0x7fffffffe368)= at /home/tromey/gdb/PRs/pr-30008-mold/mold/elf/elf-main.cc:762 #3 0x0000000001c14637 in main (argc=3D3, argv=3D0x7fffffffe368) at /home/tromey/gdb/PRs/pr-30008-mold/mold/common/main.cc:155 So I think it is working for me as well. --=20 You are receiving this mail because: You are on the CC list for the bug.=