Skip to content

Commit

Permalink
Only stop at the entry point for an ELF with no loader when we are de…
Browse files Browse the repository at this point in the history
…bugging the executable itself (not a shared library)
  • Loading branch information
xusheng6 committed Apr 11, 2023
1 parent e6f8cb1 commit 5b46f60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/adapters/lldbadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ bool LldbAdapter::ExecuteWithArgs(const std::string& path, const std::string& ar
AddBreakpoint(ModuleNameAndOffset(configs.inputFile, m_entryPoint - m_start));

std::string launchCommand = "process launch";
if (Settings::Instance()->Get<bool>("debugger.stopAtSystemEntryPoint") || m_isElFWithoutDynamicLoader)
if (Settings::Instance()->Get<bool>("debugger.stopAtSystemEntryPoint") ||
(m_isElFWithoutDynamicLoader && (path == configs.inputFile)))
launchCommand += " --stop-at-entry";

if (configs.requestTerminalEmulator)
Expand Down

0 comments on commit 5b46f60

Please sign in to comment.