This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Calling exit in a Redboot standalone Arm program
- From: Pierre Habraken <Pierre dot Habraken at imag dot fr>
- To: Mark Salter <msalter at redhat dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 22 Apr 2003 17:48:58 +0200
- Subject: Re: [ECOS] Calling exit in a Redboot standalone Arm program
- Organization: Université Joseph Fourier
- References: <3EA53C1E.231D1898@imag.fr> <20030422132718.70DE07885A@deneb.localdomain>
Mark Salter wrote:
> [...]
> Something to watch out for is that any patch not break the ability to
> quit GDB and return to the RedBoot prompt.
Aaaarg... the RedBoot prompt is lost ! : it replies to any key stroke by
sending a SIGTRAP message: $T050f:242d8201;0d:448f0000;#5a.
I must admit that my understanding of the RedBoot main loop operation is
very light and indeed I was surprised that such a simplistic change
could achieve what I was trying to do !
I was fooled by the fact that gdb could re-connect to RedBoot and load
again the test program right after having quit ; it could even re-load
the program right after having displayed the message 'Program exited
normally.'. So, I did not think of checking that point...
BTW, I do not understand how gdb can make RedBoot willing to talk with
where it refuses to do it with myself using a comm. program...
Pierre
PS: I'd like to be able to step by step in RedBoot in order to
understand better how it operates, but up to now I failed to run it as a
RAM image: I built it using cdl options CYGSEM_HAL_ROM_MONITOR
(inferred_value 1) and CYG_HAL_STARTUP (user_value ROM) and load it at
address 0x10000, but it does not want to start (using E7T BSL command
'go'). Any idea someone ?...
--
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre dot Habraken at imag dot fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss