From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 098FD3858C2D; Tue, 11 Jul 2023 19:44:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 098FD3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689104652; bh=BIXMdPDlGHdZ7gNOeoi0M52qAslc/dNahemfXx2vNXo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Yg5x8GK7RYFt/iDYcrJBHu5jiiqRt7hi3wpjQYXr0jILH/9fpVAsPXO52gDdiygoj XU1FQg4E5BKPtPnTAq/Dc8lcuuoxfm/Clmdc9UfdlN/fQWYK5425VvGLTNOWikBncE lv/Fb68FNvLc+jLaCzCQDtf0iralNN5aB2iFp2Go= From: "pedro at palves dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/30541] Add target valgrind Date: Tue, 11 Jul 2023 19:44:11 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedro at palves dot net 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: 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=3D30541 --- Comment #20 from Pedro Alves --- > If it implemented vFile you could use "target remote | ssh mumble valgrin= d" Yeah. > The main thing is we have to document the procedure somehow. If we rely on vFile without any obfuscation, it becomes all GDB implementat= ion detail, because it's just: GDB does target_fileio_open("target:/etc/machine-id") + target_fileio_read,= and compares contents with its own /etc/machine-id. Very similar to the /tmp/ idea. The /tmp idea would work on Windows too, I think. Maybe we could also try target_fileio_stat("target:/path/to/valgrind") and compare to=20 stat("/path/to/valgrind") Maybe we could even do both, try /etc/machine-id, and fallback to /tmp. And then to stat. And whatever other file-based fingerprinting method we come = up with to try to rule out partially-shared filesystems. If we need obfuscation, then we could I guess add a new TARGET_OBJECT_MACHINE_ID, and qXfer:read:machine-id packet to go along with= it, and document what that means for the different OSs. --=20 You are receiving this mail because: You are on the CC list for the bug.=