Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit25d2819

Browse files
committed
GH-91048: Don't attempt to run on FreeBSD
1 parent1885988 commit25d2819

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎Modules/_testexternalinspection.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,7 @@ search_map_for_section(pid_t pid, const char* secname, const char* substr) {
263263
return0;
264264
}
265265

266-
#endif
267-
268-
#ifdef__linux__
266+
#elif defined(__linux__)
269267
staticuintptr_t
270268
find_map_start_address(pid_tpid,char*result_filename,constchar*map)
271269
{
@@ -395,7 +393,12 @@ search_map_for_section(pid_t pid, const char* secname, const char* map)
395393
}
396394
returnresult;
397395
}
398-
396+
#else
397+
staticuintptr_t
398+
search_map_for_section(pid_tpid,constchar*secname,constchar*map)
399+
{
400+
return0;
401+
}
399402
#endif
400403

401404
staticuintptr_t
@@ -1265,7 +1268,6 @@ read_offsets(
12651268
_Py_DebugOffsets*debug_offsets
12661269
) {
12671270
*runtime_start_address=get_py_runtime(pid);
1268-
assert(runtime_start_address!=NULL);
12691271
if ((void*)*runtime_start_address==NULL) {
12701272
if (!PyErr_Occurred()) {
12711273
PyErr_SetString(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp