This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe221dab07815: [lldb-vscode] Use `expression` command for
completion (authored by kastiglione).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145437/new/
https://reviews.llvm.org/D145437
Files:
lldb/tools/lldb-vscode/lldb-vscode.cpp
Index: lldb/tools/lldb-vscode/lldb-vscode.cpp
===================================================================
--- lldb/tools/lldb-vscode/lldb-vscode.cpp
+++ lldb/tools/lldb-vscode/lldb-vscode.cpp
@@ -1065,8 +1065,9 @@
text = text.substr(1);
actual_column--;
} else {
- text = "p " + text;
- actual_column += 2;
+ char command[] = "expression -- ";
+ text = command + text;
+ actual_column += strlen(command);
}
lldb::SBStringList matches;
lldb::SBStringList descriptions;
Index: lldb/tools/lldb-vscode/lldb-vscode.cpp
===================================================================
--- lldb/tools/lldb-vscode/lldb-vscode.cpp
+++ lldb/tools/lldb-vscode/lldb-vscode.cpp
@@ -1065,8 +1065,9 @@
text = text.substr(1);
actual_column--;
} else {
- text = "p " + text;
- actual_column += 2;
+ char command[] = "expression -- ";
+ text = command + text;
+ actual_column += strlen(command);
}
lldb::SBStringList matches;
lldb::SBStringList descriptions;
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits