File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1285,7 +1285,7 @@ protected override ValueReference OnGetThisReference (EvaluationContext ctx)
12851285
12861286 static ValueReference GetThisReference ( SoftEvaluationContext ctx )
12871287 {
1288- return ctx . Frame . Method . IsStatic ? null : new ThisValueReference ( ctx , ctx . Frame ) ;
1288+ return ctx . Frame . Method . IsStatic ? null : new ThisValueReference ( ctx ) ;
12891289 }
12901290
12911291 public override ValueReference GetCurrentException ( EvaluationContext ctx )
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ namespace Mono.Debugging.Soft
3535{
3636 public class ThisValueReference : ValueReference
3737 {
38- readonly StackFrame frame ;
3938 object type ;
4039 Value value ;
40+ private SoftEvaluationContext ctx ;
4141
42- public ThisValueReference ( EvaluationContext ctx , StackFrame frame ) : base ( ctx )
42+ public ThisValueReference ( SoftEvaluationContext ctx ) : base ( ctx )
4343 {
44- this . frame = frame ;
44+ this . ctx = ctx ;
4545 }
4646
4747 public override ObjectValueFlags Flags {
@@ -55,14 +55,14 @@ public override string Name {
5555 public override object Value {
5656 get {
5757 if ( value == null )
58- value = frame . GetThis ( ) ;
58+ value = ctx . Frame . GetThis ( ) ;
5959
6060 return value ;
6161 }
6262 set {
63- if ( frame . VirtualMachine . Version . AtLeast ( 2 , 44 ) ) {
63+ if ( ctx . Frame . VirtualMachine . Version . AtLeast ( 2 , 44 ) ) {
6464 this . value = ( Value ) value ;
65- frame . SetThis ( ( Value ) value ) ;
65+ ctx . Frame . SetThis ( ( Value ) value ) ;
6666 }
6767 }
6868 }
You can’t perform that action at this time.
0 commit comments