From ec05cf50daece35e0b01d3761e64ae54efe8a78e Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Tue, 13 Jun 2023 11:21:08 -0700 Subject: [lldb] Improve corefile saving ergonomics This patch improves the way the user can save the process state into a corefile by adding completion handler that would provide tab completion for the corefile path and also resolves the corefile path to expand relative path. Differential Revision: https://reviews.llvm.org/D152842 Signed-off-by: Med Ismail Bennani --- lldb/source/API/SBProcess.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/API/SBProcess.cpp') diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index a5491c6fa699..6050628a2e1f 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -1183,6 +1183,7 @@ lldb::SBError SBProcess::SaveCore(const char *file_name, } FileSpec core_file(file_name); + FileSystem::Instance().Resolve(core_file); error.ref() = PluginManager::SaveCore(process_sp, core_file, core_style, flavor); -- cgit v1.2.3