diff options
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r-- | gdb/win32-nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index ecd036e..3ea0966 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1542,6 +1542,8 @@ win32_wait (ptid_t ptid, struct target_waitstatus *ourstatus) { int pid = PIDGET (ptid); + target_terminal_ours (); + /* We loop when we get a non-standard exception rather than return with a SPURIOUS because resume can try and step or modify things, which needs a current_thread->h. But some of these exceptions mark @@ -1587,7 +1589,7 @@ do_initial_win32_stuff (DWORD pid) clear_proceed_status (); init_wait_for_inferior (); - target_terminal_init (); + terminal_init_inferior_with_pgrp (pid); target_terminal_inferior (); while (1) |