This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB Initial breakpoint support for EB40a


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]