Skip to content

GH-91048: Don't attempt to run on FreeBSD #129189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Modules/_testexternalinspection.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ search_map_for_section(pid_t pid, const char* secname, const char* substr) {
return 0;
}

#endif

#ifdef __linux__
#elif defined(__linux__)
static uintptr_t
find_map_start_address(pid_t pid, char* result_filename, const char* map)
{
Expand Down Expand Up @@ -395,7 +393,12 @@ search_map_for_section(pid_t pid, const char* secname, const char* map)
}
return result;
}

#else
static uintptr_t
search_map_for_section(pid_t pid, const char* secname, const char* map)
{
return 0;
}
#endif

static uintptr_t
Expand Down Expand Up @@ -1265,7 +1268,6 @@ read_offsets(
_Py_DebugOffsets* debug_offsets
) {
*runtime_start_address = get_py_runtime(pid);
assert(runtime_start_address != NULL);
if ((void*)*runtime_start_address == NULL) {
if (!PyErr_Occurred()) {
PyErr_SetString(
Expand Down
Loading