breakpoints

This commit is contained in:
T0b1
2023-06-04 22:08:49 +02:00
parent 343a30289c
commit 78e7f5cca7
12 changed files with 341 additions and 17 deletions

View File

@@ -24,6 +24,7 @@ Frontend::Frontend()
_windows.push_back(Window::create_threads(window_id++));
_windows.push_back(Window::create_frames(window_id++));
_windows.push_back(Window::create_disas(window_id++));
_windows.push_back(Window::create_bp(window_id++));
}
void Frontend::run_frame()
@@ -182,7 +183,13 @@ void Frontend::draw_header()
ImGui::BeginDisabled();
}
if (ImGui::Button("Step Over")) {}
if (ImGui::Button("Step Over"))
{
if (this->target->backend->step_over())
{
// TODO: already disable the UI into running mode
}
}
if (ImGui::Button("Step Into"))
{
if (this->target->backend->step_into())
@@ -190,7 +197,13 @@ void Frontend::draw_header()
// TODO: already disable the UI into running mode
}
}
ImGui::Button("Step Out");
if (ImGui::Button("Step Out"))
{
if (this->target->backend->step_out())
{
// TODO: already disable the UI into running mode
}
}
if (!is_paused)
{