Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <jeff@xamarin.com>2012-07-19 21:48:44 +0400
committerJeffrey Stedfast <jeff@xamarin.com>2012-07-19 21:48:44 +0400
commit722822a81e4df537db8bb55c40d3e7a2a49a4ec2 (patch)
treeb0a823ab585bb1ef6b81a2cf4f0156a3034cba47 /extras/MonoDevelop.Debugger.Gdb
parent7be2388ef15fea48f19e663a6f12d110a0637a7f (diff)
[Debugger::Gdb] Updated for HasChildren change
Diffstat (limited to 'extras/MonoDevelop.Debugger.Gdb')
-rw-r--r--extras/MonoDevelop.Debugger.Gdb/GdbBacktrace.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/extras/MonoDevelop.Debugger.Gdb/GdbBacktrace.cs b/extras/MonoDevelop.Debugger.Gdb/GdbBacktrace.cs
index 57ab19e918..92fff095b0 100644
--- a/extras/MonoDevelop.Debugger.Gdb/GdbBacktrace.cs
+++ b/extras/MonoDevelop.Debugger.Gdb/GdbBacktrace.cs
@@ -1,9 +1,10 @@
// GdbBacktrace.cs
//
-// Author:
-// Lluis Sanchez Gual <lluis@novell.com>
+// Authors: Lluis Sanchez Gual <lluis@novell.com>
+// Jeffrey Stedfast <jeff@xamarin.com>
//
// Copyright (c) 2008 Novell, Inc (http://www.novell.com)
+// Copyright (c) 2012 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@@ -33,8 +34,6 @@ using Mono.Debugging.Backend;
namespace MonoDevelop.Debugger.Gdb
{
-
-
class GdbBacktrace: IBacktrace, IObjectValueSource
{
int fcount;
@@ -241,6 +240,14 @@ namespace MonoDevelop.Debugger.Gdb
return val;
}
+ public bool HasChildren (ObjectPath path, EvaluationOptions options)
+ {
+ session.SelectThread (threadId);
+ GdbCommandResult res = session.RunCommand ("-var-info-num-children", path.Join ("."));
+
+ return res.GetInt ("numchild") > 0;
+ }
+
public ObjectValue[] GetChildren (ObjectPath path, int index, int count, EvaluationOptions options)
{
List<ObjectValue> children = new List<ObjectValue> ();