[ECOS] gdb stubs in ecos.

Nick Garnett nickg@ecoscentric.com
Fri Oct 17 09:32:00 GMT 2003

Ottawa Guy <ottawaguy81@yahoo.com> writes:

> Hello everyone, 
> I have an interesting problem. I am running a
> simulator. This simulator has interface similar to
> redBoot. That means I could request the simulator to
> load an ELF object file and start executing code at
> some memory address. 
> Now I want to run gdb-stubs on that simulator and then
> use the host gdb program to connect to the simulator.
> Can someone suggest me what to do.

This all depends on the level of hardware emulation that the simulator
supports. Does the simulator have full emulation of things like the
interrupt controller, UARTs, etc?

One approach we used in the past was for the simulator to connect its
UART device emulation to a TCP socket. We could then connect GDB to
that socket and treat it like a serial line. However, it was all very
slow because all debug interations were handled by simuated target

Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts

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

More information about the Ecos-discuss mailing list