Browse Source

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
shortcuts
David Srbecký 20 years ago
parent
commit
b22d5e29c6
  1. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs
  2. 9
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs

@ -111,7 +111,7 @@ namespace DebuggerLibrary
{ {
EnterCallback("StepComplete (" + reason.ToString() + ")", pThread); EnterCallback("StepComplete (" + reason.ToString() + ")", pThread);
if (callingThread.LastFunction.Module.SymbolsLoaded == false) { if (!callingThread.LastFunction.HasSymbols) {
debugger.TraceMessage(" - leaving code without symbols"); debugger.TraceMessage(" - leaving code without symbols");
ExitCallback_Continue(); ExitCallback_Continue();

9
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs

@ -47,7 +47,7 @@ namespace DebuggerLibrary
public bool HasSymbols { public bool HasSymbols {
get { get {
return module.SymbolsLoaded; return symMethod != null;
} }
} }
@ -412,9 +412,10 @@ namespace DebuggerLibrary
public VariableCollection GetLocalVariables() public VariableCollection GetLocalVariables()
{ {
VariableCollection localVariables = new VariableCollection(); VariableCollection localVariables = new VariableCollection();
ISymbolScope symRootScope; if (symMethod != null) {
symRootScope = symMethod.RootScope; ISymbolScope symRootScope = symMethod.RootScope;
AddScopeToVariableCollection(symRootScope, ref localVariables); AddScopeToVariableCollection(symRootScope, ref localVariables);
}
return localVariables; return localVariables;
} }

Loading…
Cancel
Save