* target.c (target_terminal_inferior): Use target_can_async_p, not
target_is_async_p.
This commit is contained in:
parent
3c65b80078
commit
ba7f6c64f3
2 changed files with 9 additions and 2 deletions
|
@ -481,8 +481,10 @@ void
|
|||
target_terminal_inferior (void)
|
||||
{
|
||||
/* A background resume (``run&'') should leave GDB in control of the
|
||||
terminal. */
|
||||
if (target_is_async_p () && !sync_execution)
|
||||
terminal. Use target_can_async_p, not target_is_async_p, since at
|
||||
this point the target is not async yet. However, if sync_execution
|
||||
is not set, we know it will become async prior to resume. */
|
||||
if (target_can_async_p () && !sync_execution)
|
||||
return;
|
||||
|
||||
/* If GDB is resuming the inferior in the foreground, install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue