diff options
author | Mark Mitchell <mark@codesourcery.com> | 2007-02-27 18:51:57 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2007-02-27 18:51:57 +0000 |
commit | e1c9b6f16a257b4ffff961d59fc9204847eca1f4 (patch) | |
tree | b177d89c8c4c82cc1a9b37f238a463d7d6fc95fb /sim/arm/armos.c | |
parent | 7313566fe3ccb5fadf5f1dfdeb007cc84b8f689a (diff) | |
download | gdb-e1c9b6f16a257b4ffff961d59fc9204847eca1f4.zip gdb-e1c9b6f16a257b4ffff961d59fc9204847eca1f4.tar.gz gdb-e1c9b6f16a257b4ffff961d59fc9204847eca1f4.tar.bz2 |
* armos.c (SWIflen): Do not treate file descriptor zero as
special.
Diffstat (limited to 'sim/arm/armos.c')
-rw-r--r-- | sim/arm/armos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c index 7739052..39b9d4f 100644 --- a/sim/arm/armos.c +++ b/sim/arm/armos.c @@ -401,7 +401,7 @@ SWIflen (ARMul_State * state, ARMword fh) struct OSblock *OSptr = (struct OSblock *) state->OSptr; ARMword addr; - if (fh == 0 || fh > FOPEN_MAX) + if (fh > FOPEN_MAX) { OSptr->ErrorNo = EBADF; state->Reg[0] = -1L; |