From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10297 invoked by alias); 25 Apr 2008 03:24:06 -0000 Received: (qmail 10288 invoked by uid 22791); 25 Apr 2008 03:24:05 -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; Fri, 25 Apr 2008 03:23:45 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 67E7B983DB; Fri, 25 Apr 2008 03:23:43 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 1074A9835A; Fri, 25 Apr 2008 03:23:42 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JpEXF-0003zD-UC; Thu, 24 Apr 2008 23:23:41 -0400 Date: Fri, 25 Apr 2008 16:15:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFC/ia64-linux] pb with shared libraries when attaching to process Message-ID: <20080425032341.GA15147@caradoc.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sourceware.org References: <20080425012331.GP1431@adacore.com> <20080425014746.GA10244@caradoc.them.org> <20080425023623.GB16580@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080425023623.GB16580@adacore.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/msg00571.txt.bz2 On Thu, Apr 24, 2008 at 07:36:23PM -0700, Joel Brobecker wrote: > Looking deeper into this, the problem is that GDB determins that > this symbol is in the .data section. The code that recognizes > function descriptors for ia64 checks first that the associated > section name is ".opd", or else checks the name of the symbol > with is_vtable_name() (see ia64-tdep.c:ia64_convert_from_func_ptr_addr). > > I double checked /lib/ld-linux-ia64.so.2, and unless I'm mistaken, > the debugger is correct. Our address is inside the .data section > of the loader. There is no .opd section in sight. Well, you'll have to ask someone more familiar with IA-64 than I at this point. I'm not sure why that might be. But my guess is that it's legitimate and GDB simply should adapt. You'd need a link map from the build of ld.so to say for sure. -- Daniel Jacobowitz CodeSourcery