summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBProcess.cpp
diff options
context:
space:
mode:
authorMed Ismail Bennani <ismail@bennani.ma>2023-06-13 11:21:08 -0700
committerMed Ismail Bennani <ismail@bennani.ma>2023-06-13 13:44:51 -0700
commitec05cf50daece35e0b01d3761e64ae54efe8a78e (patch)
treeedf9d5d8fc288eb5061bac411261d34581fd360a /lldb/source/API/SBProcess.cpp
parent7f3d2cc26b47568a0ac93327ab579ed1f0e21546 (diff)
[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 <ismail@bennani.ma>
Diffstat (limited to 'lldb/source/API/SBProcess.cpp')
-rw-r--r--lldb/source/API/SBProcess.cpp1
1 files changed, 1 insertions, 0 deletions
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);