Author: martin
Date: 2005-09-08 09:51:05 -0400 (Thu, 08 Sep 2005)
New Revision: 49705

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/classes/StackFrame.cs
   trunk/debugger/test/mono-debugger.tests/TestManagedTypes.exp
   trunk/debugger/test/mono-debugger.tests/TestNull.exp
Log:
2005-09-08  Martin Baulig  <[EMAIL PROTECTED]>

        * classes/StackFrame.cs (StackFrame): Make this a
        MarshalByRefObject; this is required if we want to modify
        registers.

        * tests/mono-debugger.tests/TestManagedType.exp, TestNull.exp:
        Added tests to modify variables.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2005-09-08 13:50:53 UTC (rev 49704)
+++ trunk/debugger/ChangeLog    2005-09-08 13:51:05 UTC (rev 49705)
@@ -1,5 +1,14 @@
 2005-09-08  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * classes/StackFrame.cs (StackFrame): Make this a
+       MarshalByRefObject; this is required if we want to modify
+       registers.
+
+       * tests/mono-debugger.tests/TestManagedType.exp, TestNull.exp:
+       Added tests to modify variables.
+
+2005-09-08  Martin Baulig  <[EMAIL PROTECTED]>
+
        * interfaces/ITargetObject.cs
        (ITargetObject.IsNull): New property.
 

Modified: trunk/debugger/classes/StackFrame.cs
===================================================================
--- trunk/debugger/classes/StackFrame.cs        2005-09-08 13:50:53 UTC (rev 
49704)
+++ trunk/debugger/classes/StackFrame.cs        2005-09-08 13:51:05 UTC (rev 
49705)
@@ -196,7 +196,7 @@
        }
 
        [Serializable]
-       public sealed class StackFrame : IDisposable
+       public sealed class StackFrame : MarshalByRefObject, IDisposable
        {
                IMethod method;
                Process process;

Modified: trunk/debugger/test/mono-debugger.tests/TestManagedTypes.exp
===================================================================
--- trunk/debugger/test/mono-debugger.tests/TestManagedTypes.exp        
2005-09-08 13:50:53 UTC (rev 49704)
+++ trunk/debugger/test/mono-debugger.tests/TestManagedTypes.exp        
2005-09-08 13:51:05 UTC (rev 49705)
@@ -35,14 +35,19 @@
 mdb_send_and_expect "print f" "(System.Single) 0.7142857"
 mdb_send_and_expect "ptype hello" "System.String"
 mdb_send_and_expect "print hello" "(System.String) \"Hello World\""
+mdb_send "set a = 9"
+mdb_expect_prompt
+mdb_send "set hello = \"Monkey\""
+mdb_expect_prompt
+mdb_send_and_expect "print a" "(System.Int32) 9"
 
 mdb_send "break $bpt_boxed_value"
 set breakpoint [mdb_expect_breakpoint]
 mdb_send "continue"
-mdb_expect_line "5"
+mdb_expect_line "9"
 mdb_expect_line "7"
 mdb_expect_line "0.7142857"
-mdb_expect_line "Hello World"
+mdb_expect_line "Monkey"
 mdb_expect_stopped 0 "X.BoxedValueType()" $file $bpt_boxed_value
 mdb_send_and_expect "print a" "(System.Int32) 5"
 mdb_send_and_expect "print boxed_a" "(System.Object) &(System.Int32) 5"

Modified: trunk/debugger/test/mono-debugger.tests/TestNull.exp
===================================================================
--- trunk/debugger/test/mono-debugger.tests/TestNull.exp        2005-09-08 
13:50:53 UTC (rev 49704)
+++ trunk/debugger/test/mono-debugger.tests/TestNull.exp        2005-09-08 
13:51:05 UTC (rev 49705)
@@ -21,19 +21,22 @@
 mdb_send_and_expect "p y_array" "(X\[\]) \[ null \]"
 mdb_send_and_expect "p z_array" "(X\[\]) \[ { Foo = 5 } \]"
 
+mdb_send "set x = new X (81)"
+mdb_expect_prompt
 mdb_send "set y_array \[0\] = new X (9)"
 mdb_expect_prompt
 mdb_send "set z_array \[0\] = null"
 mdb_expect_prompt
 
+mdb_send_and_expect "p x" "(X) { Foo = 81 }"
 mdb_send_and_expect "p y_array" "(X\[\]) \[ { Foo = 9 } \]"
 mdb_send_and_expect "p z_array" "(X\[\]) \[ null \]"
 
 mdb_send "continue"
 mdb_expect_line "True"
+mdb_expect_line "False"
 mdb_expect_line "True"
 mdb_expect_line "True"
-mdb_expect_line "True"
 mdb_expect_line "False"
 mdb_expect_line "False"
 mdb_expect_line "Process @4 terminated normally."

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to