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;
|
return current;
|
||||||
}
|
}
|
||||||
|
|
||||||
GdbRsp::GdbRsp(std::shared_ptr<Cpu> cpu)
|
GdbRsp::GdbRsp(std::shared_ptr<Cpu> cpu, uint port)
|
||||||
: cpu(cpu) {}
|
: cpu(cpu) {
|
||||||
|
server.start(port);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GdbRsp::start(const uint port) {
|
GdbRsp::start() {
|
||||||
server.start(port);
|
|
||||||
server.run();
|
server.run();
|
||||||
|
|
||||||
attach();
|
attach();
|
||||||
|
@@ -4,9 +4,9 @@
|
|||||||
namespace matar {
|
namespace matar {
|
||||||
class GdbRsp {
|
class GdbRsp {
|
||||||
public:
|
public:
|
||||||
GdbRsp(std::shared_ptr<Cpu> cpu);
|
GdbRsp(std::shared_ptr<Cpu> cpu, uint port);
|
||||||
~GdbRsp() = default;
|
~GdbRsp() = default;
|
||||||
void start(const uint port);
|
void start();
|
||||||
void attach();
|
void attach();
|
||||||
void satisfy_client();
|
void satisfy_client();
|
||||||
void step();
|
void step();
|
||||||
|
Reference in New Issue
Block a user