From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24316 invoked by alias); 29 Jul 2003 12:48:44 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24273 invoked from network); 29 Jul 2003 12:48:42 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 29 Jul 2003 12:48:42 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19hTuE-0001wI-39; Tue, 29 Jul 2003 08:48:42 -0400 Date: Tue, 29 Jul 2003 12:48:00 -0000 From: Daniel Jacobowitz To: binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Re: fake symbols to aid debugging Message-ID: <20030729124841.GA7393@nevyn.them.org> Mail-Followup-To: binutils@sources.redhat.com, gdb@sources.redhat.com References: <20030729023258.GH27145@bubble.sa.bigpond.net.au> <20030729031107.GA987@nevyn.them.org> <20030729033451.GJ27145@bubble.sa.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030729033451.GJ27145@bubble.sa.bigpond.net.au> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00329.txt.bz2 On Tue, Jul 29, 2003 at 01:04:51PM +0930, Alan Modra wrote: > On Mon, Jul 28, 2003 at 11:11:07PM -0400, Daniel Jacobowitz wrote: > > Would it be feasible for the linker to > > generate a DWARF compilation unit for these stubs, and fill it with > > DW_AT_trampoline markers? > > Yes, I could do that. Doesn't solve my disassembly problem though, > does it? Even if gdb is clever enough to rummage through dwarf info > for calls via stubs, I'd like to have objdump -d print useful symbols. Well, yes and no. Right now GDB only uses the minimal (ELF) symbol table when printing symbols in disassembly. We'd need to make it use the debug info. I think that's reasonable. Making objdump do the same thing would probably not be hard. It wouldn't need a full reader, just one which scanned top-level entities looking for subprograms and could parse DW_AT_ranges or DW_AT_high/low_pc -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer