MCPcopy Create free account
hub / github.com/bloomberg/pystack / findInterpreterStateFromSymbols

Method findInterpreterStateFromSymbols

src/pystack/_pystack/process.cpp:614–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614remote_addr_t
615AbstractProcessManager::findInterpreterStateFromSymbols() const
616{
617 LOG(INFO) << "Trying to find PyInterpreterState with symbols";
618
619 remote_addr_t pyruntime = findSymbol("_PyRuntime");
620 if (pyruntime) {
621 return findInterpreterStateFromPyRuntime(pyruntime);
622 }
623
624 // Older versions have a pointer to PyinterpreterState in "interp_head"
625 remote_addr_t interp_head = findSymbol("interp_head");
626 if (interp_head) {
627 return findInterpreterStateFromPointer(interp_head);
628 }
629 return 0;
630}
631
632std::vector<NativeFrame>
633AbstractProcessManager::unwindThread(pid_t tid) const

Callers

nothing calls this directly

Calls 1

LOGClass · 0.85

Tested by

no test coverage detected