update imgui, delete hidden main breakpoint on first stop

This commit is contained in:
T0b1
2024-05-03 03:36:20 +02:00
parent 608cec26b1
commit 4f065dca4d
4 changed files with 12 additions and 3 deletions

2
deps/imgui vendored

Submodule deps/imgui updated: 3418d50949...ebb8d78102

View File

@@ -73,6 +73,9 @@ void LLDBBackend::start()
if (!bp.IsValid())
{
spdlog::warn("Failed to create breakpoint for main");
} else
{
_hidden_main_bp = bp.GetID();
}
}
@@ -157,6 +160,11 @@ void LLDBBackend::handle_state_change(lldb::StateType state)
this->check_frame_changes();
this->check_data_changes();
if (!_stop_at_entry)
{
_target.BreakpointDelete(_hidden_main_bp);
}
if (state == StateType::eStateStopped)
{
_state = TargetState::paused;

View File

@@ -161,8 +161,9 @@ namespace dbgui::backend
std::thread _msg_thread;
// process state
bool _first_run = true;
bool _stop_at_entry = false;
bool _first_run = true;
bool _stop_at_entry = false;
lldb::break_id_t _hidden_main_bp;
TargetState _state = TargetState::stopped;
std::vector<RegSet> _reg_sets = {};
std::vector<Thread> _threads = {};

BIN
tmp/main

Binary file not shown.