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: In async mode, use target_stop to stop the inferior


On Fri, Mar 14, 2008 at 08:02:01AM +0000, Pedro Alves wrote:
> We do have a target method for this now.  Obviouly for every
> async target other than "target (extended-)async", this wasn't
> working.
> 
> Installed as obvious (after testing with a local gdbserver with
> the testsuite and manually).

Sorry, but I don't think this is right.  Or else it deserves a better
explanation :-)  async_remote_interrupt_twice didn't stop the target;
it was used to escape from a hung remote target (see interrupt_query).

You can trace the twisty path that got here through
sigint_remote_twice_token.  I'm not sure what INF_QUIT_REQ should do,
or if it's necessary - I find inferior_event_handler a bit weird.

-- 
Daniel Jacobowitz
CodeSourcery


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