Skip to content

Commit cca28c5

Browse files
committed
Small fixes
1 parent f01d8d3 commit cca28c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/remote_debugging.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,11 +928,10 @@ send_exec_to_proc_handle(proc_handle_t *handle, int tid, const char *debugger_sc
928928
int
929929
_PySysRemoteDebug_SendExec(int pid, int tid, const char *debugger_script_path)
930930
{
931-
#if (!defined(__linux__) && !defined(__APPLE__) && !defined(MS_WINDOWS)) || (defined(__linux__) && !HAVE_PROCESS_VM_READV)
931+
#ifndef Py_SUPPORTS_REMOTE_DEBUG
932932
PyErr_SetString(PyExc_RuntimeError, "Remote debugging is not supported on this platform");
933933
return -1;
934-
#endif
935-
934+
#else
936935
proc_handle_t handle;
937936
if (init_proc_handle(&handle, pid) < 0) {
938937
return -1;
@@ -941,4 +940,5 @@ _PySysRemoteDebug_SendExec(int pid, int tid, const char *debugger_script_path)
941940
int rc = send_exec_to_proc_handle(&handle, tid, debugger_script_path);
942941
cleanup_proc_handle(&handle);
943942
return rc;
943+
#endif
944944
}

0 commit comments

Comments
 (0)