This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Broken Arm IsTTY RDI syscall


The patch below fixed what looks like a cut/paste error in the Arm sim 
implementation of the RDI IsTTY syscall.

Applied as obvious.

Paul

2006-03-07  Paul Brook  <paul@codesourcery.com>

	* elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.

Index: sim/arm/armos.c
===================================================================
RCS file: /cvs/src/src/sim/arm/armos.c,v
retrieving revision 1.24
diff -u -p -r1.24 armos.c
--- sim/arm/armos.c	2 Feb 2006 01:48:16 -0000	1.24
+++ sim/arm/armos.c	7 Mar 2006 19:46:15 -0000
@@ -747,8 +747,8 @@ ARMul_OSHandleSWI (ARMul_State * state, 
 	      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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]