From 70e9bed70de158d2af137590248e0a42ec6304b7 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Tue, 2 Mar 2010 13:42:43 +0000 Subject: * Mono.Debugging.Soft/SoftDebuggerAdaptor.cs: Renamed variable to improve readability. * Mono.Debugging.Soft/SoftEvaluationContext.cs: When calling a method, make sure value type arguments are properly boxed when required. svn path=/trunk/monodevelop/; revision=152833 --- Mono.Debugging.Soft/SoftEvaluationContext.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Mono.Debugging.Soft/SoftEvaluationContext.cs') diff --git a/Mono.Debugging.Soft/SoftEvaluationContext.cs b/Mono.Debugging.Soft/SoftEvaluationContext.cs index 2ddb02a..8690c45 100644 --- a/Mono.Debugging.Soft/SoftEvaluationContext.cs +++ b/Mono.Debugging.Soft/SoftEvaluationContext.cs @@ -86,6 +86,30 @@ namespace Mono.Debugging.Soft public Value RuntimeInvoke (MethodMirror method, object target, Value[] values) { + if (values != null) { + // Some arguments may need to be boxed + ParameterInfoMirror[] mparams = method.GetParameters (); + if (mparams.Length != values.Length) + throw new EvaluatorException ("Invalid number of arguments when calling: " + method.Name); + + for (int n=0; n