Skip to content

[cleanup] replace offensive terminology #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ filegroup(
"Headers/DebugServer2/GDBRemote/Session.h",
"Headers/DebugServer2/GDBRemote/SessionBase.h",
"Headers/DebugServer2/GDBRemote/SessionDelegate.h",
"Headers/DebugServer2/GDBRemote/SlaveSessionImpl.h",
"Headers/DebugServer2/GDBRemote/Types.h",
"Headers/DebugServer2/Host/Channel.h",
"Headers/DebugServer2/Host/File.h",
Expand Down Expand Up @@ -339,7 +338,6 @@ filegroup(
"Sources/GDBRemote/ProtocolInterpreter.cpp",
"Sources/GDBRemote/Session.cpp",
"Sources/GDBRemote/SessionBase.cpp",
"Sources/GDBRemote/SlaveSessionImpl.cpp",
"Sources/GDBRemote/Structures.cpp",
"Sources/Host/Common/Channel.cpp",
"Sources/Host/Common/Platform.cpp",
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ add_executable(ds2
Sources/GDBRemote/ProtocolInterpreter.cpp
Sources/GDBRemote/Session.cpp
Sources/GDBRemote/SessionBase.cpp
Sources/GDBRemote/SlaveSessionImpl.cpp
Sources/GDBRemote/Structures.cpp

Sources/Host/Common/Channel.cpp
Expand Down
23 changes: 0 additions & 23 deletions Headers/DebugServer2/GDBRemote/SlaveSessionImpl.h

This file was deleted.

2 changes: 1 addition & 1 deletion Sources/GDBRemote/PlatformSessionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ErrorCode PlatformSessionImplBase::onLaunchDebugServer(Session &session,
StringCollection args;

ps.setExecutable(Platform::GetSelfExecutablePath());
args.push_back("slave");
args.push_back("server");
if (GetLogLevel() == kLogLevelDebug) {
args.push_back("--debug");
} else if (GetLogLevel() == kLogLevelPacket) {
Expand Down
18 changes: 0 additions & 18 deletions Sources/GDBRemote/SlaveSessionImpl.cpp

This file was deleted.

10 changes: 5 additions & 5 deletions Sources/Host/POSIX/ProcessSpawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ namespace Host {

static bool open_terminal(int fds[2]) {
#if defined(OS_FREEBSD) || defined(OS_DARWIN)
char *slave;
char *device_name;
#else
char slave[PATH_MAX];
char device_name[PATH_MAX];
#endif

fds[0] = ::posix_openpt(O_RDWR | O_NOCTTY);
Expand All @@ -50,13 +50,13 @@ static bool open_terminal(int fds[2]) {
goto error_fd0;

#if defined(OS_FREEBSD) || defined(OS_DARWIN)
slave = ptsname(fds[0]);
device_name = ptsname(fds[0]);
#else
if (::ptsname_r(fds[0], slave, sizeof(slave)) != 0)
if (::ptsname_r(fds[0], device_name, sizeof(device_name)) != 0)
goto error_fd0;
#endif

fds[1] = ::open(slave, O_RDWR);
fds[1] = ::open(device_name, O_RDWR);
if (fds[1] == -1)
goto error_fd0;

Expand Down
10 changes: 4 additions & 6 deletions Sources/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "DebugServer2/GDBRemote/DebugSessionImpl.h"
#include "DebugServer2/GDBRemote/PlatformSessionImpl.h"
#include "DebugServer2/GDBRemote/ProtocolHelpers.h"
#include "DebugServer2/GDBRemote/SlaveSessionImpl.h"
#include "DebugServer2/Host/Platform.h"
#include "DebugServer2/Host/QueueChannel.h"
#include "DebugServer2/Host/Socket.h"
Expand Down Expand Up @@ -47,7 +46,6 @@ using ds2::GDBRemote::DebugSessionImpl;
using ds2::GDBRemote::PlatformSessionImpl;
using ds2::GDBRemote::Session;
using ds2::GDBRemote::SessionDelegate;
using ds2::GDBRemote::SlaveSessionImpl;
using ds2::Host::Platform;
using ds2::Host::QueueChannel;
using ds2::Host::Socket;
Expand Down Expand Up @@ -564,7 +562,7 @@ static int PlatformMain(int argc, char **argv) {
} while (true);
}

static int SlaveMain(int argc, char **argv) {
static int ServerMain(int argc, char **argv) {
DS2ASSERT(argv[1][0] == 's');

ds2::OptParse opts;
Expand All @@ -581,7 +579,7 @@ static int SlaveMain(int argc, char **argv) {
}

if (pid == 0) {
// When in slave mode, output is suppressed but for standard error.
// When in server mode, output is suppressed but for standard error.
close(0);
close(1);

Expand All @@ -590,7 +588,7 @@ static int SlaveMain(int argc, char **argv) {

std::unique_ptr<Socket> client = server->accept();

SlaveSessionImpl impl;
DebugSessionImpl impl;
return RunDebugServer(client.get(), &impl);
} else {
// Write to the standard output to let our parent know
Expand Down Expand Up @@ -667,7 +665,7 @@ int main(int argc, char **argv) {
case 'p':
return PlatformMain(argc, argv);
case 's':
return SlaveMain(argc, argv);
return ServerMain(argc, argv);
#endif
case 'v':
return VersionMain(argc, argv);
Expand Down
Loading