From: Vladimir Prus Date: Sat, 28 Nov 2009 17:00:55 +0000 (+0000) Subject: * target.c (target_terminal_inferior): Use target_can_async_p, not X-Git-Tag: cgen-snapshot-20091201~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba7f6c64f30d433b41319a1135e97f82c8febc9e;p=thirdparty%2Fbinutils-gdb.git * target.c (target_terminal_inferior): Use target_can_async_p, not target_is_async_p. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a23f2bae692..b6c81d1093d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-11-28 Vladimir Prus + + * target.c (target_terminal_inferior): Use target_can_async_p, not + target_is_async_p. + 2009-11-27 Ulrich Weigand * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints diff --git a/gdb/target.c b/gdb/target.c index a6f08c848eb..cd1614b8824 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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