From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23043 invoked by alias); 15 Oct 2007 13:50:21 -0000 Received: (qmail 23012 invoked by uid 22791); 15 Oct 2007 13:50:20 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.29.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 15 Oct 2007 13:50:13 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id l9FDo9JU1679140 for ; Mon, 15 Oct 2007 13:50:09 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9FDo9JM2298066 for ; Mon, 15 Oct 2007 15:50:09 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9FDo9vd012618 for ; Mon, 15 Oct 2007 15:50:09 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l9FDo9uL012613; Mon, 15 Oct 2007 15:50:09 +0200 Message-Id: <200710151350.l9FDo9uL012613@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 15 Oct 2007 15:50:09 +0200 Subject: Re: [rfc/rft] [3/3] Remove stabs target macros: SOFUN_ADDRESS_MAYBE_MISSING To: eliz@gnu.org Date: Mon, 15 Oct 2007 14:10:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: from "Eli Zaretskii" at Oct 14, 2007 11:16:08 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2007-10/txt/msg00385.txt.bz2 Eli Zaretskii wrote: > > +@code{N_FUN} stabs have an address of zero. Instead, you should find the > > +addresses where the function starts by taking the function name from the > > +stab, and then looking that up in the minsyms (the linker/assembler symbol > > +table). In other words, the stab has the name, and the linker/assembler > > +symbol table is the only place that carries the address. > > I'm confused by the "Instead" thing: instead of what? instead of using > the (otherwise non-zero) address of N_FUN? Yes, exactly. Do you feel this needs to be clarified? "Instead of using this address, you should find ..." ? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com