From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23715 invoked by alias); 12 Sep 2012 12:33:33 -0000 Received: (qmail 23683 invoked by uid 22791); 12 Sep 2012 12:33:28 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Sep 2012 12:32:53 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8CCWq0i007708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Sep 2012 08:32:52 -0400 Received: from host2.jankratochvil.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8CCWmIL024492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 12 Sep 2012 08:32:51 -0400 Date: Wed, 12 Sep 2012 12:33:00 -0000 From: Jan Kratochvil To: Yao Qi Cc: gdb@sourceware.org Subject: Re: Symbol can't be found unless type 'tab' Message-ID: <20120912123247.GA23476@host2.jankratochvil.net> References: <504DE251.1020702@codesourcery.com> <20120910131828.GA13062@host2.jankratochvil.net> <50503D6C.6070704@codesourcery.com> <20120912080639.GA16010@host2.jankratochvil.net> <5050730E.3000207@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5050730E.3000207@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00028.txt.bz2 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. You have to put it into a function as a local variable. Sorry, Jan