This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: two gdb porting questions
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jan Hoogerbrugge <hoogerbrugge at hotmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 25 Jan 2003 17:10:28 -0500
- Subject: Re: two gdb porting questions
- References: <F21iKBsuZ2K4xDh9vXs00026868@hotmail.com>
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