[Lldb-commits] [lldb] [lldb][lldb-dap] Implement jump to cursor (PR #130503)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 11 05:41:57 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.
----------------
vogelsgesang wrote:
```suggestion
/// Clears all line entries and reset the generated ids.
```
https://github.com/llvm/llvm-project/pull/130503
More information about the lldb-commits
mailing list