MCPcopy Create free account
hub / github.com/Vector35/debugger / GetInstructionOffset

Method GetInstructionOffset

core/adapters/lldbadapter.cpp:1263–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261
1262
1263uint64_t LldbAdapter::GetInstructionOffset()
1264{
1265 SBThread thread = m_process.GetSelectedThread();
1266 if (!thread.IsValid())
1267 return 0;
1268
1269 uint64_t pc = 0;
1270 size_t frameCount = thread.GetNumFrames();
1271 if (frameCount > 0)
1272 {
1273 SBFrame frame = thread.GetFrameAtIndex(0);
1274 if (frame.IsValid())
1275 pc = frame.GetPC();
1276 }
1277
1278 return pc;
1279}
1280
1281
1282uint64_t LldbAdapter::GetStackPointer()

Callers 1

IPMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected