From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17480 invoked by alias); 12 Jun 2007 09:00:11 -0000 Received: (qmail 17085 invoked by uid 22791); 12 Jun 2007 09:00:11 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.238) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Jun 2007 09:00:04 +0000 Received: by nz-out-0506.google.com with SMTP id s1so1326224nze for ; Tue, 12 Jun 2007 02:00:03 -0700 (PDT) Received: by 10.114.179.1 with SMTP id b1mr6444175waf.1181638802748; Tue, 12 Jun 2007 02:00:02 -0700 (PDT) Received: by 10.114.182.11 with HTTP; Tue, 12 Jun 2007 02:00:02 -0700 (PDT) Message-ID: <266164370706120200v25e88408n7af9ee25a6b7cf24@mail.gmail.com> Date: Tue, 12 Jun 2007 09:00:00 -0000 From: "Weihua JIANG" To: gdb@sourceware.org Subject: How to use shell environment variable in GDB? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00086.txt.bz2 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