MCPcopy Create free account
hub / github.com/beefytech/Beef / GetStackMethodOwner

Method GetStackMethodOwner

IDEHelper/WinDebugger.cpp:12076–12097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12074}
12075
12076String WinDebugger::GetStackMethodOwner(int stackFrameIdx, int& language)
12077{
12078 AutoCrit autoCrit(mDebugManager->mCritSect);
12079
12080 if (!FixCallStackIdx(stackFrameIdx))
12081 return "";
12082
12083 int actualStackFrameIdx = BF_MAX(0, stackFrameIdx);
12084 if (actualStackFrameIdx >= (int)mCallStack.size())
12085 actualStackFrameIdx = 0;
12086 UpdateCallStackMethod(actualStackFrameIdx);
12087 WdStackFrame* wdStackFrame = mCallStack[actualStackFrameIdx];
12088
12089 if (wdStackFrame->mSubProgram == NULL)
12090 return "";
12091 auto parentType = wdStackFrame->mSubProgram->GetParent();
12092 if (parentType == NULL)
12093 return "";
12094 parentType = parentType->GetPrimaryType();
12095 language = (int)parentType->GetLanguage();
12096 return parentType->ToString();
12097}
12098
12099String WinDebugger::FindCodeAddresses(const StringImpl& fileName, int line, int column, bool allowAutoResolve)
12100{

Calls 5

GetParentMethod · 0.80
GetPrimaryTypeMethod · 0.80
sizeMethod · 0.45
GetLanguageMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected