From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC98C3858429; Thu, 11 Aug 2022 18:20:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC98C3858429 From: "khuey at kylehuey dot com" To: gdb-prs@sourceware.org Subject: [Bug remote/29475] New: No way for remote protocol to report the environment Date: Thu, 11 Aug 2022 18:20:06 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: khuey at kylehuey dot com 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: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2022 18:20:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29475 Bug ID: 29475 Summary: No way for remote protocol to report the environment Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: remote Assignee: unassigned at sourceware dot org Reporter: khuey at kylehuey dot com Target Milestone: --- gdb has `show environment` which shows the environment as seen by gdb. Ther= e's also some remote protocol support for `set environment`/`unset environment`= for launching an inferior, but there's nothing to read the environment of an already existing inferior. I think it would make sense to add `info proc env[iron]` that reads the appropriate /proc//environ file, rely on the vFile remote stuff to make this work, and document the limitations of `show environment`. --=20 You are receiving this mail because: You are on the CC list for the bug.=