gdb rsp: make start() rerunnable
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -38,12 +38,13 @@ be_to_le(std::string str) {
|
||||
return current;
|
||||
}
|
||||
|
||||
GdbRsp::GdbRsp(std::shared_ptr<Cpu> cpu)
|
||||
: cpu(cpu) {}
|
||||
GdbRsp::GdbRsp(std::shared_ptr<Cpu> cpu, uint port)
|
||||
: cpu(cpu) {
|
||||
server.start(port);
|
||||
}
|
||||
|
||||
void
|
||||
GdbRsp::start(const uint port) {
|
||||
server.start(port);
|
||||
GdbRsp::start() {
|
||||
server.run();
|
||||
|
||||
attach();
|
||||
|
@@ -4,9 +4,9 @@
|
||||
namespace matar {
|
||||
class GdbRsp {
|
||||
public:
|
||||
GdbRsp(std::shared_ptr<Cpu> cpu);
|
||||
GdbRsp(std::shared_ptr<Cpu> cpu, uint port);
|
||||
~GdbRsp() = default;
|
||||
void start(const uint port);
|
||||
void start();
|
||||
void attach();
|
||||
void satisfy_client();
|
||||
void step();
|
||||
|
Reference in New Issue
Block a user