[cfe-dev] speed up debugging a static analysis checker?
Lou Wynn via cfe-dev
cfe-dev at lists.llvm.org
Wed Oct 3 14:25:01 PDT 2018
>>>> (lldb) b SimpleStreamChecker.cpp:132
>>>> Breakpoint 1: no locations (pending).
>>>> WARNING: Unable to resolve breakpoint to any actual locations.
>>> This is also weird. If lldb replies with “Unable to resolve
>>> breakpoint”, it means that, well, it could not resolve the breakpoint.
>>> And yet it does stop at a breakpoint (much) later on.
>> My build uses dynamically linked libraries, and the symbol is not
>> available when the related library isn't loaded.
> I think that is your problem.
Any idea on how to fix it?
>> When I use the default build which uses statically linked libraries,
>> it becomes much slower, with a huge clang program that is 1.5G
>> without a machine target.
> Is 1.5GB a problem though?
> In my experience “gold” linker on Linux should be performant enough.
I'm not sure. But it takes more than 30s to hit the breakpoint with the
statically linked library.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev