This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to debug eCos apps using gdb over TCP?
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Kevin Hilman <khilman at equator dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 13 Jun 2003 04:51:24 +0100
- Subject: Re: [ECOS] how to debug eCos apps using gdb over TCP?
- References: <r2brx3ylst.fsf@equator.com>
Kevin Hilman wrote:
Can someone explain how you can debug eCos apps using gdb over TCP?
I'm using serial without any problems but would like to debug on
another board without a serial interface.
From what I can tell in eCos you can only use gdb over a non-blocking
getchar/putchar type interface and I don't see any of the HALs using
sockets for their implementations of HAL_STUB_PLATFORM_[PUT|GET]_CHAR.
Nope, what happens in all modern ports is that virtual vectors are used.
That means the GDB stubs interface with a comms channel rather than
directly to the HAL. For serial that comms channel will point to HAL
functions, for ethernet, it points to special net functions.
I saw some email in the archives that suggested that this can only be
done using RedBoot. I'm working on a port to a new architecture and
since I haven't ported RedBoot yet, could someone explain how this
works?
Yep, you port RedBoot ;-). Seriously, the TCP debug support is only in
RedBoot.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss