From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30422 invoked by alias); 15 Dec 2007 04:12:09 -0000 Received: (qmail 30413 invoked by uid 22791); 15 Dec 2007 04:12:08 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 15 Dec 2007 04:12:03 +0000 Received: by fg-out-1718.google.com with SMTP id e12so29648fga.0 for ; Fri, 14 Dec 2007 20:12:01 -0800 (PST) Received: by 10.86.33.10 with SMTP id g10mr3792735fgg.8.1197691921213; Fri, 14 Dec 2007 20:12:01 -0800 (PST) Received: by 10.86.33.11 with HTTP; Fri, 14 Dec 2007 20:12:01 -0800 (PST) Message-ID: Date: Sat, 15 Dec 2007 04:12:00 -0000 From: "Brandon Kim" To: gdb@sourceware.org Subject: How can I use shell variable at gdb MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-12/txt/msg00098.txt.bz2 I would like to use shell variable at gdb. How can I do that? for example. $) CURRENT_NO=5 $) export ABC gdb) set $NAME = "TEST_$(CURRENT_NO)" But, I got an error. anybody knows?