[Lldb-commits] [lldb] [llvm] [lldb][lldb-dap] Implement jump to cursor (PR #130503)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 20 03:22:22 PDT 2025


================
@@ -79,6 +79,27 @@ enum class PacketStatus {
 
 enum class ReplMode { Variable = 0, Command, Auto };
 
+class Gotos {
+public:
+  /// \return the line_entry corresponding with \p id
+  ///
+  /// If \p id is invalid std::nullopt is returned.
+  std::optional<lldb::SBLineEntry> GetLineEntry(uint64_t id) const;
+
+  /// Insert a new \p line_entry.
+  /// \return id assigned to this line_entry.
+  uint64_t InsertLineEntry(lldb::SBLineEntry line_entry);
+
+  /// Clears all line entries and reset the generated ids.
+  void Clear();
----------------
da-viper wrote:

Yes, It is used here. 

https://github.com/llvm/llvm-project/blob/a2a2cb85e5f17a7468970c6014947918d9805e80/lldb/tools/lldb-dap/DAP.h#L378-L379



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


More information about the lldb-commits mailing list