diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-06-29 06:39:06 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-06-29 06:39:06 +0000 |
commit | 79acc9b3cc9ab00a2862e921acd22cb9a78d49c5 (patch) | |
tree | 7e402cf859050af808f864de05c6713a60524121 /gdb | |
parent | cc9841166628bb95b554ecd53a127273f3fe2bf9 (diff) | |
download | gdb-79acc9b3cc9ab00a2862e921acd22cb9a78d49c5.zip gdb-79acc9b3cc9ab00a2862e921acd22cb9a78d49c5.tar.gz gdb-79acc9b3cc9ab00a2862e921acd22cb9a78d49c5.tar.bz2 |
* infcmd.c (attach_command): Move call to target_terminal_inferior
behind loading symbol table.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infcmd.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8e74d8..d52c6c3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-06-29 Corinna Vinschen <vinschen@redhat.com> + + * infcmd.c (attach_command): Move call to target_terminal_inferior + behind loading symbol table. + 2004-06-28 Andrew Cagney <cagney@gnu.org> * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24 diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 46d57be..58875d3 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1788,9 +1788,6 @@ attach_command (char *args, int from_tty) based on what modes we are starting it with. */ target_terminal_init (); - /* Install inferior's terminal modes. */ - target_terminal_inferior (); - /* Set up execution context to know that we should return from wait_for_inferior as soon as the target reports a stop. */ init_wait_for_inferior (); @@ -1849,6 +1846,9 @@ attach_command (char *args, int from_tty) */ target_post_attach (PIDGET (inferior_ptid)); + /* Install inferior's terminal modes. */ + target_terminal_inferior (); + normal_stop (); if (deprecated_attach_hook) |