diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2003-10-15 12:28:50 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2003-10-15 12:28:50 +0000 |
commit | cdc9c0bc96781bae099051b052ccfd66ea685ba5 (patch) | |
tree | 6d6a132258b68bd74c9ae148e7fd17b1cead2385 /include | |
parent | 1b8e29e5404c9a74a167251fb37aa5ac0d9fd53e (diff) | |
download | gdb-cdc9c0bc96781bae099051b052ccfd66ea685ba5.zip gdb-cdc9c0bc96781bae099051b052ccfd66ea685ba5.tar.gz gdb-cdc9c0bc96781bae099051b052ccfd66ea685ba5.tar.bz2 |
nclude/gdb:
* 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.
Diffstat (limited to 'include')
-rw-r--r-- | include/gdb/ChangeLog | 5 | ||||
-rw-r--r-- | include/gdb/callback.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index 79c8178..4ca3ec3 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -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. diff --git a/include/gdb/callback.h b/include/gdb/callback.h index 3075284..3fa4191 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -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 |