Re: Re: Re:Re: [uClinux-dev] Debugging Linux with xcopilot

From: David McCullough (davidm@lineo.com)
Date: Wed Jan 31 2001 - 23:14:55 EST


Jivin Liu Zheng yu lays it down ...
> Mr Tang:
>   Maybe I didn't express myself correctly, I can find the source 
> code of kernel through "symbol-file linux/linux" and "directory linux/kernel" etc in gdb. but when break in application for example "login.c",How can i load the symbol of login. The symbol position contained in login.coff is not correct.I try "add_symbol_file login.coff XXXXXXXX",but I don't know how can
> I get XXXXXXXX quickly.

I always load symbols as:

	add-symbol-file program current_set[0]->mm->start_code

I am not sure if the '.coff' files will load properly into gdb. We
did a fair bit of manipulation in the coldfire tree to get all this working
nicely.  We actually create an XXX.gdb which is statically linked at
address 0 to achieve full working GDB support.

You will probably get text symbols to work with the above,

Cheers,
Davidm

-- 
David McCullough:  Ph: +61 7 3435 2815  Lineo (The Embedded Solutions Company)
davidm@lineo.com   Fx: +61 7 3891 3630  PO Box 925, Kenmore QLD 4069, Australia
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:28 EDT