aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-05-05 14:45:51 +0000
committerStan Shebs <shebs@codesourcery.com>1999-05-05 14:45:51 +0000
commitb83266a0e1813b7f4891d5d6b0ed6b7302a3fe98 (patch)
treec59a94fbe917e0839329b872139198c2a7a05ab1 /gdb/gnu-nat.c
parente1346c8d0969dad58ddc13c9c741cb0f4e6345a5 (diff)
downloadfsf-binutils-gdb-b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98.zip
fsf-binutils-gdb-b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98.tar.gz
fsf-binutils-gdb-b83266a0e1813b7f4891d5d6b0ed6b7302a3fe98.tar.bz2
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 795f8a8..85dc669 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);