This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trying to Debug Ecos using GDB


In gmane.os.ecos.general, you wrote:

> I'm trying to create a test case where I will use a BDI2000 JTAG
> emulator to debug the ecos kernel, for that I need an image that has all
> the symbols built in.

You just have to change the compile flags somewhere.

> I will then strip the executable to create an image that does
> not have any debug symbols to load onto the target,

You don't need to do that.  The debug symbols don't take up
target memory.

> that way I can debug the kernel thru a JTAG probe. The larger
> image with debug symbols is used only on the host GDB and the
> stipped executable sits on the target.

If you're running from RAM, all you have to do is connect via
the JTAG port and load the program using GDB.  GDB will "strip"
the image as it's being loaded into target memory.

> Is this possible? Is there any way to tell the linker to leave
> the debug symbols in place?

IIRC, the trick was to get them there in the first place, but
I may be remembering incorrectly.

-- 
Grant Edwards                   grante             Yow!  .. If I cover this
                                  at               entire WALL with MAZOLA,
                               visi.com            wdo I have to give my AGENT
                                                   ten per cent??

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]