1313#include " DebugServer2/GDBRemote/DebugSessionImpl.h"
1414#include " DebugServer2/GDBRemote/PlatformSessionImpl.h"
1515#include " DebugServer2/GDBRemote/ProtocolHelpers.h"
16- #include " DebugServer2/GDBRemote/SlaveSessionImpl .h"
16+ #include " DebugServer2/GDBRemote/WorkerSessionImpl .h"
1717#include " DebugServer2/Host/Platform.h"
1818#include " DebugServer2/Host/QueueChannel.h"
1919#include " DebugServer2/Host/Socket.h"
@@ -47,7 +47,7 @@ using ds2::GDBRemote::DebugSessionImpl;
4747using ds2::GDBRemote::PlatformSessionImpl;
4848using ds2::GDBRemote::Session;
4949using ds2::GDBRemote::SessionDelegate;
50- using ds2::GDBRemote::SlaveSessionImpl ;
50+ using ds2::GDBRemote::WorkerSessionImpl ;
5151using ds2::Host::Platform;
5252using ds2::Host::QueueChannel;
5353using ds2::Host::Socket;
@@ -564,7 +564,7 @@ static int PlatformMain(int argc, char **argv) {
564564 } while (true );
565565}
566566
567- static int SlaveMain (int argc, char **argv) {
567+ static int WorkerMain (int argc, char **argv) {
568568 DS2ASSERT (argv[1 ][0 ] == ' s' );
569569
570570 ds2::OptParse opts;
@@ -581,7 +581,7 @@ static int SlaveMain(int argc, char **argv) {
581581 }
582582
583583 if (pid == 0 ) {
584- // When in slave mode, output is suppressed but for standard error.
584+ // When in worker mode, output is suppressed but for standard error.
585585 close (0 );
586586 close (1 );
587587
@@ -590,7 +590,7 @@ static int SlaveMain(int argc, char **argv) {
590590
591591 std::unique_ptr<Socket> client = server->accept ();
592592
593- SlaveSessionImpl impl;
593+ WorkerSessionImpl impl;
594594 return RunDebugServer (client.get (), &impl);
595595 } else {
596596 // Write to the standard output to let our parent know
@@ -666,8 +666,8 @@ int main(int argc, char **argv) {
666666#if !defined(OS_WIN32)
667667 case ' p' :
668668 return PlatformMain (argc, argv);
669- case ' s ' :
670- return SlaveMain (argc, argv);
669+ case ' w ' :
670+ return WorkerMain (argc, argv);
671671#endif
672672 case ' v' :
673673 return VersionMain (argc, argv);
0 commit comments