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: [WIP/FYI] fix remaining problems with target async


>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:

Pedro> FYI, here's a work in progress patch I've been working
Pedro> on, in order to fix remaining target-async problems revealed
Pedro> by the testsuite, in order to start working on teaching gdb
Pedro> about run control ptsets.

I didn't want this to go uncommented-on.  It seems like a very good
direction to me.  I didn't read the patch in great detail though.

Pedro> I've been going back and forth with the design of the patch, as
Pedro> I've more than once followed a patch that looked great, only to
Pedro> trip on a nasty issue late on.

Sometimes I find it helpful to hear about the failed attempts as well;
if just to learn more about GDB.

Pedro>  - force the sync and async command code to the same
Pedro>    paths, by installing continuations in sync mode
Pedro>    as well (and forcing a synchronous wait and running
Pedro>    continuations when that's done).

This seems like a good cleanup regardless of the rest of the patch.

Pedro>  - makes the command list code in cli/cli-script.c
Pedro>    async aware, but turning into storing state in
Pedro>    a state object, rather than relying on C's
Pedro>    stack and nesting, and, installing a continuation
Pedro>    and going back to the event loop waiting for an
Pedro>    execution command to finish, whenever a command
Pedro>    sets the target running in the foreground.

This is interesting.  Does this open the door to making breakpoint
commands containing "finish" work?  I don't actually know how this part
of GDB works...

Tom


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