From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7254 invoked by alias); 27 Oct 2010 07:50:24 -0000 Received: (qmail 7235 invoked by uid 22791); 27 Oct 2010 07:50:23 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Oct 2010 07:50:18 +0000 Received: from [10.16.192.224] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Wed, 27 Oct 2010 00:50:06 -0700 X-Server-Uuid: 02CED230-5797-4B57-9875-D5D2FEE4708A Received: from SJEXCHCCR02.corp.ad.broadcom.com ([10.16.192.130]) by SJEXCHHUB01.corp.ad.broadcom.com ([10.16.192.224]) with mapi; Wed, 27 Oct 2010 00:50:05 -0700 From: "Andrew Burgess" To: "Eran Ifrah" , "gdb@sourceware.org" Date: Wed, 27 Oct 2010 07:50:00 -0000 Subject: RE: GDB/MI - var-update/create BUG Message-ID: <89AE14E37D740B4796DC14566DF6325ECB7F3CD215@SJEXCHCCR02.corp.ad.broadcom.com> References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-10/txt/msg00104.txt.bz2 > On 26 October 2010 23:02, Behalf Of Eran Ifrah wrote: >=20 > Here is the debug session for the above code: >=20 > ( starting from first line of main() ) > (gdb) > -var-create - * mystr._M_dataplus._M_p > ^done,name=3D"var1",numchild=3D"1",value=3D"0x28ff28 \"h\\377(\"",type=3D= "char > *",thread-id=3D"1",has_more=3D"0" Using "*" ties the creation of the variable to the current frame. Changing = to use "@" will create a floating variable that will use the current _activ= e_ frame. This seems to produce the result you are looking for. Thanks, Andrew