Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ namespace lldb_private {

ProcessSP ProcessWindows::CreateInstance(lldb::TargetSP target_sp,
lldb::ListenerSP listener_sp,
const FileSpec *,
const FileSpec *crash_file_path,
bool can_connect) {
if (crash_file_path)
return nullptr; // Cannot create a Windows process from a crash_file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nullptr; // Cannot create a Windows process from a crash_file
return nullptr; // Cannot create a Windows process from a crash_file.

return ProcessSP(new ProcessWindows(target_sp, listener_sp));
}

Expand Down
8 changes: 3 additions & 5 deletions lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nullptr; // Cannot create a GDBRemote process from a crash_file
return nullptr; // Cannot create a GDBRemote process from a crash_file.

return lldb::ProcessSP(new ProcessGDBRemote(target_sp, listener_sp));
}

void ProcessGDBRemote::DumpPluginHistory(Stream &s) {
Expand Down
Loading