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

Method GetJmpState

IDEHelper/WinDebugger.cpp:12032–12050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12030}
12031
12032int WinDebugger::GetJmpState(int stackFrameIdx)
12033{
12034 AutoCrit autoCrit(mDebugManager->mCritSect);
12035
12036 if (!FixCallStackIdx(stackFrameIdx))
12037 return -1;
12038
12039 int actualStackFrameIdx = BF_MAX(0, stackFrameIdx);
12040 UpdateCallStackMethod(actualStackFrameIdx);
12041 WdStackFrame* wdStackFrame = mCallStack[actualStackFrameIdx];
12042
12043 addr_target pcAddress = (addr_target)wdStackFrame->mRegisters.GetPC();
12044
12045 CPUInst inst;
12046 if (!mDebugTarget->DecodeInstruction(pcAddress, &inst))
12047 return -1;
12048
12049 return inst.GetJmpState(wdStackFrame->mRegisters.mIntRegs.efl);
12050}
12051
12052intptr WinDebugger::GetStackFrameCalleeAddr(int stackFrameIdx)
12053{

Callers

nothing calls this directly

Calls 2

DecodeInstructionMethod · 0.80
GetPCMethod · 0.45

Tested by

no test coverage detected