Hello community,
here is the log from the commit of package monodevelop-debugger-gdb for openSUSE:Factory
checked in at Fri Nov 5 16:28:06 CET 2010.
--------
--- monodevelop-debugger-gdb/monodevelop-debugger-gdb.changes 2010-03-16 18:16:56.000000000 +0100
+++ monodevelop-debugger-gdb/monodevelop-debugger-gdb.changes 2010-10-29 19:12:51.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Oct 29 17:10:15 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-gdb-2.2.1.tar.bz2
New:
----
monodevelop-debugger-gdb-2.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ monodevelop-debugger-gdb.spec ++++++
--- /var/tmp/diff_new_pack.1NCmvV/_old 2010-11-05 16:26:18.000000000 +0100
+++ /var/tmp/diff_new_pack.1NCmvV/_new 2010-11-05 16:26:18.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package monodevelop-debugger-gdb (Version 2.2.1)
+# spec file for package monodevelop-debugger-gdb (Version 2.4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,7 +18,7 @@
Name: monodevelop-debugger-gdb
-Version: 2.2.1
+Version: 2.4
Release: 1
License: MIT/X11
AutoReqProv: on
++++++ monodevelop-debugger-gdb-2.2.1.tar.bz2 -> monodevelop-debugger-gdb-2.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-gdb-2.2.1/AssemblyInfo.cs new/monodevelop-debugger-gdb-2.4/AssemblyInfo.cs
--- old/monodevelop-debugger-gdb-2.2.1/AssemblyInfo.cs 2009-11-05 19:11:27.000000000 +0100
+++ new/monodevelop-debugger-gdb-2.4/AssemblyInfo.cs 2010-06-14 21:44:33.000000000 +0200
@@ -5,5 +5,5 @@
[assembly: AssemblyProduct ("MonoDevelop")]
[assembly: AssemblyTitle ("GDB support for Mono.Debugging")]
[assembly: AssemblyDescription ("GNU Debugger support for Mono.Debugging")]
-[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-gdb-2.2.1/GdbBacktrace.cs new/monodevelop-debugger-gdb-2.4/GdbBacktrace.cs
--- old/monodevelop-debugger-gdb-2.2.1/GdbBacktrace.cs 2010-02-02 00:35:57.000000000 +0100
+++ new/monodevelop-debugger-gdb-2.4/GdbBacktrace.cs 2010-06-14 21:44:33.000000000 +0200
@@ -128,6 +128,16 @@
return values.ToArray ();
}
+ public ExceptionInfo GetException (int frameIndex, EvaluationOptions options)
+ {
+ return null;
+ }
+
+ public ValidationResult ValidateExpression (int frameIndex, string expression, EvaluationOptions options)
+ {
+ return new ValidationResult (true, null);
+ }
+
public CompletionData GetExpressionCompletionData (int frameIndex, string exp)
{
SelectFrame (frameIndex);
@@ -216,6 +226,10 @@
ObjectValue val;
ObjectValueFlags flags = ObjectValueFlags.Variable;
+ // There can be 'public' et al children for C++ structures
+ if (typeName == null)
+ typeName = "none";
+
if (typeName.EndsWith ("]")) {
val = ObjectValue.CreateArray (this, new ObjectPath (vname), typeName, nchild, flags, null);
} else if (value == "{...}" || typeName.EndsWith ("*") || nchild > 0) {
@@ -227,12 +241,17 @@
return val;
}
- public ObjectValue[] GetChildren (ObjectPath path, int index, int count)
+ public ObjectValue[] GetChildren (ObjectPath path, int index, int count, EvaluationOptions options)
{
List<ObjectValue> children = new List<ObjectValue> ();
session.SelectThread (threadId);
GdbCommandResult res = session.RunCommand ("-var-list-children", "2", path.Join ("."));
ResultData cdata = res.GetObject ("children");
+
+ // The response may not contain the "children" list at all.
+ if (cdata == null)
+ return children.ToArray ();
+
if (index == -1) {
index = 0;
count = cdata.Count;
@@ -246,13 +265,21 @@
if (name.Length > 0 && char.IsNumber (name [0]))
name = "[" + name + "]";
- ObjectValue val = CreateObjectValue (name, child);
- children.Add (val);
+ // C++ structures may contain typeless children named
+ // "public", "private" and "protected".
+ if (child.GetValue("type") == null) {
+ ObjectPath childPath = new ObjectPath (child.GetValue ("name").Split ('.'));
+ ObjectValue[] subchildren = GetChildren (childPath, -1, -1, options);
+ children.AddRange(subchildren);
+ } else {
+ ObjectValue val = CreateObjectValue (name, child);
+ children.Add (val);
+ }
}
return children.ToArray ();
}
- public EvaluationResult SetValue (ObjectPath path, string value)
+ public EvaluationResult SetValue (ObjectPath path, string value, EvaluationOptions options)
{
session.SelectThread (threadId);
session.RunCommand ("-var-assign", path.Join ("."), value);
@@ -332,6 +359,15 @@
return buffer.GetLines (firstLine, firstLine + count - 1);
}
+
+ public object GetRawValue (ObjectPath path, EvaluationOptions options)
+ {
+ return null;
+ }
+
+ public void SetRawValue (ObjectPath path, object value, EvaluationOptions options)
+ {
+ }
}
class GdbDissassemblyBuffer: DissassemblyBuffer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-gdb-2.2.1/GdbSession.cs new/monodevelop-debugger-gdb-2.4/GdbSession.cs
--- old/monodevelop-debugger-gdb-2.2.1/GdbSession.cs 2009-11-12 16:30:20.000000000 +0100
+++ new/monodevelop-debugger-gdb-2.4/GdbSession.cs 2010-06-14 21:44:33.000000000 +0200
@@ -48,7 +48,7 @@
Process proc;
StreamReader sout;
StreamWriter sin;
- ProcessWrapper console;
+ IProcessAsyncOperation console;
GdbCommandResult lastResult;
bool running;
Thread thread;
@@ -88,7 +88,7 @@
DateTime tim = DateTime.Now;
while (!File.Exists (ttyfileDone)) {
System.Threading.Thread.Sleep (100);
- if ((DateTime.Now - tim).TotalSeconds > 4)
+ if ((DateTime.Now - tim).TotalSeconds > 10)
throw new InvalidOperationException ("Console could not be created.");
}
tty = File.ReadAllText (ttyfile).Trim (' ','\n');
@@ -175,14 +175,15 @@
sin = proc.StandardInput;
thread = new Thread (OutputInterpreter);
+ thread.Name = "GDB output interpeter";
thread.IsBackground = true;
thread.Start ();
}
public override void Dispose ()
{
- if (console != null && !console.HasExited) {
- console.Kill ();
+ if (console != null && !console.IsCompleted) {
+ console.Cancel ();
console = null;
}
@@ -322,7 +323,6 @@
if (bp.HitAction == HitAction.PrintExpression) {
GdbCommandResult res = RunCommand ("-data-evaluate-expression", Escape (bp.TraceExpression));
string val = res.GetValue ("value");
- OnDebuggerOutput (false, val + "\n");
NotifyBreakEventUpdate (handle, 0, val);
return false;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monodevelop-debugger-gdb-2.2.1/GdbSessionFactory.cs new/monodevelop-debugger-gdb-2.4/GdbSessionFactory.cs
--- old/monodevelop-debugger-gdb-2.2.1/GdbSessionFactory.cs 2009-11-20 18:33:54.000000000 +0100
+++ new/monodevelop-debugger-gdb-2.4/GdbSessionFactory.cs 2010-06-14 21:44:33.000000000 +0200
@@ -43,14 +43,6 @@
Dictionary