diff options
author | Oxore <oxore@protonmail.com> | 2022-08-30 00:22:07 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-08-30 00:22:07 +0300 |
commit | 026894023fa53fa32fd342d18e05f55743cf6c4b (patch) | |
tree | ba744e909c5e8c8067f535d4dcac1d295f55e228 /gdbremote_parser.hpp | |
parent | 8c012736814265e198d68654ccdc597c265f4f82 (diff) |
Convince GDB that it is connected
Diffstat (limited to 'gdbremote_parser.hpp')
-rw-r--r-- | gdbremote_parser.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdbremote_parser.hpp b/gdbremote_parser.hpp index 6bf37bd..2e9fd88 100644 --- a/gdbremote_parser.hpp +++ b/gdbremote_parser.hpp @@ -55,6 +55,9 @@ enum class PacketType: int { kSetThreadForOps, kVMustReplyEmpty, kEnableExtendedMode, + kInterrupt, + kContinue, + kReadGeneralRegisters, }; struct PacketData { @@ -111,6 +114,12 @@ struct Packet { return "vMustReplyEmpty"; case PacketType::kEnableExtendedMode: return "!"; + case PacketType::kInterrupt: + return "vCtrlC"; + case PacketType::kContinue: + return "vCont"; + case PacketType::kReadGeneralRegisters: + return "g"; } return "<unknown>"; } @@ -152,7 +161,7 @@ public: * (i.e. '+' or '-'). Otherwise we will be unable to resend packet in case * if '-' negative acknowledge is received. */ - std::string WrapDataToSend(Packet packet=Packet{}); + std::string WrapDataToSend(std::string packet=std::string{}); /** Returns last recognized packet * |