~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/Mono.Debugging/Mono.Debugging.Evaluation/ValueReference.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-02-02 11:39:59 UTC
  • mfrom: (1.4.4 upstream)
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20100202113959-n3u848nfj35yyd03
* New upstream release
* debian/control:
  + Standards version 3.8.4 (no changes needed)
* debian/patches/remove_support_for_non_debian_functionality.patch,
  debian/patches/remove_support_for_soft_debugger.patch,
  debian/patches/remove_support_for_moonlight.patch,
  debian/rules:
  + Split patch into two pieces, to make it easier to enable either
    SDB or Moonlight support with a rebuild
* debian/monodevelop-moonlight.install,
  debian/monodevelop-debugger-sdb.install,
  debian/control:
  + Create packaging data for the Soft Debugger addin and Moonlight addin -
    and comment them out of debian/control as we can't provide them on
    Debian for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
                        Connect ();
105
105
                        try {
106
106
                                return OnCreateObjectValue ();
 
107
                        } catch (ImplicitEvaluationDisabledException) {
 
108
                                return DC.ObjectValue.CreateImplicitNotSupported (this, new ObjectPath (Name), ctx.Adapter.GetTypeName (Context, Type), Flags);
107
109
                        } catch (NotSupportedExpressionException ex) {
108
110
                                return DC.ObjectValue.CreateNotSupported (this, new ObjectPath (Name), ex.Message, ctx.Adapter.GetTypeName (Context, Type), Flags);
109
111
                        } catch (EvaluatorException ex) {
139
141
                        return CreateObjectValue (true);
140
142
                }
141
143
                
142
 
                string IObjectValueSource.SetValue (ObjectPath path, string value)
 
144
                EvaluationResult IObjectValueSource.SetValue (ObjectPath path, string value)
143
145
                {
144
146
                        try {
145
147
                                ctx.WaitRuntimeInvokes ();
149
151
                                ops.AllowTargetInvoke = true;
150
152
                                cctx.Options = ops;
151
153
                                ValueReference vref = ctx.Evaluator.Evaluate (ctx, value, Type);
152
 
                                object newValue = vref.Value;
153
 
                                newValue = ctx.Adapter.Cast (ctx, newValue, Type);
 
154
                                object newValue = ctx.Adapter.Convert (ctx, vref.Value, Type);
154
155
                                Value = newValue;
155
156
                        } catch (Exception ex) {
156
157
                                ctx.WriteDebuggerError (ex);
164
165
                                ctx.WriteDebuggerOutput ("Value assignment failed: {0}: {1}\n", ex.GetType (), ex.Message);
165
166
                        }
166
167
                        
167
 
                        return value;
 
168
                        return null;
168
169
                }
169
170
 
170
171
                ObjectValue[] IObjectValueSource.GetChildren (ObjectPath path, int index, int count)