[lldb-dev] Unreliable process attach on Linux

Florian Weimer via lldb-dev lldb-dev at lists.llvm.org
Mon Jan 7 04:22:20 PST 2019


* 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


More information about the lldb-dev mailing list