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: Mark Salter <msalter at redhat dot com>
- To: robin_singh at gmx dot net
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 1 Apr 2004 08:54:28 -0500 (EST)
- Subject: Re: [ECOS] GDB Initial breakpoint support for EB40a
- References: <200404011654.29042.robin_singh@gmx.net>
>>>>> Robin Singh writes:
> Greetings.
> I have successfully built and executed redboot and using it, other
> applications on the eb40a.
> I now wish to execute stand-alone applications which are of ROM startup type
> and will thus execute from FLASH but will do the necessary housekeeping at
> startup (data section relocation to RAM etc).
> I need the application to stop at init time and wait for gdb running on an
> external host to connect to it and control further execution.
> My current configuration includes a GDB stub however I do not see support for
> CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK for this target.
> Is there a solution to this problem ?
> 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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss