Hi All, Based on suggestions from various people and changes to the patch, here is the final patch. Andrew, did you approve the latest one? Attaching the regenerated patch, as there were some offsets. Newlib part of the patch has already been checked in, so this needs to be applied for the simulator to work correctly. OK to apply? http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&databas e=gdb&pr=983 Thanks and Regards, Venky :-) 2003-03-13 D.Venkatasubramanian * compile.c (decode): Added code for some more magic traps. * compile.c (sim_resume): Added support for File I/O system calls through callback to host_system. System calls provided support for : open, read, write, lseek, close, stat, fstat Only basic support for stat and fstat. >-----Original Message----- >From: cagney@redhat.com [mailto:cagney@redhat.com] >Sent: Saturday, March 08, 2003 5:32 AM >To: D.Venkatasubramanian, Noida; gdb-prs@sources.redhat.com; >nobody@sources.redhat.com >Subject: Re: tdep/983: PATCH : H8300 Simulator File I/O Implementation > > >Synopsis: PATCH : H8300 Simulator File I/O Implementation > >State-Changed-From-To: analyzed->feedback >State-Changed-By: cagney >State-Changed-When: Sat Mar 8 00:01:57 2003 >State-Changed-Why: > yes ok, approved. > you're correctly using the callback-> methods so that it >will work both with gdb and standalone sim. > >http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gdb&pr=983