summaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>1999-05-05 14:45:51 +0000
committerStan Shebs <shebs@apple.com>1999-05-05 14:45:51 +0000
commit049f10d7dc48a42b664a15149f83d5c3db004ef7 (patch)
tree8dd4e1a383afddd41a30a65adf68142dfd45ec72 /gdb/gnu-nat.c
parent1942e83ab587eb3c0c54e57e9d1c9e11c17ac07e (diff)
downloadgdb-049f10d7dc48a42b664a15149f83d5c3db004ef7.tar.gz
import gdb-19990504 snapshot
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 795f8a85510..85dc669cba3 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -2004,6 +2004,10 @@ gnu_attach (args, from_tty)
attach_flag = 1;
push_target (&gnu_ops);
+ /* We have to initialize the terminal settings now, since the code
+ below might try to restore them. */
+ target_terminal_init ();
+
inf_update_signal_thread (inf);
inf_set_traced (inf, inf->want_signals);