Hello community,
here is the log from the commit of package monodevelop-debugger-mdb for openSUSE:Factory
checked in at Fri Nov 5 16:26:07 CET 2010.
--------
--- monodevelop-debugger-mdb/monodevelop-debugger-mdb.changes 2010-03-16 18:18:39.000000000 +0100
+++ monodevelop-debugger-mdb/monodevelop-debugger-mdb.changes 2010-10-29 19:13:03.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Oct 29 17:10:25 UTC 2010 - ajorgensen@novell.com
+
+- Update to 2.4
+ * http://monodevelop.com/Download/MonoDevelop_2.4_Released
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
monodevelop-debugger-mdb-2.2.1.tar.bz2
New:
----
monodevelop-debugger-mdb-2.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ monodevelop-debugger-mdb.spec ++++++
--- /var/tmp/diff_new_pack.AXaGeF/_old 2010-11-05 16:25:21.000000000 +0100
+++ /var/tmp/diff_new_pack.AXaGeF/_new 2010-11-05 16:25:21.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package monodevelop-debugger-mdb (Version 2.2.1)
+# spec file for package monodevelop-debugger-mdb (Version 2.4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: monodevelop-debugger-mdb
-Version: 2.2.1
+Version: 2.4
Release: 1
License: MIT/X11
AutoReqProv: on
++++++ monodevelop-debugger-mdb-2.2.1.tar.bz2 -> monodevelop-debugger-mdb-2.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/AssemblyInfo.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/AssemblyInfo.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/AssemblyInfo.cs 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/AssemblyInfo.cs 2010-06-14 21:46:07.000000000 +0200
@@ -5,5 +5,5 @@
[assembly: AssemblyProduct ("MonoDevelop")]
[assembly: AssemblyTitle ("MDB support for Mono.Debugging")]
[assembly: AssemblyDescription ("Managed Debugging Engine support for MDB")]
-[assembly: AssemblyVersion ("2.2")]
+[assembly: AssemblyVersion ("2.4")]
[assembly: AssemblyCopyright ("MIT X11")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/ChangeLog new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/ChangeLog
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/ChangeLog 2009-11-20 18:33:00.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/ChangeLog 2010-06-14 21:46:07.000000000 +0200
@@ -1,3 +1,32 @@
+2010-03-22 Lluis Sanchez Gual
+
+ * AssemblyInfo.cs:
+ * Manifest.addin.xml: Bumped MD version.
+
+2010-03-17 Lluis Sanchez Gual
+
+ * Mono.Debugging.Backend.Mdb.csproj: Flush.
+
+2010-03-17 Lluis Sanchez Gual
+
+ * Mono.Debugging.Backend.Mdb.csproj: Merged MD.Projects into
+ MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components
+ into MD.Ide.
+
+2010-03-08 Jonathan Pryor
+
+ * Makefile: Set $(ASSEMBLY_COMPILER_COMMAND) to $(CSC).
+ This allows a top-level CSC override to be used within this
+ module (e.g. top-level `make CSC=dmcs` for a v4 build).
+
+2010-02-16 Lluis Sanchez Gual
+
+ * Manifest.addin.xml:
+ * MonoDebuggerSessionFactory.cs: Track api changes. Some
+ engine info is now taken from extension node metadata.
+
+ * Mono.Debugging.Backend.Mdb.csproj: Flush.
+
2009-11-20 Lluis Sanchez Gual
* MonoDebuggerSessionFactory.cs: Implement Id property.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/Makefile new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/Makefile
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/Makefile 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/Makefile 2010-06-14 21:46:07.000000000 +0200
@@ -9,7 +9,7 @@
include $(top_srcdir)/config.make
ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(CSC)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG;TRACE"
ASSEMBLY = ../build/DebuggerClient.dll
@@ -23,7 +23,7 @@
endif
ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(CSC)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG "-define:TRACE"
ASSEMBLY = bin/Release/DebuggerClient.dll
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/Manifest.addin.xml new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/Manifest.addin.xml
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/Manifest.addin.xml 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/Manifest.addin.xml 2010-06-14 21:46:07.000000000 +0200
@@ -5,16 +5,19 @@
description = "Managed Debugging Engine support for MDB"
copyright = "MIT X11"
category = "Debugging"
- version = "2.2">
+ version = "2.4">
<Dependencies>
- <Addin id="MonoDevelop.Core" version="2.2"/>
- <Addin id="MonoDevelop.Ide" version="2.2"/>
- <Addin id="MonoDevelop.Debugger" version="2.2"/>
+ <Addin id="MonoDevelop.Core" version="2.4"/>
+ <Addin id="MonoDevelop.Ide" version="2.4"/>
+ <Addin id="MonoDevelop.Debugger" version="2.4"/>
</Dependencies>
- <Extension path="/MonoDevelop/Debugging/DebuggerFactories">
- <DebuggerFactory type="MonoDevelop.Debugger.Mdb.MonoDebuggerSessionFactory" />
+ <Extension path="/MonoDevelop/Debugging/DebuggerEngines">
+
</Extension>
</Addin>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/MonoDebuggerSessionFactory.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/MonoDebuggerSessionFactory.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb/MonoDebuggerSessionFactory.cs 2009-11-20 18:33:00.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb/MonoDebuggerSessionFactory.cs 2010-06-14 21:46:07.000000000 +0200
@@ -39,14 +39,6 @@
{
public class MonoDebuggerSessionFactory: IDebuggerEngine
{
- public string Name {
- get { return "Mono Debugger"; }
- }
-
- public string Id {
- get { return "Mono.Debugger.Mdb"; }
- }
-
public bool CanDebugCommand (ExecutionCommand command)
{
DotNetExecutionCommand cmd = command as DotNetExecutionCommand;
@@ -68,15 +60,6 @@
return startInfo;
}
- public DebuggerFeatures SupportedFeatures {
- get {
- return DebuggerFeatures.All & ~(
- DebuggerFeatures.ConditionalBreakpoints |
- DebuggerFeatures.Tracepoints |
- DebuggerFeatures.Attaching);
- }
- }
-
public DebuggerSession CreateSession ()
{
MonoDebuggerSession ds = new MonoDebuggerSession ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/AssemblyInfo.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/AssemblyInfo.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/AssemblyInfo.cs 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/AssemblyInfo.cs 2010-06-14 21:46:07.000000000 +0200
@@ -5,5 +5,5 @@
[assembly: AssemblyProduct ("MonoDevelop")]
[assembly: AssemblyTitle ("Asp.Net Debugging Support")]
[assembly: AssemblyDescription ("Managed Debugging Engine support for MDB")]
-[assembly: AssemblyVersion ("2.2")]
+[assembly: AssemblyVersion ("2.4")]
[assembly: AssemblyCopyright ("MIT X11")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/ChangeLog new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/ChangeLog
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/ChangeLog 2009-11-20 18:33:00.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/ChangeLog 2010-06-14 21:46:07.000000000 +0200
@@ -1,3 +1,32 @@
+2010-03-22 Lluis Sanchez Gual
+
+ * AssemblyInfo.cs:
+ * Manifest.addin.xml: Bumped MD version.
+
+2010-03-17 Lluis Sanchez Gual
+
+ * Mono.Debugging.Backend.Mdb.AspNet.csproj: Flush.
+
+2010-03-17 Lluis Sanchez Gual
+
+ * Mono.Debugging.Backend.Mdb.AspNet.csproj: Merged MD.Projects
+ into MD.Core, and MD.Projects.Gui, MD.Core.Gui and
+ MD.Components into MD.Ide.
+
+2010-03-08 Jonathan Pryor
+
+ * Makefile: Set $(ASSEMBLY_COMPILER_COMMAND) to $(CSC).
+ This allows a top-level CSC override to be used within this
+ module (e.g. top-level `make CSC=dmcs` for a v4 build).
+
+2010-02-16 Lluis Sanchez Gual
+
+ * Mono.Debugging.Backend.Mdb.AspNet.csproj: Flush.
+
+ * Manifest.addin.xml:
+ * MonoXspDebuggerSessionFactory.cs: Track api changes. Some
+ engine info is now taken from extension node metadata.
+
2009-11-20 Lluis Sanchez Gual
* MonoXspDebuggerSessionFactory.cs: Implement Id property.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/Makefile new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/Makefile
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/Makefile 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/Makefile 2010-06-14 21:46:07.000000000 +0200
@@ -9,7 +9,7 @@
include $(top_srcdir)/config.make
ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(CSC)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG;TRACE"
ASSEMBLY = ../build/AspNetDebuggerClient.dll
@@ -23,7 +23,7 @@
endif
ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(CSC)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG "-define:TRACE"
ASSEMBLY = bin/Release/AspNetDebuggerClient.dll
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/Manifest.addin.xml new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/Manifest.addin.xml
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/Manifest.addin.xml 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/Manifest.addin.xml 2010-06-14 21:46:07.000000000 +0200
@@ -5,18 +5,21 @@
description = "Managed Debugging Engine support for MDB"
copyright = "MIT X11"
category = "Debugging"
- version = "2.2">
+ version = "2.4">
<Dependencies>
- <Addin id="MonoDevelop.Core" version="2.2"/>
- <Addin id="MonoDevelop.Ide" version="2.2"/>
- <Addin id="MonoDevelop.Debugger" version="2.2"/>
- <Addin id="MonoDevelop.Debugger.Mdb" version="2.2"/>
- <Addin id="MonoDevelop.AspNet" version="2.2"/>
+ <Addin id="MonoDevelop.Core" version="2.4"/>
+ <Addin id="MonoDevelop.Ide" version="2.4"/>
+ <Addin id="MonoDevelop.Debugger" version="2.4"/>
+ <Addin id="MonoDevelop.Debugger.Mdb" version="2.4"/>
+ <Addin id="MonoDevelop.AspNet" version="2.4"/>
</Dependencies>
- <Extension path="/MonoDevelop/Debugging/DebuggerFactories">
- <DebuggerFactory type="MonoDevelop.Debugger.Mdb.MonoXspDebuggerSessionFactory" />
+ <Extension path="/MonoDevelop/Debugging/DebuggerEngines">
+
</Extension>
</Addin>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/MonoXspDebuggerSessionFactory.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/MonoXspDebuggerSessionFactory.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Backend.Mdb.AspNet/MonoXspDebuggerSessionFactory.cs 2009-11-20 18:33:00.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Backend.Mdb.AspNet/MonoXspDebuggerSessionFactory.cs 2010-06-14 21:46:07.000000000 +0200
@@ -40,14 +40,6 @@
{
public class MonoXspDebuggerSessionFactory: IDebuggerEngine
{
- public string Name {
- get { return "Mono Debugger for ASP.NET"; }
- }
-
- public string Id {
- get { return "Mono.Debugger.Mdb.AspNet"; }
- }
-
public bool CanDebugCommand (ExecutionCommand command)
{
AspNetExecutionCommand cmd = command as AspNetExecutionCommand;
@@ -82,15 +74,6 @@
return startInfo;
}
- public DebuggerFeatures SupportedFeatures {
- get {
- return DebuggerFeatures.All & ~(
- DebuggerFeatures.ConditionalBreakpoints |
- DebuggerFeatures.Tracepoints |
- DebuggerFeatures.Attaching);
- }
- }
-
public DebuggerSession CreateSession ()
{
MonoDebuggerSession ds = new MonoDebuggerSession ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/BacktraceWrapper.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/BacktraceWrapper.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/BacktraceWrapper.cs 2009-11-20 18:33:00.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/BacktraceWrapper.cs 2010-06-14 21:46:07.000000000 +0200
@@ -17,10 +17,12 @@
MD.StackFrame[] frames;
DissassemblyBuffer[] disBuffers;
bool disposed;
+ TargetObject exception;
- public BacktraceWrapper (MD.StackFrame[] frames): base (Server.Instance.MdbObjectValueAdaptor)
+ public BacktraceWrapper (MD.StackFrame[] frames, TargetObject exception): base (Server.Instance.MdbObjectValueAdaptor)
{
this.frames = frames;
+ this.exception = exception;
Connect ();
}
@@ -76,7 +78,7 @@
{
CheckDisposed ();
MD.StackFrame frame = frames [frameIndex];
- return new MdbEvaluationContext (frame.Thread, frame, options);
+ return new MdbEvaluationContext (frame.Thread, frame, exception, options);
}
public override AssemblyLine[] Disassemble (int frameIndex, int firstLine, int count)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/ChangeLog new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/ChangeLog
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/ChangeLog 2010-01-15 03:29:51.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/ChangeLog 2010-06-14 21:46:07.000000000 +0200
@@ -1,3 +1,56 @@
+2010-05-07 Lluis Sanchez Gual
+
+ * IndexerValueReference.cs: Track api changes.
+
+2010-03-17 Lluis Sanchez Gual
+
+ * Mono.Debugging.Server.Mdb.csproj: Flush.
+
+2010-03-17 Lluis Sanchez Gual
+
+ * Mono.Debugging.Server.Mdb.csproj: Merged MD.Projects into
+ MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components
+ into MD.Ide.
+
+2010-03-08 Jonathan Pryor
+
+ * Makefile: Set $(ASSEMBLY_COMPILER_COMMAND) to $(CSC).
+ This allows a top-level CSC override to be used within this
+ module (e.g. top-level `make CSC=dmcs` for a v4 build).
+
+2010-03-01 Lluis Sanchez Gual
+
+ * IndexerValueReference.cs:
+ * MdbObjectValueAdaptor.cs: Fixed indexer issues.
+
+2010-03-01 Lluis Sanchez Gual
+
+ * IndexerValueReference.cs:
+ * MdbObjectValueAdaptor.cs: Track api changes.
+
+2010-02-22 Lluis Sanchez Gual
+
+ * DebuggerServer.cs:
+ * BacktraceWrapper.cs:
+ * EvaluationContext.cs:
+ * MdbObjectValueAdaptor.cs: Improve implementation of
+ catchpoints. Properly report the catchpoint exception.
+
+2010-02-22 Lluis Sanchez Gual
+
+ * DebuggerServer.cs: Track api changes.
+
+2010-02-22 Mike Krüger
+
+ * MdbObjectValueAdaptor.cs: fixed build.
+
+2010-02-16 Lluis Sanchez Gual
+
+ * DebuggerServer.cs: Tracepoints are now printed by the
+ debugging engine.
+
+ * Mono.Debugging.Server.Mdb.csproj: Flush.
+
2009-12-15 Lluis Sanchez Gual
* MdbObjectValueAdaptor.cs: Improved ToString method for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/DebuggerServer.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/DebuggerServer.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/DebuggerServer.cs 2010-01-15 03:29:51.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/DebuggerServer.cs 2010-06-14 21:46:07.000000000 +0200
@@ -295,16 +295,23 @@
ev = sbp;
}
else if (be is Catchpoint) {
- Catchpoint cp = (Catchpoint) be;
- ML.TargetType exc = null;
- foreach (Module mod in process.Modules) {
- exc = mod.Language.LookupType (cp.ExceptionName);
+ lock (pendingCatchpoints) {
+ Catchpoint cp = (Catchpoint) be;
+ ML.TargetType exc = null;
+ if (process != null) {
+ foreach (Module mod in process.Modules) {
+ exc = mod.Language.LookupType (cp.ExceptionName);
+ if (exc != null)
+ break;
+ }
+ }
if (exc != null)
- break;
+ ev = session.InsertExceptionCatchPoint (process.MainThread, ThreadGroup.Global, exc);
+ else {
+ pendingCatchpoints.Add (cp);
+ return -1;
+ }
}
- if (exc == null)
- throw new Exception ("Unknown exception type.");
- ev = session.InsertExceptionCatchPoint (process.MainThread, ThreadGroup.Global, exc);
}
ev.IsEnabled = enable;
@@ -317,7 +324,7 @@
if (bp != null && !running && !initializing && activeThread.CurrentFrame != null && !string.IsNullOrEmpty (bp.ConditionExpression) && bp.BreakIfConditionChanges) {
// Initial expression evaluation
- MdbEvaluationContext ctx = new MdbEvaluationContext (activeThread, activeThread.CurrentFrame, SessionOptions.EvaluationOptions);
+ MdbEvaluationContext ctx = new MdbEvaluationContext (activeThread, activeThread.CurrentFrame, null, SessionOptions.EvaluationOptions);
ML.TargetObject ob = EvaluateExp (ctx, bp.ConditionExpression);
if (ob != null)
lastConditionValue [ev.Index] = evaluator.TargetObjectToExpression (ctx, ob).Value;
@@ -373,7 +380,7 @@
return false;
}
- MdbEvaluationContext ctx = new MdbEvaluationContext (frame.Thread, frame, SessionOptions.EvaluationOptions);
+ MdbEvaluationContext ctx = new MdbEvaluationContext (frame.Thread, frame, null, SessionOptions.EvaluationOptions);
DL.Breakpoint bp = be as DL.Breakpoint;
if (bp != null && !string.IsNullOrEmpty (bp.ConditionExpression)) {
ML.TargetObject val = EvaluateExp (ctx, bp.ConditionExpression);
@@ -408,7 +415,6 @@
if (val != null) {
string str = evaluator.TargetObjectToString (ctx, val);
DispatchEvent (delegate {
- controller.OnTargetOutput (false, str + "\n");
NotifyBreakEventUpdate (eventHandle, -1, str);
});
}
@@ -506,7 +512,7 @@
{
MD.Thread t = GetThread (processId, threadId);
if (t != null && t.IsStopped)
- return CreateBacktrace (t);
+ return CreateBacktrace (t, null);
else
return null;
}
@@ -602,7 +608,7 @@
return mc.ReturnValue;
}
- DL.Backtrace CreateBacktrace (MD.Thread thread)
+ DL.Backtrace CreateBacktrace (MD.Thread thread, ML.TargetObject exception)
{
List frames = new List ();
DateTime t = DateTime.Now;
@@ -621,10 +627,10 @@
}
}
if (frames.Count > 0) {
- BacktraceWrapper wrapper = new BacktraceWrapper (frames.ToArray ());
+ BacktraceWrapper wrapper = new BacktraceWrapper (frames.ToArray (), exception);
return new DL.Backtrace (wrapper);
} else if (thread.CurrentBacktrace != null) {
- BacktraceWrapper wrapper = new BacktraceWrapper (thread.CurrentBacktrace.Frames);
+ BacktraceWrapper wrapper = new BacktraceWrapper (thread.CurrentBacktrace.Frames, exception);
return new DL.Backtrace (wrapper);
}
return null;
@@ -792,14 +798,13 @@
DL.TargetEventArgs targetArgs = new DL.TargetEventArgs (type);
if (args.Type != MD.TargetEventType.TargetExited) {
- targetArgs.Backtrace = CreateBacktrace (thread);
+ ML.TargetObject exception = null;
+ if (args.Type == MD.TargetEventType.UnhandledException || args.Type == MD.TargetEventType.Exception)
+ exception = args.Frame.ExceptionObject;
+ targetArgs.Backtrace = CreateBacktrace (thread, exception);
targetArgs.Thread = CreateThreadInfo (activeThread);
}
- if ((args.Type == MD.TargetEventType.UnhandledException || args.Type == MD.TargetEventType.Exception) && (args.Data is TargetAddress)) {
- MdbEvaluationContext ctx = new MdbEvaluationContext (args.Frame.Thread, args.Frame, SessionOptions.EvaluationOptions);
- targetArgs.Exception = LiteralValueReference.CreateTargetObjectLiteral (ctx, "Exception", args.Frame.ExceptionObject).CreateObjectValue ();
- }
running = false;
@@ -859,6 +864,8 @@
WriteDebuggerOutput (string.Format ("Thread {0} exited.\n", thread.ID));
}
+ List<Catchpoint> pendingCatchpoints = new List<Catchpoint> ();
+
private void OnModuleLoadedEvent (Module module)
{
SourceFile[] sfiles = module.Sources;
@@ -867,6 +874,19 @@
files [n] = sfiles [n].FileName;
controller.NotifySourceFileLoaded (files);
WriteDebuggerOutput (string.Format ("Module loaded: {0}.\n", module.Name));
+
+ if (process == null)
+ return;
+
+ lock (pendingCatchpoints) {
+ foreach (Catchpoint cp in pendingCatchpoints.ToArray ()) {
+ ML.TargetType exc = module.Language.LookupType (cp.ExceptionName);
+ if (exc != null) {
+ session.InsertExceptionCatchPoint (process.MainThread, ThreadGroup.Global, exc);
+ pendingCatchpoints.Remove (cp);
+ }
+ }
+ }
}
private void OnModuleUnLoadedEvent (Module module)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/EvaluationContext.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/EvaluationContext.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/EvaluationContext.cs 2009-11-20 18:33:00.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/EvaluationContext.cs 2010-06-14 21:46:07.000000000 +0200
@@ -48,13 +48,16 @@
return frame;
}
}
+
+ public TargetObject Exception { get; private set; }
- public MdbEvaluationContext (Thread thread, StackFrame frame, Mono.Debugging.Client.EvaluationOptions options): base (options)
+ public MdbEvaluationContext (Thread thread, StackFrame frame, TargetObject exception, Mono.Debugging.Client.EvaluationOptions options): base (options)
{
Evaluator = Server.Instance.Evaluator;
Adapter = Server.Instance.MdbObjectValueAdaptor;
this.thread = thread;
this.frame = frame;
+ this.Exception = exception;
}
public TargetObject GetRealObject (object ob)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/IndexerValueReference.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/IndexerValueReference.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/IndexerValueReference.cs 2010-01-15 03:29:51.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/IndexerValueReference.cs 2010-06-14 21:46:07.000000000 +0200
@@ -32,6 +32,7 @@
using Mono.Debugging.Client;
using System.Collections.Generic;
using Mono.Debugging.Evaluation;
+using System.Text;
namespace DebuggerServer
{
@@ -39,23 +40,23 @@
{
TargetPropertyInfo indexer;
TargetStructObject target;
- TargetObject index;
+ TargetObject[] index;
- public IndexerValueReference (EvaluationContext ctx, TargetStructObject target, TargetObject index, TargetPropertyInfo indexerProp): base (ctx)
+ public IndexerValueReference (EvaluationContext ctx, TargetStructObject target, TargetObject[] index, TargetPropertyInfo indexerProp): base (ctx)
{
this.indexer = indexerProp;
this.target = target;
this.index = index;
}
- public static ValueReference CreateIndexerValueReference (MdbEvaluationContext ctx, TargetObject target, TargetObject index)
+ public static ValueReference CreateIndexerValueReference (MdbEvaluationContext ctx, TargetObject target, TargetObject[] index)
{
TargetFundamentalObject mstr = target as TargetFundamentalObject;
if (mstr != null && mstr.TypeName == "string") {
// Special case for strings
- string name = "[" + ctx.Evaluator.TargetObjectToExpression (ctx, index) + "]";
+ string name = "[" + ctx.Evaluator.TargetObjectToExpression (ctx, index[0]) + "]";
string val = (string) mstr.GetObject (ctx.Thread);
- object oo = ctx.Adapter.TargetObjectToObject (ctx, index);
+ object oo = ctx.Adapter.TargetObjectToObject (ctx, index[0]);
int idx = (int) Convert.ChangeType (oo, typeof(int));
return LiteralValueReference.CreateObjectLiteral (ctx, name, val [idx]);
}
@@ -85,19 +86,21 @@
public override object Value {
get {
MdbEvaluationContext ctx = (MdbEvaluationContext) Context;
- return ObjectUtil.GetRealObject (ctx, Server.Instance.RuntimeInvoke (ctx, indexer.Getter, target, new TargetObject [] {index}));
+ return ObjectUtil.GetRealObject (ctx, Server.Instance.RuntimeInvoke (ctx, indexer.Getter, target, index));
}
set {
MdbEvaluationContext ctx = (MdbEvaluationContext) Context;
- TargetObject cindex = TargetObjectConvert.Cast (ctx, index, indexer.Setter.ParameterTypes [0]);
- TargetObject cvalue = TargetObjectConvert.Cast (ctx, (TargetObject) value, indexer.Setter.ParameterTypes [1]);
- Server.Instance.RuntimeInvoke (ctx, indexer.Setter, target, new TargetObject [] {cindex, cvalue});
+ TargetObject[] cparams = new TargetObject [index.Length + 1];
+ for (int n=0; n 0)
+ sb.Append (',');
+ sb.Append (Server.Instance.Evaluator.TargetObjectToExpression (Context, index[n]));
+ }
+ sb.Append (']');
+ return sb.ToString ();
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/Makefile new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/Makefile
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/Makefile 2009-11-05 19:11:36.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/Makefile 2010-06-14 21:46:07.000000000 +0200
@@ -9,7 +9,7 @@
include $(top_srcdir)/config.make
ifeq ($(CONFIG),DEBUG)
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(CSC)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG;TRACE"
ASSEMBLY = ../build/DebuggerServer.exe
@@ -21,7 +21,7 @@
endif
ifeq ($(CONFIG),RELEASE)
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(CSC)
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG "-define:TRACE"
ASSEMBLY = ../build/DebuggerServer.exe
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/MdbObjectValueAdaptor.cs new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/MdbObjectValueAdaptor.cs
--- old/monodevelop-debugger-mdb-2.2.1/Mono.Debugging.Server.Mdb/MdbObjectValueAdaptor.cs 2010-01-15 03:29:51.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/Mono.Debugging.Server.Mdb/MdbObjectValueAdaptor.cs 2010-06-14 21:46:07.000000000 +0200
@@ -25,6 +25,7 @@
// THE SOFTWARE.
using System;
+using System.Linq;
using System.Text;
using System.Collections;
using ST = System.Threading;
@@ -298,6 +299,15 @@
else
return null;
}
+
+ public override ValueReference GetCurrentException (EvaluationContext gctx)
+ {
+ MdbEvaluationContext ctx = (MdbEvaluationContext) gctx;
+ if (ctx.Exception != null)
+ return LiteralValueReference.CreateTargetObjectLiteral (ctx, ctx.Options.CurrentExceptionTag, ctx.Exception);
+ else
+ return null;
+ }
public override IEnumerable<ValueReference> GetParameters (EvaluationContext gctx)
@@ -452,10 +462,12 @@
}
- public override ValueReference GetIndexerReference (EvaluationContext gctx, object target, object index)
+ public override ValueReference GetIndexerReference (EvaluationContext gctx, object target, object[] indices)
{
MdbEvaluationContext ctx = (MdbEvaluationContext) gctx;
- return IndexerValueReference.CreateIndexerValueReference (ctx, (TargetObject) target, (TargetObject) index);
+ TargetObject[] indexArray = new TargetObject [indices.Length];
+ Array.Copy (indices, indexArray, indices.Length);
+ return IndexerValueReference.CreateIndexerValueReference (ctx, (TargetObject) target, indexArray);
}
@@ -525,7 +537,7 @@
return ObjectValue.CreateObject (null, path, "", "", flags | ObjectValueFlags.ReadOnly, null);
if (obj.HasAddress && obj.GetAddress (ctx.Thread).IsNull)
- return ObjectValue.CreateObject (null, path, obj.TypeName, ctx.Evaluator.ToExpression (null), flags, null);
+ return ObjectValue.CreateObject (null, path, obj.TypeName, ctx.Evaluator.ToExpression (ctx, null), flags, null);
switch (obj.Kind) {
@@ -556,7 +568,7 @@
}
else {
flags |= ObjectValueFlags.Primitive;
- return ObjectValue.CreateObject (source, path, obj.TypeName, ctx.Evaluator.ToExpression (null), flags, new ObjectValue [0]);
+ return ObjectValue.CreateObject (source, path, obj.TypeName, ctx.Evaluator.ToExpression (ctx, null), flags, new ObjectValue [0]);
}
default:
return ObjectValue.CreateFatalError (path.LastName, "Unknown value type: " + obj.Kind, flags);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-mdb-2.2.1/configure new/monodevelop-debugger-mdb-2.4/configure
--- old/monodevelop-debugger-mdb-2.2.1/configure 2010-02-01 22:47:43.000000000 +0100
+++ new/monodevelop-debugger-mdb-2.4/configure 2010-06-14 21:46:07.000000000 +0200
@@ -1,10 +1,10 @@
#!/bin/bash
-VERSION=2.2.1
+VERSION=2.4
PACKAGE=monodevelop-debugger-mdb
prefix=/usr/local
config=DEBUG
configurations=" RELEASE DEBUG"
-common_packages=" mono-addins;0.3 mono-debugger;2.0 monodevelop;2.2.1 monodevelop-core-addins;2.2.1"
+common_packages=" mono-addins;0.3 mono-debugger;2.0 monodevelop;2.4 monodevelop-core-addins;2.4"
usage ()
@@ -142,6 +142,7 @@
echo "VERSION=$VERSION" >> config.make
echo "PACKAGE=$PACKAGE" >> config.make
echo "CONFIG=$config" >> config.make
+echo "CSC=gmcs" >> config.make
echo
echo "$PACKAGE has been configured with "
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org