From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22030 invoked by alias); 2 Sep 2008 09:33:47 -0000 Received: (qmail 22022 invoked by uid 22791); 2 Sep 2008 09:33:46 -0000 X-Spam-Check-By: sourceware.org Received: from ns2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Sep 2008 09:33:04 +0000 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 30C5E45EC7; Tue, 2 Sep 2008 11:33:02 +0200 (CEST) From: Andreas Schwab To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Remove addr, endaddr, offset from obj_section References: <200805161721.15817.pedro@codesourcery.com> <20080605191602.GC25085@caradoc.them.org> <200808201223.17427.pedro@codesourcery.com> <200808211428.30553.pedro@codesourcery.com> X-Yow: ...PENGUINS are floating by... Date: Tue, 02 Sep 2008 09:33:00 -0000 In-Reply-To: <200808211428.30553.pedro@codesourcery.com> (Pedro Alves's message of "Thu, 21 Aug 2008 14:28:30 +0100") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00011.txt.bz2 2008-09-02 Andreas Schwab * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr. Index: gdb/ia64-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/ia64-tdep.c,v retrieving revision 1.181 diff -u -a -p -u -p -a -r1.181 gdb/ia64-tdep.c --- gdb/ia64-tdep.c 21 Aug 2008 13:19:18 -0000 1.181 +++ gdb/ia64-tdep.c 2 Sep 2008 09:31:50 -0000 @@ -2563,7 +2563,7 @@ ia64_get_dyn_info_list (unw_addr_space_t void *buf = NULL; text_sec = objfile->sections + SECT_OFF_TEXT (objfile); - ip = text_sec->addr; + ip = obj_section_addr (text_sec); ret = ia64_find_unwind_table (objfile, ip, &di, &buf); if (ret >= 0) { Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."