summaryrefslogtreecommitdiff
path: root/overlay/mgdb/gdb/winnt-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/mgdb/gdb/winnt-nat.c')
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index 15e8131..e326578 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -551,7 +551,7 @@ static void winnt_prepare (struct target_ops * t, pid_t pid, int pfd, int attach
while (1) {
do {
ret = __dbg_event_acquire(pfd,event);
- } while ((ret < 0) && (errno == EAGAIN));
+ } while ((ret < 0) && (errno == EINTR));
if (ret < 0)
winnt_perror("failed to acquire preliminary debug event",pid);