From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5593 invoked by alias); 4 Feb 2007 14:28:13 -0000 Received: (qmail 5582 invoked by uid 22791); 4 Feb 2007 14:28:12 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.169) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 04 Feb 2007 14:28:08 +0000 Received: by ug-out-1314.google.com with SMTP id 75so1118194ugb for ; Sun, 04 Feb 2007 06:28:05 -0800 (PST) Received: by 10.78.204.7 with SMTP id b7mr955686hug.1170599285153; Sun, 04 Feb 2007 06:28:05 -0800 (PST) Received: by 10.78.33.8 with HTTP; Sun, 4 Feb 2007 06:28:05 -0800 (PST) Message-ID: <9875e6b70702040628w3936ef89oe66b9d5fcd2814f1@mail.gmail.com> Date: Sun, 04 Feb 2007 14:28:00 -0000 From: Jack To: gdb Subject: Re: How to use variable in gdb? In-Reply-To: <20070204140544.GA8222@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com> <20070204140544.GA8222@nevyn.them.org> X-Google-Sender-Auth: b36da1dcc14572ff 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/msg00026.txt.bz2 It would be execiting! On 2/4/07, Daniel Jacobowitz wrote: > 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 >