regs and we can step into!

This commit is contained in:
T0b1
2023-06-02 02:06:49 +02:00
parent d4bf6731a3
commit ac3718b12b
17 changed files with 1434 additions and 344 deletions

View File

@@ -2,6 +2,26 @@
using namespace dbgui::backend;
Backend::~Backend() {
Backend::~Backend() {}
void Backend::send_state_change(TargetState new_state, StateChangeReason reason)
{
auto msg = std::make_unique<BackToFront::Msg>(
BackToFront::MsgType::state_change,
BackToFront::StateChange{new_state, reason});
this->send_msg(std::move(msg));
}
void Backend::send_proc_info(BackToFront::InitialProcessInfo &&info)
{
auto msg = std::make_unique<BackToFront::Msg>(
BackToFront::MsgType::initial_proc_info, std::move(info));
this->send_msg(std::move(msg));
}
void Backend::send_reg_change(BackToFront::RegsChanged &&info)
{
auto msg = std::make_unique<BackToFront::Msg>(
BackToFront::MsgType::regs_changed, std::move(info));
this->send_msg(std::move(msg));
}