[lldb-dev] interesting note on build times: configure/make vs. cmake/ninja
Ed Maste
emaste at freebsd.org
Mon Mar 10 13:15:38 PDT 2014
On 5 February 2014 18:43, Todd Fiala <tfiala at google.com> wrote:
>
> Running tests via the 'ninja check-lldb' takes a whopping 25.5 minutes.
Hi Todd,
Do you see problems w/ terminating LLDB while the debuggee is stopped
(at a breakpoint, say)? I observed problems on FreeBSD with both
"detach" and "quit", described in
http://llvm.org/bugs/show_bug.cgi?id=18894. In both cases the debugee
ended up aborting due to a SIGTRAP, and in the case of quitting, LLDB
took 3-4 seconds extra to exit.
I fixed the detach case in r201724 -- prior to that change breakpoints
were being left in the debuggee after detach.
The quit case seems to be related, and it seems Process*::DoDestroy is
somewhat incomplete (and has been since its introduction). I still
need to figure out exactly what's needed, but for now I just added a
call in ProcessPOSIX::DoDetach() to detach the ptrace monitor:
+ error = m_monitor->Detach(GetID());
and LLDB exits immediately after a quit, I have no more debugees
aborting, and the ninja check-lldb runs in about 3 or 4 minutes
instead of the ~half hour it was before.
-Ed
More information about the lldb-dev
mailing list