diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index d8c2599b244..bb035d065ec 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1585,7 +1585,8 @@ do_initial_windows_stuff (struct target_ops *ops, DWORD pid, int attaching) clear_proceed_status (); init_wait_for_inferior (); - inf = add_inferior (pid); + inf = current_inferior (); + inferior_appeared (inf, pid); inf->attach_flag = attaching; /* Make the new process the current inferior, so terminal handling |