From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A6A23857C51; Thu, 13 Jul 2023 14:14:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A6A23857C51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689257657; bh=fcspMB2X7+5c5JlfjCMAWyHnV1LGKGTb8C1MKaMojz4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CoBgBRZLQG1AEmHb5h5lZTB/l4shVg/h9Yc3EwYL56hU8cRMtQcFdJIgOmoAePfgQ cqZR90BcPcjQpT07GRvXt52vMcsMOUvYBnovabJamQT+m+6HAByo6hwsUPoLc9XEus bZMTwki9dR//RMM1emP/oj1dgkmVXx0hrcBky71Y= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/30541] Add target valgrind Date: Thu, 13 Jul 2023 14:14:16 +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: 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: 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 #28 from Tom Tromey --- I may not really understand the environment issue. Using Q* to set the environment and the working directory seems clearly better to me, and in fact the only way it can work properly. The problem case is something like: (gdb) set env X y (gdb) start (gdb) add-inferior blah blah (gdb) set env X z (gdb) start Here, we've made 2 inferiors and started them with different environments. The native target can simply pass this stuff to the inferior via ordinary setenv stuff. For remotes, though, the inheritance can only be done once, other inferiors are not fork'd by gdb. If Q* aren't working on the gdb side, let's make a new bug and make it block this one. If they aren't working on the valgrind side, I suggest a valgrind bug instead. A bonus of implementing vFile and Q* in valgrind is that then "target remote | ssh machine vgdb" will work, which seems nice. --=20 You are receiving this mail because: You are on the CC list for the bug.=