[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


================
@@ -196,9 +196,10 @@ void ProcessGDBRemote::Terminate() {
 
 lldb::ProcessSP ProcessGDBRemote::CreateInstance(
     lldb::TargetSP target_sp, ListenerSP listener_sp,
-    const FileSpec *crash_file_path, bool can_connect) {
+                                                 lldb::FileSP crash_file_sp,
+                                                 bool can_connect) {
   lldb::ProcessSP process_sp;
-  if (crash_file_path == nullptr)
+  if (crash_file_sp == nullptr)
----------------
bulbazord wrote:

You can also drop the `== nullptr` here too

https://github.com/llvm/llvm-project/pull/71769


More information about the lldb-commits mailing list