Skip to content

Commit

Permalink
Make sure to hex-decode gdb monitor commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fjricci committed May 24, 2016
1 parent 4d85c55 commit dfc9b28
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Sources/GDBRemote/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2060,16 2060,9 @@ void Session::Handle_qProcessInfoPID(ProtocolInterpreter::Handler const &,
//
void Session::Handle_qRcmd(ProtocolInterpreter::Handler const &,
std::string const &args) {
ErrorCode error = _delegate->onExecuteCommand(*this, args);
if (error != kSuccess) {
sendError(error);
return;
}
std::string cmd = HexToString(args);

//
// No message is sent as a reply since it is sent by the
// handled message.
//
sendError(_delegate->onExecuteCommand(*this, cmd));
}

//
Expand Down

0 comments on commit dfc9b28

Please sign in to comment.