Author: martin
Date: 2007-02-28 10:32:48 -0500 (Wed, 28 Feb 2007)
New Revision: 73561
Modified:
trunk/debugger/classes/DebuggerSession.cs
Log:
Add error checking.
Modified: trunk/debugger/classes/DebuggerSession.cs
===================================================================
--- trunk/debugger/classes/DebuggerSession.cs 2007-02-28 15:29:11 UTC (rev
73560)
+++ trunk/debugger/classes/DebuggerSession.cs 2007-02-28 15:32:48 UTC (rev
73561)
@@ -181,8 +181,15 @@
main_process = process;
foreach (Event e in events.Values) {
- if (e.IsEnabled)
+ if (!e.IsEnabled)
+ continue;
+
+ try {
e.Activate (process.MainThread);
+ } catch (TargetException ex) {
+ Report.Error ("Cannot insert breakpoint
{0}: {1}",
+ e.Index, ex.Message);
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches