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
path: root/extras
diff options
context:
space:
mode:
authorEko Wahyudin <eko.wahyudin@yahoo.co.id>2013-11-14 08:41:06 +0400
committerEko Wahyudin <eko.wahyudin@yahoo.co.id>2013-11-14 08:41:06 +0400
commit97bd04ebc3060913d8ffb2d3bae104ee62bb09c8 (patch)
treefca61a9b7b694ace58db8281003530c2aaa5230f /extras
parent8ffeb7c720011e8e633fede07b6e7d19f549799a (diff)
Update GdbSession.cs
fix CheckBreakpoint function. bp.TraceExpression sometime is empty or null, if that's happen, gdb will report an error System.InvalidOperationException: -data-evaluate-expression: Usage: -data-evaluate-expression expression.
Diffstat (limited to 'extras')
-rw-r--r--extras/MonoDevelop.Debugger.Gdb/GdbSession.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/MonoDevelop.Debugger.Gdb/GdbSession.cs b/extras/MonoDevelop.Debugger.Gdb/GdbSession.cs
index a149fabe91..e1bbeeec7b 100644
--- a/extras/MonoDevelop.Debugger.Gdb/GdbSession.cs
+++ b/extras/MonoDevelop.Debugger.Gdb/GdbSession.cs
@@ -345,7 +345,7 @@ namespace MonoDevelop.Debugger.Gdb
RunCommand ("-break-condition", handle.ToString (), "(" + bp.ConditionExpression + ") != " + val);
}
- if (bp.HitAction == HitAction.PrintExpression) {
+ if (!string.IsNullOrEmpty (bp.TraceExpression) && bp.HitAction == HitAction.PrintExpression) {
GdbCommandResult res = RunCommand ("-data-evaluate-expression", Escape (bp.TraceExpression));
string val = res.GetValue ("value");
NotifyBreakEventUpdate (binfo, 0, val);