Getting access to environement variables

vincent Dupaquis v.dupaquis@trusted-objects.com
Fri Feb 5 14:28:49 GMT 2021


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 <v.dupaquis@trusted-objects.com> 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>


More information about the Gdb mailing list