From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25029 invoked by alias); 17 Jul 2003 08:37:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25000 invoked from network); 17 Jul 2003 08:37:05 -0000 Received: from unknown (HELO ashgw1.ashling.com) (62.77.186.162) by sources.redhat.com with SMTP; 17 Jul 2003 08:37:05 -0000 Received: from HUGH [192.168.10.20] by ashling.com [127.0.0.1] with SMTP (MDaemon.v3.5.1g.R); Thu, 17 Jul 2003 09:36:52 +0100 From: "Hugh O'Keeffe" To: , Subject: GCC/GDB ARM support for file I/O Date: Thu, 17 Jul 2003 08:37:00 -0000 Message-ID: <003201c34c3e$7de68ad0$140aa8c0@HUGH> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-MDRemoteIP: 192.168.10.20 X-Return-Path: hugh.okeeffe@ashling.com X-SW-Source: 2003-07/txt/msg00197.txt.bz2 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