From: Denis Pilat Date: Wed, 18 Apr 2007 07:21:33 +0000 (+0000) Subject: 2007-04-18 Denis Pilat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b79599ff1ea3f61a10af0c620e129fd52d3c2376;p=binutils-gdb.git 2007-04-18 Denis Pilat * infcmd.c (post_create_inferior): Start with a call to target_terminal_ours(). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dff52025ecd..b849a4932e3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-04-18 Denis Pilat + + * infcmd.c (post_create_inferior): Start with a call to + target_terminal_ours(). + 2007-04-17 Maciej W. Rozycki * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some diff --git a/gdb/infcmd.c b/gdb/infcmd.c index a1a64c0572c..0f1e960f0bd 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -406,6 +406,9 @@ tty_command (char *file, int from_tty) void post_create_inferior (struct target_ops *target, int from_tty) { + /* Be sure we own the terminal in case write operations are performed. */ + target_terminal_ours (); + /* If the target hasn't taken care of this already, do it now. Targets which need to access registers during to_open, to_create_inferior, or to_attach should do it earlier; but many