mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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'.
This commit is contained in:
12
gdb/target.c
12
gdb/target.c
@@ -301,6 +301,18 @@ target_create_inferior (char *exec_file, char *args,
|
||||
"could not find a target to create inferior");
|
||||
}
|
||||
|
||||
void
|
||||
target_terminal_inferior (void)
|
||||
{
|
||||
/* A background resume (``run&'') should leave GDB in control of the
|
||||
terminal. */
|
||||
if (target_is_async_p () && !sync_execution)
|
||||
return;
|
||||
|
||||
/* If GDB is resuming the inferior in the foreground, install
|
||||
inferior's terminal modes. */
|
||||
(*current_target.to_terminal_inferior) ();
|
||||
}
|
||||
|
||||
static int
|
||||
nomemory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||
|
||||
Reference in New Issue
Block a user