[cfe-dev] speed up debugging a static analysis checker?
George Karpenkov via cfe-dev
cfe-dev at lists.llvm.org
Wed Oct 3 14:15:17 PDT 2018
> On Oct 3, 2018, at 2:13 PM, Lou Wynn <lewisurn at gmail.com> wrote:
> On 10/03/2018 11:49 AM, George Karpenkov wrote:
>> That’s weird.
>> It takes about 1-2 seconds for me.
> Wow, this is awesome! What's your machine's configuration and system?
>>> (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.
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev