Commit 049d4d63 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

Support resume

parent 5dcbcf34
......@@ -100,23 +100,16 @@ void GDB_RSP::runCommand(const std::string& command) {
case 'M':
cmdMemWrite(command);
break;
/*
case 'X':
cmdMemWrite(1);
break;
*/
case 'p':
cmdRegGet(command);
break;
case 'P':
cmdRegSet(command);
break;
/*
case 'D':
case 'k':
cmd_detach();
cmdDetach(command);
break;
*/
case 'c':
case 's':
cmdContinue(command);
......@@ -273,6 +266,11 @@ void GDB_RSP::cmdBreak(const std::string& str) {
echo(Bits("E28")); // !!!
}
void GDB_RSP::cmdDetach(const std::string& str) {
// !!! clear break-points
run();
}
void GDB_RSP::cmdContinue(const std::string& str) {
run();
cmdStatus(str);
......
......@@ -88,6 +88,10 @@ class GDB_RSP : public Component {
// out: cmdStatus()
void cmdContinue(const std::string& str);
// in: [Dk]...
// out: OK
void cmdDetach(const std::string& str);
void toHex(std::string& str, const Bits& bits);
int fromHex(const char *&ptr, Bits& bits); // fixed width
int fromHex(const char *&ptr, uint64_t& x); // variable width
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment