From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30299 invoked by alias); 10 Nov 2005 10:33:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 30288 invoked by uid 22791); 10 Nov 2005 10:33:35 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 10 Nov 2005 10:33:35 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ea9iF-0006kC-O5 for gdb@sources.redhat.com; Thu, 10 Nov 2005 11:31:23 +0100 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2005 11:31:23 +0100 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2005 11:31:23 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: convenience variables in "target remote" Date: Thu, 10 Nov 2005 10:33:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-SW-Source: 2005-11/txt/msg00215.txt.bz2 Hi, it looks like "target remote" command does not handle convenience variables properly: (gdb) set $var=1234 (gdb) target remote :$var :$var: Connection refused. (gdb) target remote :1234 Remote debugging using :1234 When $var is used, it's not expanded, at gdb tries to connect to the wrong port? Is this by design, or a bug? - Volodya