aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-21 16:00:14 +0000
committerPedro Alves <palves@redhat.com>2009-05-21 16:00:14 +0000
commitd9d2d8b6c09d51c13c6c26a7bfa6bc1bbddf574a (patch)
tree4ca9a31ba1b55d69dfdc0821ebd47a4b4d22dd6d /gdb/remote.c
parent47608cb1acc3880b330b8d3a8ad6aa29218046d9 (diff)
downloadgdb-d9d2d8b6c09d51c13c6c26a7bfa6bc1bbddf574a.zip
gdb-d9d2d8b6c09d51c13c6c26a7bfa6bc1bbddf574a.tar.gz
gdb-d9d2d8b6c09d51c13c6c26a7bfa6bc1bbddf574a.tar.bz2
* linux-nat.c (linux_nat_terminal_inferior)
(linux_nat_terminal_ours): Don't check sync_execution. * remote.c (remote_terminal_inferior, remote_terminal_ours): Don't check sync_execution. Update comments. * target.c (target_terminal_inferior): New. * target.h (target_terminal_inferior): Delete macro, and declare as function. * event-top.c (async_disable_stdin): Make idempotent. Don't give the target the terminal here. * inflow.c (terminal_ours_1): Don't return early without setting `terminal_is_ours'.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 199120d..8a1a0d4 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4078,19 +4078,12 @@ remote_terminal_inferior (void)
/* Nothing to do. */
return;
- /* FIXME: cagney/1999-09-27: Shouldn't need to test for
- sync_execution here. This function should only be called when
- GDB is resuming the inferior in the forground. A background
- resume (``run&'') should leave GDB in control of the terminal and
- consequently should not call this code. */
- if (!sync_execution)
- return;
- /* FIXME: cagney/1999-09-27: Closely related to the above. Make
- calls target_terminal_*() idenpotent. The event-loop GDB talking
- to an asynchronous target with a synchronous command calls this
- function from both event-top.c and infrun.c/infcmd.c. Once GDB
- stops trying to transfer the terminal to the target when it
- shouldn't this guard can go away. */
+ /* FIXME: cagney/1999-09-27: Make calls to target_terminal_*()
+ idempotent. The event-loop GDB talking to an asynchronous target
+ with a synchronous command calls this function from both
+ event-top.c and infrun.c/infcmd.c. Once GDB stops trying to
+ transfer the terminal to the target when it shouldn't this guard
+ can go away. */
if (!remote_async_terminal_ours_p)
return;
delete_file_handler (input_fd);
@@ -4109,9 +4102,6 @@ remote_terminal_ours (void)
return;
/* See FIXME in remote_terminal_inferior. */
- if (!sync_execution)
- return;
- /* See FIXME in remote_terminal_inferior. */
if (remote_async_terminal_ours_p)
return;
cleanup_sigint_signal_handler (NULL);