[llvm-dev] Slow debugger starts of LLVM tools
David Greene via llvm-dev
llvm-dev at lists.llvm.org
Wed Jan 9 14:07:12 PST 2019
David Jones via llvm-dev <llvm-dev at lists.llvm.org> writes:
> GDB likes to load all symbols from shared libraries up front. And on
> x86_64 your main executable is really just another shared library.
Yes, but does gdb reload everything on each execution? Every time I
execute "run" I see the same slow behavior. Loading the symbols for
small tools like llvm-rc takes hardly any time at all (i.e. "file
llvm-rc" is almost instantaneous). But executing it causes gdb to chew
up CPU cycles for a while. Every time.
More information about the llvm-dev