13
13
#include " DebugServer2/GDBRemote/DebugSessionImpl.h"
14
14
#include " DebugServer2/GDBRemote/PlatformSessionImpl.h"
15
15
#include " DebugServer2/GDBRemote/ProtocolHelpers.h"
16
- #include " DebugServer2/GDBRemote/SlaveSessionImpl .h"
16
+ #include " DebugServer2/GDBRemote/WorkerSessionImpl .h"
17
17
#include " DebugServer2/Host/Platform.h"
18
18
#include " DebugServer2/Host/QueueChannel.h"
19
19
#include " DebugServer2/Host/Socket.h"
@@ -47,7 +47,7 @@ using ds2::GDBRemote::DebugSessionImpl;
47
47
using ds2::GDBRemote::PlatformSessionImpl;
48
48
using ds2::GDBRemote::Session;
49
49
using ds2::GDBRemote::SessionDelegate;
50
- using ds2::GDBRemote::SlaveSessionImpl ;
50
+ using ds2::GDBRemote::WorkerSessionImpl ;
51
51
using ds2::Host::Platform;
52
52
using ds2::Host::QueueChannel;
53
53
using ds2::Host::Socket;
@@ -564,7 +564,7 @@ static int PlatformMain(int argc, char **argv) {
564
564
} while (true );
565
565
}
566
566
567
- static int SlaveMain (int argc, char **argv) {
567
+ static int WorkerMain (int argc, char **argv) {
568
568
DS2ASSERT (argv[1 ][0 ] == ' s' );
569
569
570
570
ds2::OptParse opts;
@@ -581,7 +581,7 @@ static int SlaveMain(int argc, char **argv) {
581
581
}
582
582
583
583
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.
585
585
close (0 );
586
586
close (1 );
587
587
@@ -590,7 +590,7 @@ static int SlaveMain(int argc, char **argv) {
590
590
591
591
std::unique_ptr<Socket> client = server->accept ();
592
592
593
- SlaveSessionImpl impl;
593
+ WorkerSessionImpl impl;
594
594
return RunDebugServer (client.get (), &impl);
595
595
} else {
596
596
// Write to the standard output to let our parent know
@@ -666,8 +666,8 @@ int main(int argc, char **argv) {
666
666
#if !defined(OS_WIN32)
667
667
case ' p' :
668
668
return PlatformMain (argc, argv);
669
- case ' s ' :
670
- return SlaveMain (argc, argv);
669
+ case ' w ' :
670
+ return WorkerMain (argc, argv);
671
671
#endif
672
672
case ' v' :
673
673
return VersionMain (argc, argv);
0 commit comments