This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to use shell environment variable in GDB?
- From: "Weihua JIANG" <weihua dot jiang at gmail dot com>
- To: gdb at sourceware dot org
- Date: Tue, 12 Jun 2007 17:00:02 +0800
- Subject: How to use shell environment variable in GDB?
E.g. I have a shell environment variable CSR which points to a deep
directory. Now I hope to load the executable file using below command:
file $CSR/bin/aaa
But, since GDB can't recognize this environment variable, it can't
load the executable file.
How can I use BASH environment variable in GDB?
Thanks
Weihua