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]

[patch] Arm sim GetCmdLine


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:


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