This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: GDB Initial breakpoint support for EB40a
- From: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Cc: Mark Salter <msalter at redhat dot com>,robin_singh at gmx dot net,ecos-discuss at sources dot redhat dot com
- Date: Thu, 1 Apr 2004 16:37:27 +0200
- Subject: Re: [ECOS] GDB Initial breakpoint support for EB40a
- Organization: Basler AG
- References: <200404011654.29042.robin_singh@gmx.net> <20040401135428.A28667907B@deneb.localdomain>
Mark Salter wrote:
> >>>>> Robin Singh writes:
> > I notice that the PC and i386 targets that do have the
> > CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK feature seem to simply call the
> > breakpoint() function before cyg_start. Can the same be done for the
> > eb40a ?
>
> That would probably work, but then what? The stub supports singlestepping
> and breakpoints by replacing normal program instructions with breakpoint
> instructions. This won't work if the code is in flash.
>
> --Mark
... although GDB has a notion of hardware breakpoints and the AT91
has suitable hardware to support them. Thus it should be possible to
extend the debug stubs to also support hardware breakpoints. This
would be a useful feature. Debug builds for my target platform
are too big to load into RAM, so I have to debug in ROM. I am using
a JTAG debugger for that. It understands the GDB remote protocol,
but does not know about ecos threads and so I do get any information
about those, nor can I switch to a particular thread context during
debugging.
tk
--
--------------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-390
Fax +49 (4102) 463-46390
mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com
==============================
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss