diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2004-06-25 16:48:03 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2004-06-25 16:48:03 +0000 |
commit | 594ee3a79f91d892f45d8667fa68f113b6a294d7 (patch) | |
tree | 4c141d495a037b63ca57411963c39550122d2536 /include/gdb/callback.h | |
parent | f9f2cf5dd6c4a233699034b3038eae7635d36137 (diff) | |
download | gdb-594ee3a79f91d892f45d8667fa68f113b6a294d7.zip gdb-594ee3a79f91d892f45d8667fa68f113b6a294d7.tar.gz gdb-594ee3a79f91d892f45d8667fa68f113b6a294d7.tar.bz2 |
2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
include/gdb:
* callback.h (host_callback_struct): Replace members fdopen and
alwaysopen with fd_buddy.
sim/common:
* callback.c: Changed all users.
Diffstat (limited to 'include/gdb/callback.h')
-rw-r--r-- | include/gdb/callback.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/gdb/callback.h b/include/gdb/callback.h index 3fa4191..aa956d0 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -123,8 +123,15 @@ struct host_callback_struct int last_errno; /* host format */ int fdmap[MAX_CALLBACK_FDS]; - char fdopen[MAX_CALLBACK_FDS]; - char alwaysopen[MAX_CALLBACK_FDS]; + /* fd_buddy is used to contruct circular lists of target fds that point to + the same host fd. A uniquely mapped fd points to itself; for a closed + one, fd_buddy has the value -1. The host file descriptors for stdin / + stdout / stderr are never closed by the simulators, so they are put + in a special fd_buddy circular list which also has MAX_CALLBACK_FDS + as a member. */ + /* ??? We don't have a callback entry for dup, although it is trival to + implement now. */ + short fd_buddy[MAX_CALLBACK_FDS+1]; /* System call numbers. */ CB_TARGET_DEFS_MAP *syscall_map; |