Skip to content

Commit 5d48a1e

Browse files
committed
Change debugger_launch_command debugger_name to be const string&
1 parent 07d2aeb commit 5d48a1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/GdbServer.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ void GdbServer::serve_replay(const ConnectionFlags& flags) {
16131613
DEBUG_ASSERT(nwritten == sizeof(params));
16141614
} else {
16151615
vector<string> cmd = debugger_launch_command(t, flags.dbg_host, port,
1616-
flags.serve_files, flags.debugger_name.c_str());
1616+
flags.serve_files, flags.debugger_name);
16171617
fprintf(stderr, "Launch debugger with\n %s\n", to_shell_string(cmd).c_str());
16181618
}
16191619

src/launch_debugger.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ string saved_debugger_launch_command;
171171
vector<string> debugger_launch_command(Task* t, const string& host,
172172
unsigned short port,
173173
bool serve_files,
174-
const char* debugger_name) {
174+
const string& debugger_name) {
175175
vector<string> cmd;
176176
cmd.push_back(debugger_name);
177177
push_default_gdb_options(cmd, serve_files);

src/launch_debugger.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void launch_debugger(ScopedFd& params_pipe_fd, const std::string& debugger_file_
2323
std::vector<std::string> debugger_launch_command(Task* t, const std::string& host,
2424
unsigned short port,
2525
bool serve_files,
26-
const char* debugger_name);
26+
const std::string& debugger_name);
2727

2828
/**
2929
* Convert the command line to a string containing quoted parameters.

0 commit comments

Comments
 (0)