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

Method GetStackPointer

core/adapters/lldbadapter.cpp:1282–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280
1281
1282uint64_t LldbAdapter::GetStackPointer()
1283{
1284 SBThread thread = m_process.GetSelectedThread();
1285 if (!thread.IsValid())
1286 return 0;
1287
1288 uint64_t sp = 0;
1289 size_t frameCount = thread.GetNumFrames();
1290 if (frameCount > 0)
1291 {
1292 SBFrame frame = thread.GetFrameAtIndex(0);
1293 if (frame.IsValid())
1294 sp = frame.GetSP();
1295 }
1296
1297 return sp;
1298}
1299
1300
1301bool LldbAdapter::SupportFeature(DebugAdapterCapacity feature)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected