[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:36 PST 2023
================
@@ -61,13 +62,15 @@ void ProcessMachCore::Terminate() {
lldb::ProcessSP ProcessMachCore::CreateInstance(lldb::TargetSP target_sp,
ListenerSP listener_sp,
- const FileSpec *crash_file,
+ lldb::FileSP crash_file_sp,
bool can_connect) {
lldb::ProcessSP process_sp;
- if (crash_file && !can_connect) {
+ if (crash_file_sp && !can_connect) {
const size_t header_size = sizeof(llvm::MachO::mach_header);
- auto data_sp = FileSystem::Instance().CreateDataBuffer(
- crash_file->GetPath(), header_size, 0);
+ const FileSpec file_spec;
+ crash_file_sp->GetFileSpec(const_cast<FileSpec &>(file_spec));
----------------
bulbazord wrote:
Also here
https://github.com/llvm/llvm-project/pull/71769
More information about the lldb-commits
mailing list