mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibDebug: Move everything into the "Debug" namespace
This commit is contained in:
parent
b58ca7cf3d
commit
694b86a4bf
Notes:
sideshowbarker
2024-07-19 03:11:50 +09:00
Author: https://github.com/Lubrsi
Commit: 694b86a4bf
Pull-request: https://github.com/SerenityOS/serenity/pull/3290
31 changed files with 115 additions and 85 deletions
|
@ -115,8 +115,8 @@ DebugInfoWidget::DebugInfoWidget()
|
|||
auto is_valid_index = [](auto& index) {
|
||||
if (!index.is_valid())
|
||||
return false;
|
||||
auto* variable = static_cast<const DebugInfo::VariableInfo*>(index.internal_data());
|
||||
if (variable->location_type != DebugInfo::VariableInfo::LocationType::Address)
|
||||
auto* variable = static_cast<const Debug::DebugInfo::VariableInfo*>(index.internal_data());
|
||||
if (variable->location_type != Debug::DebugInfo::VariableInfo::LocationType::Address)
|
||||
return false;
|
||||
return variable->is_enum_type() || variable->type_name.is_one_of("int", "bool");
|
||||
};
|
||||
|
@ -139,7 +139,7 @@ DebugInfoWidget::DebugInfoWidget()
|
|||
};
|
||||
}
|
||||
|
||||
void DebugInfoWidget::update_state(const DebugSession& debug_session, const PtraceRegisters& regs)
|
||||
void DebugInfoWidget::update_state(const Debug::DebugSession& debug_session, const PtraceRegisters& regs)
|
||||
{
|
||||
m_variables_view->set_model(VariablesModel::create(regs));
|
||||
m_backtrace_view->set_model(BacktraceModel::create(debug_session, regs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue