aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorDenis Pilat <denis.pilat@st.com>2007-04-18 07:21:33 +0000
committerDenis Pilat <denis.pilat@st.com>2007-04-18 07:21:33 +0000
commitb79599ff1ea3f61a10af0c620e129fd52d3c2376 (patch)
tree00d596e49f31b47828a5a73c682ee172a4807f1a /gdb/infcmd.c
parent152d792f471303cf361c7c5dd5bba2d5dcc3e727 (diff)
downloadfsf-binutils-gdb-b79599ff1ea3f61a10af0c620e129fd52d3c2376.zip
fsf-binutils-gdb-b79599ff1ea3f61a10af0c620e129fd52d3c2376.tar.gz
fsf-binutils-gdb-b79599ff1ea3f61a10af0c620e129fd52d3c2376.tar.bz2
2007-04-18 Denis Pilat <denis.pilat@st.com>
* infcmd.c (post_create_inferior): Start with a call to target_terminal_ours().
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index a1a64c0..0f1e960 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