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 @@ -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();

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

@ -47,7 +47,7 @@ namespace DebuggerLibrary @@ -47,7 +47,7 @@ namespace DebuggerLibrary
public bool HasSymbols {
get {
return module.SymbolsLoaded;
return symMethod != null;
}
}
@ -412,9 +412,10 @@ namespace DebuggerLibrary @@ -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;
}

Loading…
Cancel
Save