Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GCC/GDB ARM support for file I/O
@ 2003-07-17  8:37 Hugh O'Keeffe
  0 siblings, 0 replies; only message in thread
From: Hugh O'Keeffe @ 2003-07-17  8:37 UTC (permalink / raw)
  To: gdb, crossgcc-help

Does the GCC ARM compiler support file I/O to the host computer from the
target via a GDB/debugger link (aka semihosting) ?. I want to be able to
fopen/fwrite/fread/fclose from my target application to/from a file on
the host PC for test purposes. 

I know this is possible with the ARM ADS compiler tools, however, I now
have to port some code to GCC and need a similar feature.

I have managed to get fprintf(stdout...) and fprintf(stderr...) to work
i.e. when using an RDI connection between the target and GDB (RDI is
based on the Angel Debug Protocol).

I'm using GCC 3.2.1 on a Windows host with GDB. Any help is appreciated.
I suspect I may be missing some initialisation or something from my
startup code.

Thanks in advance,

Hugh O'Keeffe



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-17  8:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-17  8:37 GCC/GDB ARM support for file I/O Hugh O'Keeffe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox