This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Flip the interpreter to synchronously wait for commands finishing, in command lists and similars


On Fri, Sep 2, 2011 at 10:07 AM, Pedro Alves <pedro@codesourcery.com> wrote:
>
> With this patch, synchronous execution commands (the regular step, next,
> etc., that is, those with an & suffixed) with a target running
> in async mode work correctly (AFAICT) with all current use cases. ? ?We
> can consider flipping on async on by default, and then incrementally
> convert specific paths to state machines, for new use cases, rather than
> delaying flipping on async on by default until _everything_ is converted
> into a state-machine.

I was hoping this might fix, (but doesn't seem to) the following case:

./gdb/gdb -ex 'set target-async on' -ex 'attach 7625' -ex 'continue'
./gdb/gdb -ex 'set target-async on' -ex 'attach 7625' -ex 'continue&'

both these commands exhibit:
Continuing.

Program received signal SIGSTOP, Stopped (signal).
.....
(gdb)

thus changing the behavior of '-ex continue' should we turn
target-async on by default.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]