public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Getting access to environement variables
@ 2021-02-05  9:58 vincent Dupaquis
  2021-02-05 14:06 ` Paul Koning
  0 siblings, 1 reply; 5+ messages in thread
From: vincent Dupaquis @ 2021-02-05  9:58 UTC (permalink / raw)
  To: gdb

    Hello,

    I would like to point-out a possibly missing feature, which is the
possibility of accessing ENV variables in GDB commands.

    Currently, if I want my command scripts to work on a remote target
or another, the only way I've found to parametrize the target/port is to
generate a command file in the calling script, and to include it into
the executed script.

    Something like :

#!/bin/bash
GDBPORT=(GDBPORT:=1234)
echo "target remote localhost:${GDBPORT}" > connect.cmd

    And then in the gdb script
include connect.cmd
...

    Is there a better way, or is it the way it is intended top be done ?

    Else, I wanted to thank/copngratulate everyone who contributed to
GDB for their fantastic work building probably the most powerfull
debugger ever (not the most user friendly, still :) ).

    Best regards,
        Vincent.

-- 

*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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-05 14:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05  9:58 Getting access to environement variables vincent Dupaquis
2021-02-05 14:06 ` Paul Koning
2021-02-05 14:28   ` vincent Dupaquis
2021-02-05 14:34     ` Jan Vrany
2021-02-05 14:51       ` vincent Dupaquis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).