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:
authorDavid Karlaš <david.karlas@xamarin.com>2015-01-16 17:51:31 +0300
committerDavid Karlaš <david.karlas@xamarin.com>2015-01-16 17:51:31 +0300
commit8fe107c24908058cbaf2b415d170a48bc5764b0c (patch)
tree2085020545e2bff546918beb7b863980ffb5a042 /main/src/addins/MonoDevelop.Debugger
parent67c0d380d1e8ee9c04207392f5355a1533fc0d1f (diff)
[Debugger] Fixed regression from af2ecb3305... Debugger displayed stack frame in external code even when "Debug project code only" is enabled
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger')
-rw-r--r--main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/Initializer.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/Initializer.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/Initializer.cs
index bf7644f869..33555fc930 100644
--- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/Initializer.cs
+++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/Initializer.cs
@@ -64,7 +64,7 @@ namespace MonoDevelop.Debugger
void OnFrameChanged (object s, EventArgs a)
{
- if (disassemblyDoc != null && IdeApp.Workbench.ActiveDocument == disassemblyDoc && DebuggingService.IsFeatureSupported (DebuggerFeatures.Disassembly))
+ if (disassemblyDoc != null && DebuggingService.IsFeatureSupported (DebuggerFeatures.Disassembly))
disassemblyView.Update ();
var frame = DebuggingService.CurrentFrame;
@@ -121,9 +121,12 @@ namespace MonoDevelop.Debugger
Backtrace bt = DebuggingService.CurrentCallStack;
if (bt != null) {
- for (int n=0; n<bt.FrameCount; n++) {
+ for (int n = 0; n < bt.FrameCount; n++) {
StackFrame sf = bt.GetFrame (n);
- if (sf.SourceLocation.Line != -1) {
+ if (!sf.IsExternalCode &&
+ sf.SourceLocation.Line != -1 &&
+ !string.IsNullOrEmpty (sf.SourceLocation.FileName) &&
+ (DebuggingService.CurrentSessionSupportsFeature (DebuggerFeatures.Disassembly) || System.IO.File.Exists (sf.SourceLocation.FileName))) {
if (n != DebuggingService.CurrentFrameIndex)
DebuggingService.CurrentFrameIndex = n;
break;