Re: Getting access to environement variables

vincent Dupaquis <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Good point !

That's something I already use when instrumenting gdb, but for some easy
and quick scripting, it would have been easier to be able to access the
environement variables directly from the gdb commands.

Vincent.

Le 05/02/2021 à 15:06, Paul Koning a écrit :
>
>> 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
>
-- 

*Vincent Dupaquis*
Software security & Cryptography expert
06 24 58 17 05
/Europarc de Pichaury Bâtiment B8 1330 rue Guillibert Gautier de la
Lauzière 13290 Aix-en-Provence/

www.trusted-objects.com <http://www.trusted-objects.com>
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.