@@ -82,7 +82,7 @@ DAP::DAP(Log *log, const ReplMode default_repl_mode,
8282 std::vector<std::string> pre_init_commands, Transport &transport)
8383 : log(log), transport(transport), broadcaster(" lldb-dap" ),
8484 exception_breakpoints (), focus_tid(LLDB_INVALID_THREAD_ID),
85- is_attach (false ), stop_at_entry (false ),
85+ stop_at_entry (false ), is_attach (false ),
8686 restarting_process_id(LLDB_INVALID_PROCESS_ID),
8787 configuration_done_sent(false ), waiting_for_run_in_terminal(false ),
8888 progress_event_reporter(
@@ -668,7 +668,7 @@ lldb::SBTarget DAP::CreateTarget(lldb::SBError &error) {
668668 // creation. We also use target triple and platform from the launch
669669 // configuration, if given, since in some cases ELF file doesn't contain
670670 // enough information to determine correct arch and platform (or ELF can be
671- // omitted at all), so it is good to leave the user an apportunity to specify
671+ // omitted at all), so it is good to leave the user an opportunity to specify
672672 // those. Any of those three can be left empty.
673673 auto target = this ->debugger .CreateTarget (
674674 configuration.program .value_or (" " ).data (),
@@ -677,12 +677,6 @@ lldb::SBTarget DAP::CreateTarget(lldb::SBError &error) {
677677 true , // Add dependent modules.
678678 error);
679679
680- if (error.Fail ()) {
681- // Update message if there was an error.
682- error.SetErrorStringWithFormat (
683- " Could not create a target for a program: %s." , error.GetCString ());
684- }
685-
686680 return target;
687681}
688682
0 commit comments