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
>>>>> Thomas Koeller writes:
> 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.
hal/arm/xscale/cores/current/src/xscale_stub.c implements hardware
breakpoint/watchpoint support for XScale cores. Something similar
for AT91 would probably not take much effort.
--Mark
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss