Browse Source

adapt behavior to newer RSP dialect

develop
Eyck Jentzsch 2 months ago
parent
commit
7e12833c29
3 changed files with 6 additions and 7 deletions
  1. +4
    -6
      incl/iss/debugger/gdb_session.h
  2. +1
    -1
      incl/iss/debugger/server.h
  3. +1
    -0
      src/gdb_session.cpp

+ 4
- 6
incl/iss/debugger/gdb_session.h View File

@ -76,13 +76,11 @@ protected:
void parse_n_execute(std::string &msg);
void respond(const std::string msg) {
void respond(std::string const& msg) {
last_msg = msg;
if (msg.size() > 0) {
// std::this_thread::sleep_for(std::chrono::milliseconds(2));
CLOG(TRACE, connection) << "Processed message, responding with '" << msg << "'";
conn_shptr->write_data(msg);
}
// std::this_thread::sleep_for(std::chrono::milliseconds(2));
CLOG(TRACE, connection) << "Processed message, responding with '" << msg << "'";
conn_shptr->write_data(msg);
// conn_shptr->async_write(msg);
conn_shptr->async_read();
}

+ 1
- 1
incl/iss/debugger/server.h View File

@ -51,7 +51,7 @@ public:
if (get() != NULL) {
LOG(FATAL) << "server already initialized";
}
LOG(DEBUG) << "starting server";
LOG(DEBUG) << "starting server listening on port "<<port;
get(new server<SESSION>(vm, port));
}

+ 1
- 0
src/gdb_session.cpp View File

@ -46,6 +46,7 @@ class packet_parse_error : public std::exception {};
}
using namespace iss::debugger;
using namespace std;
using boost::asio::ip::tcp;
const int THREAD_ID = 1;
const int CORE_ID = 0;

Loading…
Cancel
Save