This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Debugging from ROM
- From: Bart Veer <bartv at ecoscentric dot com>
- To: rich at charmedlabs dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 13 Mar 2003 14:21:48 +0000 (GMT)
- Subject: Re: [ECOS] Debugging from ROM
- References: <ALEFICMPOAICDGJBCPJEIEEGCCAA.rich@charmedlabs.com>
>>>>> "Rich" == Rich LeGrand <rich at charmedlabs dot com> writes:
Rich> I'm not sure if debugging from ROM is something that has
Rich> been done very often with eCos and gdb -- perhaps
Rich> targets/processors with hardware breakpoints allow this.
<snip>
Rich> Is this reasonable? It's likely that I've overlooked
Rich> something or somethings. Or maybe this has been done
Rich> before.. REgardless, any comments would be greatly
Rich> appreciated.
It is theoretically possible, but not exactly mainstream. When doing
software development you don't want to change the contents of the ROM
all the time because usually that is much slower than downloading an
executable into RAM via a ROM monitor - unless you have special
hardware such as a PROM ICE or a gameboy advance linker. Also,
although some processors do support facilities like hardware
breakpoints these tend to be rather limited, e.g. a maximum of four. I
don't know how well gdb would cope with such limitations - remember
that some debug operations like single-stepping are also usually
implemented via breakpoints. However, it should be possible to get
something working by modifying the existing stubs code.
If you are thinking of experimenting with this, I would suggest using
a dedicated communication channel for gdb traffic - at least
initially. Later on you can think about sharing the serial line
between gdb and the application.
Bart
--
Bart Veer eCos Configuration 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