{
uintptr_t address = search_map_for_section(pid, "PyRuntime", "libpython");
if (address == 0) {
+ PyErr_Clear();
address = search_map_for_section(pid, "PyRuntime", "python");
}
return address;
}
uintptr_t runtime_start_address = get_py_runtime(pid);
+ if (runtime_start_address == 0) {
+ if (!PyErr_Occurred()) {
+ PyErr_SetString(
+ PyExc_RuntimeError, "Failed to get .PyRuntime address");
+ }
+ return NULL;
+ }
struct _Py_DebugOffsets local_debug_offsets;
if (read_offsets(pid, &runtime_start_address, &local_debug_offsets)) {
}
uintptr_t runtime_start_address = get_py_runtime(pid);
+ if (runtime_start_address == 0) {
+ if (!PyErr_Occurred()) {
+ PyErr_SetString(
+ PyExc_RuntimeError, "Failed to get .PyRuntime address");
+ }
+ return NULL;
+ }
struct _Py_DebugOffsets local_debug_offsets;
if (read_offsets(pid, &runtime_start_address, &local_debug_offsets)) {