From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4836 invoked by alias); 25 Jan 2003 22:10:08 -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 4829 invoked from network); 25 Jan 2003 22:10:08 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 25 Jan 2003 22:10:08 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18caO0-0004Z3-00; Sat, 25 Jan 2003 18:10:56 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18cYVR-0004Qt-00; Sat, 25 Jan 2003 17:10:29 -0500 Date: Sat, 25 Jan 2003 22:10:00 -0000 From: Daniel Jacobowitz To: Jan Hoogerbrugge Cc: gdb@sources.redhat.com Subject: Re: two gdb porting questions Message-ID: <20030125221028.GA16996@nevyn.them.org> Mail-Followup-To: Jan Hoogerbrugge , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00415.txt.bz2 On Fri, Jan 24, 2003 at 03:18:13PM +0100, Jan Hoogerbrugge wrote: > Dear all, > > I am porting gdb to a new target and I can use some help. I am having > the following questions: > > * How to find out whether there is a symbol at a memory address in > opcodes/xxx-dis.c? Info->symbol_at_address_func does not work. It > returns always 1. > > * I want to use stabs to pass frame information from my compiler to > gdb. Which stab number(s) should I use for this? How do I get this > information in my xxx-tdep.c given the start address of the > function? (I use ELF in the case that matters) Is it absolutely necessary that you use stabs? There are clean ways to express this information in DWARF-2, and if you're using ELF, there's really no excuse. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer