From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11858 invoked by alias); 16 Mar 2009 20:58:34 -0000 Received: (qmail 11848 invoked by uid 22791); 16 Mar 2009 20:58:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from ugmailsa.ugent.be (HELO ugmailsa.ugent.be) (157.193.49.116) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Mar 2009 20:58:28 +0000 Received: from localhost (localhost [127.0.0.1]) by ugmailsa.ugent.be (Postfix) with ESMTP id 2EBC930688F for ; Mon, 16 Mar 2009 21:58:25 +0100 (CET) Received: from ugmailsa.ugent.be ([127.0.0.1]) by localhost (ugmailsa.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nt0GzcV5RNDi for ; Mon, 16 Mar 2009 21:58:24 +0100 (CET) Received: from cedar.ugent.be (cedar.ugent.be [157.193.49.14]) by ugmailsa.ugent.be (Postfix) with ESMTP id DE4BF306AFC for ; Mon, 16 Mar 2009 21:58:24 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEADdavkmdwc4w/2dsb2JhbADVIYN/Bg Received: from mail.elis.ugent.be ([157.193.206.48]) by relays9.ugent.be with ESMTP; 16 Mar 2009 21:58:24 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.elis.UGent.be (Postfix) with ESMTP id 9723E2BABB2 for ; Mon, 16 Mar 2009 21:58:16 +0100 (CET) Received: from [127.0.0.1] (ssh2.elis.UGent.be [157.193.206.127]) by mail.elis.UGent.be (Postfix) with ESMTP id 83FEC2BABA5 for ; Mon, 16 Mar 2009 21:58:16 +0100 (CET) Message-Id: <690761F6-5A92-4D90-B734-F6DB6468A71B@elis.ugent.be> From: Jonas Maebe To: gdb@sourceware.org In-Reply-To: <20090316204409.GA4973@host0.dyn.jankratochvil.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Handing DW_OP_addr in computed symbol locations Date: Mon, 16 Mar 2009 20:58:00 -0000 References: <2DF7F3A9-002C-4D52-9FB2-D7DFFBA36024@elis.ugent.be> <20090316204409.GA4973@host0.dyn.jankratochvil.net> 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: 2009-03/txt/msg00095.txt.bz2 On 16 Mar 2009, at 21:44, Jan Kratochvil wrote: > On Fri, 13 Mar 2009 22:54:36 +0100, Jonas Maebe wrote: >> * An aliases for the second field of the above record: >> 0x0000005e: TAG_variable [3] >> AT_name( "B" ) >> AT_location( <0x7> 03 2c 02 00 00 23 02 ( addr >> 0x0000022c, plus uconst 0x0002 ) ) > > This notation is excessive. You can use single DW_OP_addr already > containing > the constant addition. Any relocations only add the offset, RELA > entries use > the (A)rgument explicitly, REL entries implicitly. It was fixed for > GCC in: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37738#c1 Thanks for the tip, this indeed works fine! Jonas