| 667 | } |
| 668 | |
| 669 | AbstractProcessManager::InterpreterStatus |
| 670 | AbstractProcessManager::isInterpreterActive() const |
| 671 | { |
| 672 | remote_addr_t runtime_addr = findSymbol("_PyRuntime"); |
| 673 | if (runtime_addr) { |
| 674 | Structure<py_runtime_v> py_runtime(shared_from_this(), runtime_addr); |
| 675 | remote_addr_t p = py_runtime.getField(&py_runtime_v::o_finalizing); |
| 676 | return p == 0 ? InterpreterStatus::RUNNING : InterpreterStatus::FINALIZED; |
| 677 | } |
| 678 | |
| 679 | return InterpreterStatus::UNKNOWN; |
| 680 | } |
| 681 | |
| 682 | void |
| 683 | AbstractProcessManager::setPythonVersionFromDebugOffsets() |
nothing calls this directly
no outgoing calls
no test coverage detected