]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
nclude/gdb:
authorJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 15 Oct 2003 12:28:50 +0000 (12:28 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 15 Oct 2003 12:28:50 +0000 (12:28 +0000)
        * callback.h (struct host_callback_struct): New members ftruncate
        and truncate.
gdb:
sim/common:
        * callback.c (os_ftruncate, os_truncate): New functions.
        (default_callback): Initialize ftruncate and truncate members.
sim/sh:
        * syscall.h (SYS_truncate, SYS_ftruncate): Define.
        * interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.

include/gdb/ChangeLog
include/gdb/callback.h

index 79c817871ec1fcc26793a165aff0d99a41bb0aec..4ca3ec3160b412e491d282561a9cf45370308953 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-15  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * callback.h (struct host_callback_struct): New members ftruncate
+       and truncate.
+
 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
 
        * gdb/fileio.h: New file.
index 30752842ed90aefd2d33a30701b6aba0a94e53ae..3fa419143aed3ff971bb27151be2853d5b0cae1e 100644 (file)
@@ -93,6 +93,8 @@ struct host_callback_struct
   void (*flush_stderr) PARAMS ((host_callback *));
   int (*stat) PARAMS ((host_callback *, const char *, struct stat *));
   int (*fstat) PARAMS ((host_callback *, int, struct stat *));
+  int (*ftruncate) PARAMS ((host_callback *, int, long));
+  int (*truncate) PARAMS ((host_callback *, const char *, long));
 
   /* When present, call to the client to give it the oportunity to
      poll any io devices for a request to quit (indicated by a nonzero