mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
HackStudio: Support debugging library code
We can now step into library code in the debugger. Since we now need the whole source code of our libraries (and not just the headers), we clone the whole serenity git repo into /usr/share/serenity.
This commit is contained in:
parent
310063fed8
commit
7eac9fe10e
Notes:
sideshowbarker
2024-07-19 03:37:03 +09:00
Author: https://github.com/itamar8910
Commit: 7eac9fe10e
Pull-request: https://github.com/SerenityOS/serenity/pull/3153
Issue: https://github.com/SerenityOS/serenity/issues/3152
Reviewed-by: https://github.com/awesomekling
4 changed files with 69 additions and 32 deletions
|
@ -96,7 +96,12 @@ void DebugInfoWidget::update_state(const DebugSession& debug_session, const Ptra
|
|||
{
|
||||
m_variables_view->set_model(VariablesModel::create(regs));
|
||||
m_backtrace_view->set_model(BacktraceModel::create(debug_session, regs));
|
||||
m_backtrace_view->selection().set(m_backtrace_view->model()->index(0));
|
||||
auto selected_index = m_backtrace_view->model()->index(0);
|
||||
if (!selected_index.is_valid()) {
|
||||
dbg() << "Warning: DebugInfoWidget: backtrace selected index is invalid";
|
||||
return;
|
||||
}
|
||||
m_backtrace_view->selection().set(selected_index);
|
||||
}
|
||||
|
||||
void DebugInfoWidget::program_stopped()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue