mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
* win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
|
||||||
|
|
||||||
|
|
||||||
2008-10-01 Tom Tromey <tromey@redhat.com>
|
2008-10-01 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* symtab.c (search_symbols): Update.
|
* symtab.c (search_symbols): Update.
|
||||||
|
@ -1550,6 +1550,12 @@ do_initial_win32_stuff (DWORD pid, int attaching)
|
|||||||
inf = add_inferior (pid);
|
inf = add_inferior (pid);
|
||||||
inf->attach_flag = attaching;
|
inf->attach_flag = attaching;
|
||||||
|
|
||||||
|
/* Make the new process the current inferior, so terminal handling
|
||||||
|
can rely on it. When attaching, we don't know about any thread
|
||||||
|
id here, but that's OK --- nothing should be referencing the
|
||||||
|
current thread until we report an event out of win32_wait. */
|
||||||
|
inferior_ptid = pid_to_ptid (pid);
|
||||||
|
|
||||||
terminal_init_inferior_with_pgrp (pid);
|
terminal_init_inferior_with_pgrp (pid);
|
||||||
target_terminal_inferior ();
|
target_terminal_inferior ();
|
||||||
|
|
||||||
|
@ -1550,6 +1550,12 @@ do_initial_win32_stuff (DWORD pid, int attaching)
|
|||||||
inf = add_inferior (pid);
|
inf = add_inferior (pid);
|
||||||
inf->attach_flag = attaching;
|
inf->attach_flag = attaching;
|
||||||
|
|
||||||
|
/* Make the new process the current inferior, so terminal handling
|
||||||
|
can rely on it. When attaching, we don't know about any thread
|
||||||
|
id here, but that's OK --- nothing should be referencing the
|
||||||
|
current thread until we report an event out of win32_wait. */
|
||||||
|
inferior_ptid = pid_to_ptid (pid);
|
||||||
|
|
||||||
terminal_init_inferior_with_pgrp (pid);
|
terminal_init_inferior_with_pgrp (pid);
|
||||||
target_terminal_inferior ();
|
target_terminal_inferior ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user