diff options
author | Pedro Alves <pedro@codesourcery.com> | 2008-09-09 12:08:11 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2008-09-09 12:08:11 +0000 |
commit | e28152e0e6d63a427d418ac891dddba38299fd15 (patch) | |
tree | d9039b682a98a9125d404345467062f73e916d97 /gdb/gnu-nat.c | |
parent | 50581ac6c0ecc21168f424b586a8121df5abe8df (diff) | |
download | gdb-e28152e0e6d63a427d418ac891dddba38299fd15.tar.gz |
* gnu-nat.c (gnu_attach): Push target before fetching the list of
threads.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 3c99eb502da..9c99580246d 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -2170,12 +2170,14 @@ gnu_attach (char *args, int from_tty) inf_debug (inf, "attaching to pid: %d", pid); inf_attach (inf, pid); + + push_target (&gnu_ops); + inf_update_procs (inf); inferior_ptid = ptid_build (pid, 0, inf_pick_first_thread ()); attach_flag = 1; - push_target (&gnu_ops); /* We have to initialize the terminal settings now, since the code below might try to restore them. */ |