Skip to content

Commit 0dd7797

Browse files
committed
Fix a remote read to use the correct type
This field in the structure is defined as an `unsigned long`, not as a `pid_t`.
1 parent 5b4cb00 commit 0dd7797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/remote_debugging.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ send_exec_to_proc_handle(proc_handle_t *handle, int tid, const char *debugger_sc
801801
}
802802

803803
uintptr_t thread_state_addr;
804-
pid_t this_tid = 0;
804+
unsigned long this_tid = 0;
805805

806806
if (tid != 0) {
807807
if (0 != read_memory(
@@ -822,7 +822,7 @@ send_exec_to_proc_handle(proc_handle_t *handle, int tid, const char *debugger_sc
822822
return -1;
823823
}
824824

825-
if (this_tid == tid) {
825+
if (this_tid == (unsigned long)tid) {
826826
break;
827827
}
828828

0 commit comments

Comments
 (0)