[Lldb-commits] [lldb] [lldb] Add setting to specify (by name) which module's scripting resources can be auto-loaded (PR #188722)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 26 07:19:24 PDT 2026


Michael137 wrote:

> Based on the description:
> 
> * Let's clearly document the interaction between `target.load-script-from-symbol-file` and `target.auto-load-modules` in the help output. It sounds like the former takes priority if it's true, and otherwise we fall back to the latter.

Yup that's the correct interaction. I agree this is getting a bit subtle, so I'll document it.

> * I think the current name of the setting is currently somewhat misleading and makes it sound like it's about loading modules rather than their associated scripting resources. How about something like `auto-load-scripts-for-modules`.

Agreed

> * Similar to the feedback I gave @kastiglione in [his PR](https://github.com/llvm/llvm-project/pull/187792#pullrequestreview-3984808905), I think it would be more future proof to make it an enum rather than a boolean. Even better if both of you can share the same enum for that.

Are you suggesting we make `target.load-script-from-symbol-file` essentially per-module? So keep the global setting and then have a per-module settings too. And re-use its enumerator values `true`/`false`/`warn` for the auto-loadable scripts? I.e., what this patch does but change the dictionary to hold the `target.load-script-from-symbol-file` enum?

https://github.com/llvm/llvm-project/pull/188722


More information about the lldb-commits mailing list