Re: Getting access to environement variables

Paul Koning via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>

> On Feb 5, 2021, at 4:58 AM, vincent Dupaquis <[email protected]> wrote:
> 
>     Hello,
> 
>     I would like to point-out a possibly missing feature, which is the
> possibility of accessing ENV variables in GDB commands.

Assuming your GDB is built with Python scripting included, you can do it via Python; "import os" then access environment variables as elements of dictionary "os.environ".

	paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.