This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Unbreak 'target async'.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 23 Feb 2008 13:46:53 -0500
- Subject: Re: [RFA] Unbreak 'target async'.
- References: <200802232130.56913.vladimir@codesourcery.com>
On Sat, Feb 23, 2008 at 09:30:56PM +0300, Vladimir Prus wrote:
>
> Presently, if I connect to gdbserver using 'target async'
> and then to 'continue', then continue never finishes.
> What happens is that serial_async first calls scb->ops->async,
> and only then sets scb->async_handler.
> However, ser_base_async calls reschedule which calls serial_is_async,
> which checks scb->async_handler. Since it's not set yet,
> async mode is never enabled.
>
> The below patch allows me to do 'continue' successfully.
> I did not run the testsuite, since it's apparent that
> this patch cannot break "target async" more that it's broken now.
> OK?
OK.
--
Daniel Jacobowitz
CodeSourcery