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

Method findInterpreterStateFromPointer

src/pystack/_pystack/process.cpp:341–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341remote_addr_t
342AbstractProcessManager::findInterpreterStateFromPointer(remote_addr_t pointer) const
343{
344 LOG(DEBUG) << "Trying to determine PyInterpreterState directly from address " << std::hex
345 << std::showbase << pointer;
346 remote_addr_t interp_state;
347 copyObjectFromProcess(pointer, &interp_state);
348 if (!isValidInterpreterState(interp_state)) {
349 LOG(INFO) << "Failed to determine PyInterpreterState directly from address " << std::hex
350 << std::showbase << pointer;
351 return (remote_addr_t)NULL;
352 }
353 return interp_state;
354}
355
356remote_addr_t
357AbstractProcessManager::findInterpreterStateFromPyRuntime(remote_addr_t runtime_addr) const

Callers

nothing calls this directly

Calls 1

LOGClass · 0.85

Tested by

no test coverage detected