[lldb-dev] Unreliable process attach on Linux
Pavel Labath via lldb-dev
lldb-dev at lists.llvm.org
Mon Jan 7 04:30:37 PST 2019
On 07/01/2019 13:22, Florian Weimer wrote:
> * Pavel Labath:
>
>> Thanks. I think this is what I suspected. The server is extremely slow
>> in responding to the qHostInfo packet. This timeout for this was
>> recently increased to 10 seconds, but it looks like 7.0 still has the
>> default (1 second) timeout.
>>
>> If you don't want to recompile or update, you should be able to work
>> around this by increasing the default timeout with the following
>> command "settings set plugin.process.gdb-remote.packet-timeout 10".
>
> I see, that helps.
>
> There's a host name in the qHostInfo response? Where's the code that
> determines the host name? On the other end? I wonder if it performs a
> DNS lookup. That could explain the delay.
>
> Thanks,
> Florian
>
Yes, there's a dns lookup being done on the other end. TBH, I'm not
really sure what's it being used for. Maybe we should try deleting the
hostname field from the qHostInfo response (or just put an IP address
there).
More information about the lldb-dev
mailing list