2010-05-07 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Fri, 7 May 2010 20:06:16 +0000 (20:06 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 7 May 2010 20:06:16 +0000 (20:06 -0000)
* VirtualMachine.cs (ErrorHandler): Convert ABSENT_INFORMATION to
AbsentInformationException.

* AbsentInformationException.cs: New file.

svn path=/trunk/mcs/; revision=156916

mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft.dll.sources
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/AbsentInformationException.cs [new file with mode: 0644]
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ChangeLog
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs

index e0848c3799e7654b0e6825fa62afcce35b9702f2..3a535070d6af6164ac89274eb810da6b4bb27d4a 100644 (file)
@@ -61,4 +61,4 @@ Mono.Debugger.Soft/VMDisconnectEvent.cs
 Mono.Debugger.Soft/InvokeOptions.cs
 Mono.Debugger.Soft/IInvokeAsyncResult.cs
 Mono.Debugger.Soft/ITargetProcess.cs
-
+Mono.Debugger.Soft/AbsentInformationException.cs
diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/AbsentInformationException.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/AbsentInformationException.cs
new file mode 100644 (file)
index 0000000..5ce9ee2
--- /dev/null
@@ -0,0 +1,10 @@
+using System;
+
+namespace Mono.Debugger.Soft
+{
+       public class AbsentInformationException : Exception {
+               
+               public AbsentInformationException () : base ("Debug information is not available for this frame.") {
+               }
+       }
+}
index 4aa86deaa8c0547d36566a7fb92d52b16e25e2d1..f9dd0a98e6c6af6f542641b2cb125fcfe612c8c3 100644 (file)
@@ -1,3 +1,10 @@
+2010-05-07  Zoltan Varga  <vargaz@gmail.com>
+
+       * VirtualMachine.cs (ErrorHandler): Convert ABSENT_INFORMATION to
+       AbsentInformationException.
+
+       * AbsentInformationException.cs: New file.
+
 2010-04-30  Zoltan Varga  <vargaz@gmail.com>
 
        * TypeMirror.cs: Add new overload for GetSourceFiles () which returns full paths.
index 253248dbf174deba1d44c3cc098866dbbcc0b8c3..61a7a4f944dab7bd1daa7b92750b9a98d218a500 100644 (file)
@@ -202,7 +202,8 @@ namespace Mono.Debugger.Soft
                NOT_SUSPENDED = 101,
                INVALID_ARGUMENT = 102,
                ERR_UNLOADED = 103,
-               ERR_NO_INVOCATION = 104
+               ERR_NO_INVOCATION = 104,
+               ABSENT_INFORMATION = 105
        }
 
        public class ErrorHandlerEventArgs : EventArgs {
index a8da48e9b450ebd133744f6260dcd01f7a0aae6d..6cef32ecb2206b9732bb2b00e8eea3c79041fcdf 100644 (file)
@@ -195,6 +195,8 @@ namespace Mono.Debugger.Soft
                                throw new InvalidOperationException ("The vm is not suspended.");
                        case ErrorCode.NOT_IMPLEMENTED:
                                throw new NotSupportedException ("This request is not supported by the protocol version implemented by the debuggee.");
+                       case ErrorCode.ABSENT_INFORMATION:
+                               throw new AbsentInformationException ();
                        default:
                                throw new CommandException (args.ErrorCode);
                        }