From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 700 invoked by alias); 29 Apr 2008 00:40:15 -0000 Received: (qmail 690 invoked by uid 22791); 29 Apr 2008 00:40:14 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Apr 2008 00:39:55 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5135498278; Tue, 29 Apr 2008 00:39:53 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 20F8098149; Tue, 29 Apr 2008 00:39:53 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jqdst-0007zG-Ui; Mon, 28 Apr 2008 20:39:51 -0400 Date: Tue, 29 Apr 2008 03:05:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: gdb-patches@sourceware.org, bauerman@br.ibm.com, amodra@bigpond.net.au Subject: Re: Shared library call problems on PowerPC with current binutils/gdb Message-ID: <20080429003951.GA30324@caradoc.them.org> Mail-Followup-To: Ulrich Weigand , gdb-patches@sourceware.org, bauerman@br.ibm.com, amodra@bigpond.net.au References: <200804282253.m3SMrwQF005602@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804282253.m3SMrwQF005602@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.17 (2007-12-11) 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-04/txt/msg00644.txt.bz2 On Tue, Apr 29, 2008 at 12:53:58AM +0200, Ulrich Weigand wrote: > - Extend elf_symtab_read to treat a synthetic symbol XXX@plt as a > mst_solib_trampoline symbol for XXX. Sounds reasonable. I suggested this to Aleksandar for another problem, even :-) Though it was kind of nice to have it show up in disassembly with @plt; will it still do that? It's nice to know immediately when I'm looking at the PLT stub instead of the definition. > - Change elf_symtab_read to register symbols with version name > simply under their base name. > > - Include something along the lines of Markus' "multiply-defined > symbol" patch so that "break printf" will break on *both* definitions > (created by the two symbols with different version names) after libc > has been loaded. > > - Teach minsym_found about function descriptors. These sound like a good idea to me. > - Add extra unwinders to ppc-linux-tdep that recognize the various > PLT call and glink stubs, and properly treat them as frameless. > (This will probably require code reading ...) > > - Extend ppc_skip_trampoline_code to likewise handle those stubs. These too, but it would be nice if we could avoid code reading all the time. Maybe only do it for symbols without a name or where the defining symbol has size zero? -- Daniel Jacobowitz CodeSourcery