Skip to content

Commit a9563b0

Browse files
committed
Correctly add the entry breakpoint when connecting to a remote process
1 parent 7cef366 commit a9563b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/adapters/lldbadapter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ bool LldbAdapter::Connect(const std::string & server, std::uint32_t port)
166166
std::thread thread([&](){ EventListener(); });
167167
thread.detach();
168168

169+
if (Settings::Instance()->Get<bool>("debugger.stopAtEntryPoint"))
170+
AddBreakpoint(ModuleNameAndOffset(m_data->GetFile()->GetOriginalFilename(),
171+
m_data->GetEntryPoint() - m_data->GetStart()));
172+
169173
std::string url = fmt::format("connect://{}:{}", server, port);
170174
SBError error;
171175
SBListener listener;

0 commit comments

Comments
 (0)