[Lldb-commits] [lldb] Add new API in SBTarget for loading core from SBFile (PR #71769)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 9 09:37:38 PST 2023
================
@@ -24,7 +26,20 @@ class PostMortemProcess : public Process {
using Process::Process;
public:
+ PostMortemProcess(lldb::TargetSP target_sp, lldb::ListenerSP listener_sp,
+ lldb::FileSP file_sp)
+ : Process(target_sp, listener_sp), m_core_file(file_sp) {}
+
bool IsLiveDebugSession() const override { return false; }
+
+ FileSpec GetCoreFile() const override {
+ const FileSpec file_spec;
+ m_core_file->GetFileSpec(const_cast<FileSpec &>(file_spec));
+ return file_spec;
----------------
bulbazord wrote:
+1
https://github.com/llvm/llvm-project/pull/71769
More information about the lldb-commits
mailing list