<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks! <BR> <BR>A newbie question then: how to trigger LLDB_CONFIGURATION_DEBUG when I run cmake? I am sure that I built debug version, but packet timeout is still 1 to me.<BR> <BR>(gdb) p m_packet_timeout<br>$1 = 1<br><br> <BR><div>> Subject: Re: [lldb-dev] How to debug LLDB server?<br>> From: gclayton@apple.com<br>> Date: Wed, 7 Oct 2015 11:04:45 -0700<br>> CC: lldb-dev@lists.llvm.org<br>> To: eugenebi@hotmail.com<br>> <br>> Most calls for lldb-server should use an instance variable GDBRemoteCommunication::m_packet_timeout which you could then modify. But this timeout you are talking about is the time that the expression can take when running. I would just bump these up temporarily while you are debugging to avoid the timeouts. Just don't check it in.<br>> <br>> So for GDB Remote packets, we already bump the timeout up in the GDBRemoteCommunication constructor:<br>> <br>> #ifdef LLDB_CONFIGURATION_DEBUG<br>> m_packet_timeout (1000),<br>> #else<br>> m_packet_timeout (1),<br>> #endif<br>> <br>> <br>> Anything else is probably expression timeouts and you will need to manually bump those up in order to debug, or you could do the same thing as the GDB Remote in InferiorCallPOSIX.cpp:<br>> <br>> #ifdef LLDB_CONFIGURATION_DEBUG<br>> options.SetTimeoutUsec(50000000);<br>> #else<br>> options.SetTimeoutUsec(500000);<br>> #endif<br>> <br>> <br>> > On Oct 7, 2015, at 10:33 AM, Eugene Birukov via lldb-dev <lldb-dev@lists.llvm.org> wrote:<br>> > <br>> > Hello,<br>> > <br>> > I am trying to see what is going inside LLDB server 3.7.0 but there are a lot of timeouts scattered everywhere. Say, InferiorCallPOSIX.cpp:74 sets hard-coded timeout to 500,000us, etc. These timeouts fire if I spend any time on breakpoint inside server and make debugging experience miserable. Is there any way to turn them all off?<br>> > <br>> > BTW, I am using LLDB as a C++ API, not as standalone program, but I have debugger attached to it and can alter its memory state.<br>> > <br>> > Thanks,<br>> > Eugene<br>> > <br>> > _______________________________________________<br>> > lldb-dev mailing list<br>> > lldb-dev@lists.llvm.org<br>> > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br>> <br></div> </div></body>
</html>