summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDebug/DebugInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibDebug/DebugInfo.cpp')
-rw-r--r--Userland/Libraries/LibDebug/DebugInfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibDebug/DebugInfo.cpp b/Userland/Libraries/LibDebug/DebugInfo.cpp
index c0dc9b1905..6cf6a90cf1 100644
--- a/Userland/Libraries/LibDebug/DebugInfo.cpp
+++ b/Userland/Libraries/LibDebug/DebugInfo.cpp
@@ -142,7 +142,7 @@ Optional<DebugInfo::SourcePositionAndAddress> DebugInfo::get_address_from_source
}
Optional<SourcePositionAndAddress> result;
- for (const auto& line_entry : m_sorted_lines) {
+ for (auto const& line_entry : m_sorted_lines) {
if (!line_entry.file.ends_with(file_path))
continue;
@@ -159,12 +159,12 @@ Optional<DebugInfo::SourcePositionAndAddress> DebugInfo::get_address_from_source
return result;
}
-NonnullOwnPtrVector<DebugInfo::VariableInfo> DebugInfo::get_variables_in_current_scope(const PtraceRegisters& regs) const
+NonnullOwnPtrVector<DebugInfo::VariableInfo> DebugInfo::get_variables_in_current_scope(PtraceRegisters const& regs) const
{
NonnullOwnPtrVector<DebugInfo::VariableInfo> variables;
// TODO: We can store the scopes in a better data structure
- for (const auto& scope : m_scopes) {
+ for (auto const& scope : m_scopes) {
FlatPtr ip;
#if ARCH(I386)
ip = regs.eip;
@@ -174,7 +174,7 @@ NonnullOwnPtrVector<DebugInfo::VariableInfo> DebugInfo::get_variables_in_current
if (ip - m_base_address < scope.address_low || ip - m_base_address >= scope.address_high)
continue;
- for (const auto& die_entry : scope.dies_of_variables) {
+ for (auto const& die_entry : scope.dies_of_variables) {
auto variable_info = create_variable_info(die_entry, regs);
if (!variable_info)
continue;
@@ -357,7 +357,7 @@ String DebugInfo::name_of_containing_function(FlatPtr address) const
Optional<DebugInfo::VariablesScope> DebugInfo::get_containing_function(FlatPtr address) const
{
- for (const auto& scope : m_scopes) {
+ for (auto const& scope : m_scopes) {
if (!scope.is_function || address < scope.address_low || address >= scope.address_high)
continue;
return scope;
@@ -368,7 +368,7 @@ Optional<DebugInfo::VariablesScope> DebugInfo::get_containing_function(FlatPtr a
Vector<DebugInfo::SourcePosition> DebugInfo::source_lines_in_scope(VariablesScope const& scope) const
{
Vector<DebugInfo::SourcePosition> source_lines;
- for (const auto& line : m_sorted_lines) {
+ for (auto const& line : m_sorted_lines) {
if (line.address < scope.address_low)
continue;