================ @@ -380,12 +380,19 @@ llvm::json::Value DAP::CreateTopLevelScopes() { return llvm::json::Value(std::move(scopes)); } -ExpressionContext DAP::DetectExpressionContext(lldb::SBFrame &frame, - std::string &text) { +static std::string FirstTerm(llvm::StringRef input) { + if (input.empty()) + return ""; + const auto terms = llvm::getToken(input, " \t\n\v\f\r.[-("); ---------------- ashgti wrote:
I actually removed the extra characters and left it as whitespace. There are lldb commands like `p/t` or `x/4xw` that can include non alpha numeric characters and users can add aliases, so I think using `ResolveCommand` is the most correct thing to do here. https://github.com/llvm/llvm-project/pull/78005 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits