[patch] Arm sim GetCmdLine

Paul Brook paul@codesourcery.com
Tue Mar 7 22:27:00 GMT 2006


The patch below makes the RDI GetCmdLine syscall correctly indicate success.

Ok?

Paul

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

	* armos.c (ARMul_OSHandleSWI): Return success for
	AngelSWI_Reason_GetCmdLine.

Index: src/sim/arm/armos.c
===================================================================
--- src.orig/sim/arm/armos.c	2005-02-23 20:06:25.000000000 -0800
+++ src/sim/arm/armos.c	2005-02-28 11:27:08.000000000 -0800
@@ -630,6 +630,7 @@ ARMul_OSHandleSWI (ARMul_State * state, 
 
 	    case AngelSWI_Reason_GetCmdLine:
 	      WriteCommandLineTo (state, ARMul_ReadWord (state, addr));
+	      state->Reg[0] = 0;
 	      break;
 
 	    case AngelSWI_Reason_HeapInfo:



More information about the Gdb-patches mailing list