[Lldb-commits] [PATCH] D121631: Introduce new symbol on-demand for debug info

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 15 17:09:10 PDT 2022


clayborg added a comment.

I am personally not a fan of the preloading of symbols settings being on by default as there are large delays in debug session startup on linux due to the lack of any kind of viable acceleration tables. I understand that delays can occur later in the debug session as a result, but those are usually tied to global lookups from expressions and many people using IDEs will set file and line breakpoints and just use the variable display which doesn't need everything preloaded many times. We are also looking into trying to track who is doing these global lookups and trying to ensure that the global lookup is needed. One call to fine all "iterator" types is an example of a really bad global lookup that can cause tons of types to be pulled in.

I do think that possibly enabling this feature by changing the preload seeting to allow "preload", "on-demand" or "lazily" could easily work here.

I also agree that we should provide documentation for this feature, or possibly print out a blurb of text to the console that explains the rules if this feature gets enabled.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121631/new/

https://reviews.llvm.org/D121631



More information about the lldb-commits mailing list