cmtice wrote: > > If DIL is not allowed to recognize any operators except period, arrow, and > > parentheses, it seems to me that it won't be any more powerful than the > > current 'frame variable' implementation, in which case what is the point of > > having it at all? (As a matter of fact, it would be less powerful, since > > 'frame variable' also recognizes square brackets and star as valid > > operators and treats them accordingly). > > At the same time, I understand the concern about wanting to be able to > > parse synthetic variable names, which can contain arbitrary operator-like > > symbols. So I have a tentative proposal: How about insisting that synthetic > > variable names need to be surrounded by special delimiters, such as > > backquote or slash? Or having some other way of marking them as special? > > These are unfortunately visible to the user, and they will have to type them > in `frame var` to access the child. So we can't make them something ugly.
I don't want to make them ugly, but I *do* think we need to ask the user to distinguish them in some way. Otherwise I don't see how we can make DIL any more powerful than the current 'frame variable'. https://github.com/llvm/llvm-project/pull/123521 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits