[Lldb-commits] [lldb] [llvm] [lldb][SBAPI] Add (SBTarget/SBModule)::FindSymbolContexts (PR #223808)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 15 14:02:00 PDT 2026
================
@@ -308,6 +298,13 @@ Makes programs 10x faster by doing Special New Thing.
return values that were actually in a different set. Both methods are now fixed
so that they are limited to the registers within the register set. Scripts
using these methods may have to be updated as a result.
+* New `SBTarget::FindSymbolContexts` and `SBModule::FindSymbolContexts`
+ return an `SBSymbolContextList` for every match of a given source location.
+* A new `SBLineEntry(SBFileSpec, line, column)` constructor lets
+ scripts build the location argument directly.
+* `SBLineEntry::GetLine()` and `SBLineEntry::GetColumn()` now return
+ `LLDB_INVALID_LINE_NUMBER` / `LLDB_INVALID_COLUMN_NUMBER` when unset;
+ scripts checking `entry.GetLine() == 0` should use `entry.IsValid()`.
----------------
bulbazord wrote:
Oh I totally missed where you _did_ actually change the APIs. My bad.
My comment still stands though. This change will break existing scripts that (incorrectly) check the validity of the SBLineEntry.
@jimingham What do you think about this one? If I were designing SBLineEntry today I would do what Ebuka did, but this API has been this way for a long time now....
https://github.com/llvm/llvm-project/pull/223808
More information about the lldb-commits
mailing list