Skip to content

Commit

Permalink
[lldb/Reproducers] Make DoConnectRemote connect to the replay server.
Browse files Browse the repository at this point in the history
All entry points into ProcessGDBRemote that connect to the debug server
should connect to the replay server instead during reproducer replay.
This patch adds the necessary logic for ConnectRemote, which is
accessible from the SB API. This fixes active replay for
TestRecognizeBreakpoint.py as described in D78588.
  • Loading branch information
JDevlieghere committed May 7, 2020
1 parent dc26dec commit 34a57dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Expand Up @@ -649,7 +649,10 @@ Status ProcessGDBRemote::DoConnectRemote(Stream *strm,
if (error.Fail())
return error;

error = ConnectToDebugserver(remote_url);
if (repro::Loader *loader = repro::Reproducer::Instance().GetLoader())
error = ConnectToReplayServer(loader);
else
error = ConnectToDebugserver(remote_url);

if (error.Fail())
return error;
Expand Down

0 comments on commit 34a57dc

Please sign in to comment.