================
@@ -210,11 +210,9 @@ void ProcessGDBRemote::Terminate() {
lldb::ProcessSP ProcessGDBRemote::CreateInstance(
lldb::TargetSP target_sp, ListenerSP listener_sp,
const FileSpec *crash_file_path, bool can_connect) {
- lldb::ProcessSP process_sp;
- if (crash_file_path == nullptr)
- process_sp = std::shared_ptr<ProcessGDBRemote>(
- new ProcessGDBRemote(target_sp, listener_sp));
- return process_sp;
+ if (crash_file_path)
+ return nullptr; // Cannot create a GDBRemote process from a crash_file
----------------
JDevlieghere wrote:
```suggestion
return nullptr; // Cannot create a GDBRemote process from a crash_file.
```
https://github.com/llvm/llvm-project/pull/170471
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits