This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: printf not working in ARM simulator
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Portos <contact at portos dot org>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Sat, 10 Jan 2009 14:42:54 +0100
- Subject: Re: [ECOS] printf not working in ARM simulator
- References: <21193516.post@talk.nabble.com> <21388042.post@talk.nabble.com>
On Sat, Jan 10, 2009 at 05:17:00AM -0800, Portos wrote:
>
> Actually, we may have found a temporary solution, a hack...
>
> A watchpoint can call commands and resume the program.
> So we can have printf send characters to some buffer (possibly hack the code
> a bit for that), and when some location is changed, a watchpoint catches
> that, gdb prints the content of the buffer, and then resumes execution. If
> we can make watchpoint silent such that only the buffered characters are
> printed, it would be ideal.
>
> If someone knows of a clean solution along these lines, please let us know.
> We'll try to implement something, otherwise.
Take a look at the TX39 Architecture simulator. It includes a
simulated serial port, interrupt controller, timers etc. A proper
solution to your problem is to write similar simulations of your
hardware devices.
Probably better options is to use the eCos Synth target on linux, or a
Virtual x86 machine, eg Bochs, which will also have virtual serial
ports etc, or maybe SkyEye.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss