two gdb porting questions

Daniel Jacobowitz drow@mvista.com
Sat Jan 25 22:10:00 GMT 2003


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



More information about the Gdb mailing list