[Lldb-commits] [lldb] [lldb]Make `list` command work with headers when possible. (PR #139002)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu May 15 23:26:23 PDT 2025


================
@@ -1113,17 +1123,25 @@ class CommandObjectSourceList : public CommandObjectParsed {
             ModuleSpec module_spec(module_file_spec);
             matching_modules.Clear();
             target.GetImages().FindModules(module_spec, matching_modules);
-            num_matches += matching_modules.ResolveSymbolContextForFilePath(
-                filename, 0, check_inlines,
+            FileSpec file_spec(filename);
+            re_compute_check_inlines(file_spec);
----------------
labath wrote:

What's up why the lambda? Is there any reason to not compute this directly on line 1105? AFAICT, nothing between here and there affects the computed result.

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


More information about the lldb-commits mailing list