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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to