From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7070 invoked by alias); 12 Sep 2012 13:37:43 -0000 Received: (qmail 6987 invoked by uid 22791); 12 Sep 2012 13:37:42 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_BF,TW_XB X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Sep 2012 13:37:27 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TBn89-0003VO-V9 from Yao_Qi@mentor.com ; Wed, 12 Sep 2012 06:37:25 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 12 Sep 2012 06:37:26 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Wed, 12 Sep 2012 06:37:24 -0700 Message-ID: <50508FEC.5030701@codesourcery.com> Date: Wed, 12 Sep 2012 13:37:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Jan Kratochvil CC: Subject: Re: Symbol can't be found unless type 'tab' References: <504DE251.1020702@codesourcery.com> <20120910131828.GA13062@host2.jankratochvil.net> <50503D6C.6070704@codesourcery.com> <20120912080639.GA16010@host2.jankratochvil.net> <5050730E.3000207@codesourcery.com> <20120912123247.GA23476@host2.jankratochvil.net> In-Reply-To: <20120912123247.GA23476@host2.jankratochvil.net> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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: 2012-09/txt/msg00029.txt.bz2 On 09/12/2012 08:32 PM, Jan Kratochvil wrote: > On Wed, 12 Sep 2012 13:33:34 +0200, Yao Qi wrote: >> On 09/12/2012 04:06 PM, Jan Kratochvil wrote: >>> Why didn't use just normal DWARF block, instead of the location list? >>> This part does not matter for your testcase and it will work with GDB. >> >> No special reason really. Are you suggesting create dwarf like this? >> >> <1><33>: Abbrev Number: 3 (DW_TAG_variable) >> <34> DW_AT_name : i >> <36> DW_AT_type : <0x2a> >> <3a> DW_AT_external : 1 >> <3b> DW_AT_location : 6 byte block: 52 93 4 53 93 4 >> (DW_OP_reg2 (edx); DW_OP_piece: 4; DW_OP_reg3 (ebx); DW_OP_piece: 4) > > Oops, you are right, this also cannot work. > I am not sure what do you mean by "this also cannot work", but it works for me, at least for my test purpose. (gdb) b middle_middle Breakpoint 1 at 0x80483ca (gdb) run Starting program: /home/yao/Source/gnu/gdb/build-git/x86/gdb/testsuite/gdb.mi/mi-reg-changed Breakpoint 1, 0x080483ca in middle_middle () (gdb) p/x i $2 = 0x45396ff4bfffefe4 (gdb) p/x $ebx $3 = 0x45396ff4 (gdb) p/x $edx $4 = 0xbfffefe4 -- Yao