Re: [uClinux-dev] Debugging Linux with xcopilot

From: Joe deBlaquiere (jadb@redhat.com)
Date: Thu Feb 01 2001 - 00:02:03 EST


David McCullough wrote:

> 
> 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.
> 

We had to do the same thing with the ARM binaries, but it worked out just fine. we just designed the makefiles to automagically generate a xxx.elfdebug in the same step as when we generate a flat. I've found the easiest thing to do if you're trying to attach the debugger to the process is to set a breakpoint at the end of load_flat_binary where the program is already in RAM and you can set a breakpoint anywhere by address ( even the first instruction, which really helps if you're messing with crt code ).

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


-- 
Joe

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