mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
GH-91048: Don't attempt to run on FreeBSD (#129189)
This commit is contained in:
parent
188598851d
commit
67d804b494
1 changed files with 7 additions and 5 deletions
|
@ -263,9 +263,7 @@ search_map_for_section(pid_t pid, const char* secname, const char* substr) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#elif defined(__linux__)
|
||||||
|
|
||||||
#ifdef __linux__
|
|
||||||
static uintptr_t
|
static uintptr_t
|
||||||
find_map_start_address(pid_t pid, char* result_filename, const char* map)
|
find_map_start_address(pid_t pid, char* result_filename, const char* map)
|
||||||
{
|
{
|
||||||
|
@ -395,7 +393,12 @@ exit:
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static uintptr_t
|
||||||
|
search_map_for_section(pid_t pid, const char* secname, const char* map)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static uintptr_t
|
static uintptr_t
|
||||||
|
@ -1265,7 +1268,6 @@ read_offsets(
|
||||||
_Py_DebugOffsets* debug_offsets
|
_Py_DebugOffsets* debug_offsets
|
||||||
) {
|
) {
|
||||||
*runtime_start_address = get_py_runtime(pid);
|
*runtime_start_address = get_py_runtime(pid);
|
||||||
assert(runtime_start_address != NULL);
|
|
||||||
if ((void*)*runtime_start_address == NULL) {
|
if ((void*)*runtime_start_address == NULL) {
|
||||||
if (!PyErr_Occurred()) {
|
if (!PyErr_Occurred()) {
|
||||||
PyErr_SetString(
|
PyErr_SetString(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue