From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22759 invoked by alias); 11 Jan 2012 06:57:16 -0000 Received: (qmail 22751 invoked by uid 22791); 11 Jan 2012 06:57:15 -0000 X-SWARE-Spam-Status: No, hits=3.4 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nm36.bullet.mail.ne1.yahoo.com (HELO nm36.bullet.mail.ne1.yahoo.com) (98.138.229.29) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 11 Jan 2012 06:57:02 +0000 Received: from [98.138.90.57] by nm36.bullet.mail.ne1.yahoo.com with NNFMP; 11 Jan 2012 06:57:01 -0000 Received: from [98.138.88.239] by tm10.bullet.mail.ne1.yahoo.com with NNFMP; 11 Jan 2012 06:57:01 -0000 Received: from [127.0.0.1] by omp1039.mail.ne1.yahoo.com with NNFMP; 11 Jan 2012 06:57:01 -0000 Received: (qmail 51778 invoked by uid 60001); 11 Jan 2012 06:57:01 -0000 Received: from [67.161.26.232] by web120402.mail.ne1.yahoo.com via HTTP; Tue, 10 Jan 2012 22:57:01 PST Message-ID: <1326265021.51242.YahooMailClassic@web120402.mail.ne1.yahoo.com> Date: Wed, 11 Jan 2012 06:57:00 -0000 From: First Last Subject: String argument within a gdb command file To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2012-01/txt/msg00037.txt.bz2 Hi, =A0 I am trying to use add-symbol-file with arguments within a gdb command file. add-symbol-file $filename $load_addr I found that the $filename is not evaluated =A0 (gdb) add-symbol-file $filename $load_addr add symbol table from file "$filename" at =A0=A0=A0=A0=A0=A0=A0 .text_addr =3D 0x800000 (y or n)=20 but print $filename works. (gdb) print $filename $1 =3D 0xabcd5678 "correct-obj-file.o" (gdb) print $load_addr $2 =3D (void*) 0x800000 I tried shell awk '{printf "add-symbol-file $arg0 $arg1\n"}' =A0 but, it did not help. =A0 Any suggestions? =A0 Thanks, NK =A0