From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83DD33858425; Wed, 21 Dec 2022 20:48:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83DD33858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671655736; bh=ale6Y+Zxbs5l8QLSKU6VM2qP3nLTOUjKgttL1+996uY=; h=From:To:Subject:Date:From; b=MIS7Z/s/hvwNcxpwihHOS2pIF6uCmsZWx3PAIhMe6yf9PE8uwKwQwoLWx/oGZrXSG xyMu6OandM0i7P7dEebStlzysPDOgavYB09zFV4amNQxBPQNPcdQC2n/SWxnj29fEz AoP57eR35gGgLDpT+0rsQmnPT13kQf2cc8Io8MRA= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug remote/29929] New: gdb looks for "target:" file on the target Date: Wed, 21 Dec 2022 20:48:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote 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: 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=3D29929 Bug ID: 29929 Summary: gdb looks for "target:" file on the target Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: remote Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org Target Milestone: --- A simple way to reproduce this bug is to: $ gdb /bin/ls (gdb) target remote | gdbserver - /bin/ls (gdb) cont If you examine the output, you'll see something like: Reading target:/usr/lib/debug/lib64//libcap.so.2.48-2.48-4.fc36.x86_64.debug from remote target... That "target:" is leaking through to the remote, which is nonsensical. It comes from this code in find_separate_debug_file: debugfile =3D target_prefix ? "target:" : ""; debugfile +=3D gdb_sysroot; debugfile +=3D debugdir; (top-gdb) p gdb_sysroot $18 =3D "target:" --=20 You are receiving this mail because: You are on the CC list for the bug.=