update imgui, delete hidden main breakpoint on first stop
This commit is contained in:
2
deps/imgui
vendored
2
deps/imgui
vendored
Submodule deps/imgui updated: 3418d50949...ebb8d78102
@@ -73,6 +73,9 @@ void LLDBBackend::start()
|
|||||||
if (!bp.IsValid())
|
if (!bp.IsValid())
|
||||||
{
|
{
|
||||||
spdlog::warn("Failed to create breakpoint for main");
|
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_frame_changes();
|
||||||
this->check_data_changes();
|
this->check_data_changes();
|
||||||
|
|
||||||
|
if (!_stop_at_entry)
|
||||||
|
{
|
||||||
|
_target.BreakpointDelete(_hidden_main_bp);
|
||||||
|
}
|
||||||
|
|
||||||
if (state == StateType::eStateStopped)
|
if (state == StateType::eStateStopped)
|
||||||
{
|
{
|
||||||
_state = TargetState::paused;
|
_state = TargetState::paused;
|
||||||
|
|||||||
@@ -161,8 +161,9 @@ namespace dbgui::backend
|
|||||||
std::thread _msg_thread;
|
std::thread _msg_thread;
|
||||||
|
|
||||||
// process state
|
// process state
|
||||||
bool _first_run = true;
|
bool _first_run = true;
|
||||||
bool _stop_at_entry = false;
|
bool _stop_at_entry = false;
|
||||||
|
lldb::break_id_t _hidden_main_bp;
|
||||||
TargetState _state = TargetState::stopped;
|
TargetState _state = TargetState::stopped;
|
||||||
std::vector<RegSet> _reg_sets = {};
|
std::vector<RegSet> _reg_sets = {};
|
||||||
std::vector<Thread> _threads = {};
|
std::vector<Thread> _threads = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user