This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

env variables in command files


Is there a way to use env variables from gdb command files?

I can do a 'show env' but I can't figure out how to use the result.
It's not in the history.  Ideas?

(gdb) show env SHELL
SHELL = /bin/bash
(gdb) p $0
The history is empty.
(gdb) 

-kev-

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]