[lldb-dev] Process::SyncIOHandler(), everyone please try out the following patch

Pavel Labath labath at google.com
Tue Apr 7 08:19:47 PDT 2015


I've just noticed I'm consistently getting double prompts after
detaching from a process during remote debugging. The one-line patch
doesn't help that, but the second patch seems to make the problem go
away.

Hope that helps,
pl

On 7 April 2015 at 10:37, Pavel Labath <labath at google.com> wrote:
> Hi all,
>
> I am testing the changes on linux. I don't this helps much, but this
> is what I have found out:
>
> no patch:
> The prompt seems to be coming out at the right place always.
>
> one-liner:
> The prompt comes out at the right place, but this does not prove
> anything, as the baseline was ok as well. The test suite result is
> unchanged.
>
> second patch:
> The prompt comes out at the right place, but this does not prove
> anything, as the baseline was ok as well. The test suite result is
> unchanged.
>
> Interestingly, I do remember the prompt coming out at the wrong place
> in the past, but I can't seem to reproduce it now...
>
> cheers,
> pl
>
>
>
> On 7 April 2015 at 02:30, Ed Maste <emaste at freebsd.org> wrote:
>> On 6 April 2015 at 17:39, Greg Clayton <gclayton at apple.com> wrote:
>>> So do you still have problems with the prompt coming out at the wrong time or getting interspersed on FreeBSD with top of tree? It is just made worse by this patch?
>>
>> Yes, I get the (lldb) prompt coming out at the wrong time (in relation
>> to the source listing or target I/O) on top of tree. It's at best
>> unchanged with the (one-liner) patch -- because it seems to vary with
>> the overall system load it's hard to say for certain. But I get
>> interspersed prompts on top of tree with or without the patch.
>>
>> The change that's been a reliable workaround for me is a usleep(100)
>> at the end of Process:PrivateResume(). I'll see if that's still the
>> case and also try the other patch you posted tomorrow.
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev



More information about the lldb-dev mailing list