[Lldb-commits] [lldb] [lldb-dap] Improving 'variables' hover requests. (PR #146773)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 3 08:22:31 PDT 2025


da-viper wrote:

> the request will be expression="char*foo", which won't evaluate correctly in lldb.

 We could search starting from the back for the first occurrence of either "&" or "*".  I think  `llvm::StringRef::find_last_of()` does this.  

We should limit this to just the hover context because we can deference a variable in the watch window. 

We also need test for it. 

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


More information about the lldb-commits mailing list