From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23371 invoked by alias); 4 Feb 2007 14:05:53 -0000 Received: (qmail 23363 invoked by uid 22791); 4 Feb 2007 14:05:52 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sun, 04 Feb 2007 14:05:48 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HDi00-0002CS-Vv; Sun, 04 Feb 2007 09:05:45 -0500 Date: Sun, 04 Feb 2007 14:05:00 -0000 From: Daniel Jacobowitz To: ?????? Cc: gdb Subject: Re: How to use variable in gdb? Message-ID: <20070204140544.GA8222@nevyn.them.org> Mail-Followup-To: ?????? , gdb References: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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-02/txt/msg00025.txt.bz2 On Sun, Feb 04, 2007 at 06:06:01PM +0800, ?????? wrote: > Hello, I have problem with gdb program, can I define a variable like > shell script? > For example: > > xxx=/home/src/ > yyy=/home/exe/ > > file f > set args $xxx $yyy (So I can use variable here!) "set args" doesn't allow any variables - sorry. We've been talking about adding a full scripting language to GDB, which will make this easier. -- Daniel Jacobowitz CodeSourcery