From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4599 invoked by alias); 4 Feb 2007 15:55:40 -0000 Received: (qmail 4590 invoked by uid 22791); 4 Feb 2007 15:55:39 -0000 X-Spam-Check-By: sourceware.org Received: from mail.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 04 Feb 2007 15:55:30 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 984B11232B; Sun, 4 Feb 2007 16:55:27 +0100 (CET) From: Andreas Schwab To: =?utf-8?B?6Jab5LqR6b6Z?= Cc: gdb Subject: Re: How to use variable in gdb? References: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com> X-Yow: Now, let's SEND OUT for QUICHE!! Date: Sun, 04 Feb 2007 15:55:00 -0000 In-Reply-To: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com> (=?utf-8?B?6Jab5LqRCem+mSdz?= message of "Sun, 4 Feb 2007 18:06:01 +0800") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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/msg00027.txt.bz2 "=E8=96=9B=E4=BA=91=E9=BE=99" writes: > Hello, I have problem with gdb program, can I define a variable like > shell script? > For example: > > xxx=3D/home/src/ > yyy=3D/home/exe/ > > file f > set args $xxx $yyy (So I can use variable here!) You can use environment variables which can be set from within gdb. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."