diff options
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 4 |
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); |