* gnu-nat.c (gnu_attach): Push target before fetching the list of
threads.
This commit is contained in:
parent
44e36d8a7b
commit
a9ab742235
|
@ -1,3 +1,8 @@
|
||||||
|
2008-09-09 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* gnu-nat.c (gnu_attach): Push target before fetching the list of
|
||||||
|
threads.
|
||||||
|
|
||||||
2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* valops.c (value_cast_structs): Return NULL for failure.
|
* valops.c (value_cast_structs): Return NULL for failure.
|
||||||
|
|
|
@ -2170,12 +2170,14 @@ gnu_attach (char *args, int from_tty)
|
||||||
inf_debug (inf, "attaching to pid: %d", pid);
|
inf_debug (inf, "attaching to pid: %d", pid);
|
||||||
|
|
||||||
inf_attach (inf, pid);
|
inf_attach (inf, pid);
|
||||||
|
|
||||||
|
push_target (&gnu_ops);
|
||||||
|
|
||||||
inf_update_procs (inf);
|
inf_update_procs (inf);
|
||||||
|
|
||||||
inferior_ptid = ptid_build (pid, 0, inf_pick_first_thread ());
|
inferior_ptid = ptid_build (pid, 0, inf_pick_first_thread ());
|
||||||
|
|
||||||
attach_flag = 1;
|
attach_flag = 1;
|
||||||
push_target (&gnu_ops);
|
|
||||||
|
|
||||||
/* We have to initialize the terminal settings now, since the code
|
/* We have to initialize the terminal settings now, since the code
|
||||||
below might try to restore them. */
|
below might try to restore them. */
|
||||||
|
|
Loading…
Reference in New Issue