This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: gdb stubs in ecos.
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Ottawa Guy <ottawaguy81 at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 17 Oct 2003 10:26:58 +0100
- Subject: Re: [ECOS] gdb stubs in ecos.
- References: <20031016205203.79811.qmail@web13005.mail.yahoo.com>
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
code.
--
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