aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-03-07 19:55:55 +0000
committerPaul Brook <paul@codesourcery.com>2006-03-07 19:55:55 +0000
commit4b1d9c58548086d46f2883b5ed780c0156e08964 (patch)
tree00e1267d10c5cc441cb1a8228f74e998bb127d9d /sim/arm
parente546101697a4e017451f5918d7e4c4c50c0942fe (diff)
downloadgdb-4b1d9c58548086d46f2883b5ed780c0156e08964.zip
gdb-4b1d9c58548086d46f2883b5ed780c0156e08964.tar.gz
gdb-4b1d9c58548086d46f2883b5ed780c0156e08964.tar.bz2
2006-03-07 Paul Brook <paul@codesourcery.com>
* elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
Diffstat (limited to 'sim/arm')
-rw-r--r--sim/arm/ChangeLog4
-rw-r--r--sim/arm/armos.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index df88ef1..c4ea3bd 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-07 Paul Brook <paul@codesourcery.com>
+
+ * elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
+
2006-02-01 Shaun Jackman <sjackman@gmail.com>
* armos.c (ARMul_OSHandleSWI): Handle the RedBoot system
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 8e346c7..7739052 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -747,8 +747,8 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
break;
case AngelSWI_Reason_IsTTY:
- state->Reg[0] = sim_callback->close (sim_callback,
- ARMul_ReadWord (state, addr));
+ state->Reg[0] = sim_callback->isatty (sim_callback,
+ ARMul_ReadWord (state, addr));
OSptr->ErrorNo = sim_callback->get_errno (sim_callback);
break;