From b22d5e29c61fa4f9e416d76239215f38f9234a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Mon, 22 Aug 2005 18:45:59 +0000 Subject: [PATCH] Compiler generated functions (like default constructor) are handled like external functions. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@413 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Debugger/Internal/ManagedCallback.cs | 2 +- .../Debugger.Core/Project/Src/Threads/Function.cs | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs index f59d5e18bc..76a8750449 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs @@ -111,7 +111,7 @@ namespace DebuggerLibrary { EnterCallback("StepComplete (" + reason.ToString() + ")", pThread); - if (callingThread.LastFunction.Module.SymbolsLoaded == false) { + if (!callingThread.LastFunction.HasSymbols) { debugger.TraceMessage(" - leaving code without symbols"); ExitCallback_Continue(); diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs index 94f9fec2bb..dd54825138 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs @@ -47,7 +47,7 @@ namespace DebuggerLibrary public bool HasSymbols { get { - return module.SymbolsLoaded; + return symMethod != null; } } @@ -412,9 +412,10 @@ namespace DebuggerLibrary public VariableCollection GetLocalVariables() { VariableCollection localVariables = new VariableCollection(); - ISymbolScope symRootScope; - symRootScope = symMethod.RootScope; - AddScopeToVariableCollection(symRootScope, ref localVariables); + if (symMethod != null) { + ISymbolScope symRootScope = symMethod.RootScope; + AddScopeToVariableCollection(symRootScope, ref localVariables); + } return localVariables; }