diff options
Diffstat (limited to 'src/core/arm/debug.cpp')
| -rw-r--r-- | src/core/arm/debug.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/arm/debug.cpp b/src/core/arm/debug.cpp index af1c34bc3..854509463 100644 --- a/src/core/arm/debug.cpp +++ b/src/core/arm/debug.cpp | |||
| @@ -79,7 +79,7 @@ constexpr std::array<u64, 2> SegmentBases{ | |||
| 79 | 0x7100000000ULL, | 79 | 0x7100000000ULL, |
| 80 | }; | 80 | }; |
| 81 | 81 | ||
| 82 | void SymbolicateBacktrace(const Kernel::KProcess* process, std::vector<BacktraceEntry>& out) { | 82 | void SymbolicateBacktrace(Kernel::KProcess* process, std::vector<BacktraceEntry>& out) { |
| 83 | auto modules = FindModules(process); | 83 | auto modules = FindModules(process); |
| 84 | 84 | ||
| 85 | const bool is_64 = process->Is64Bit(); | 85 | const bool is_64 = process->Is64Bit(); |
| @@ -118,7 +118,7 @@ void SymbolicateBacktrace(const Kernel::KProcess* process, std::vector<Backtrace | |||
| 118 | } | 118 | } |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | std::vector<BacktraceEntry> GetAArch64Backtrace(const Kernel::KProcess* process, | 121 | std::vector<BacktraceEntry> GetAArch64Backtrace(Kernel::KProcess* process, |
| 122 | const Kernel::Svc::ThreadContext& ctx) { | 122 | const Kernel::Svc::ThreadContext& ctx) { |
| 123 | std::vector<BacktraceEntry> out; | 123 | std::vector<BacktraceEntry> out; |
| 124 | auto& memory = process->GetMemory(); | 124 | auto& memory = process->GetMemory(); |
| @@ -144,7 +144,7 @@ std::vector<BacktraceEntry> GetAArch64Backtrace(const Kernel::KProcess* process, | |||
| 144 | return out; | 144 | return out; |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | std::vector<BacktraceEntry> GetAArch32Backtrace(const Kernel::KProcess* process, | 147 | std::vector<BacktraceEntry> GetAArch32Backtrace(Kernel::KProcess* process, |
| 148 | const Kernel::Svc::ThreadContext& ctx) { | 148 | const Kernel::Svc::ThreadContext& ctx) { |
| 149 | std::vector<BacktraceEntry> out; | 149 | std::vector<BacktraceEntry> out; |
| 150 | auto& memory = process->GetMemory(); | 150 | auto& memory = process->GetMemory(); |
| @@ -173,7 +173,7 @@ std::vector<BacktraceEntry> GetAArch32Backtrace(const Kernel::KProcess* process, | |||
| 173 | } // namespace | 173 | } // namespace |
| 174 | 174 | ||
| 175 | std::optional<std::string> GetThreadName(const Kernel::KThread* thread) { | 175 | std::optional<std::string> GetThreadName(const Kernel::KThread* thread) { |
| 176 | const auto* process = thread->GetOwnerProcess(); | 176 | auto* process = thread->GetOwnerProcess(); |
| 177 | if (process->Is64Bit()) { | 177 | if (process->Is64Bit()) { |
| 178 | return GetNameFromThreadType64(process->GetMemory(), *thread); | 178 | return GetNameFromThreadType64(process->GetMemory(), *thread); |
| 179 | } else { | 179 | } else { |
| @@ -248,7 +248,7 @@ Kernel::KProcessAddress GetModuleEnd(const Kernel::KProcess* process, | |||
| 248 | return cur_addr - 1; | 248 | return cur_addr - 1; |
| 249 | } | 249 | } |
| 250 | 250 | ||
| 251 | Loader::AppLoader::Modules FindModules(const Kernel::KProcess* process) { | 251 | Loader::AppLoader::Modules FindModules(Kernel::KProcess* process) { |
| 252 | Loader::AppLoader::Modules modules; | 252 | Loader::AppLoader::Modules modules; |
| 253 | 253 | ||
| 254 | auto& page_table = process->GetPageTable(); | 254 | auto& page_table = process->GetPageTable(); |
| @@ -312,7 +312,7 @@ Loader::AppLoader::Modules FindModules(const Kernel::KProcess* process) { | |||
| 312 | return modules; | 312 | return modules; |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | Kernel::KProcessAddress FindMainModuleEntrypoint(const Kernel::KProcess* process) { | 315 | Kernel::KProcessAddress FindMainModuleEntrypoint(Kernel::KProcess* process) { |
| 316 | // Do we have any loaded executable sections? | 316 | // Do we have any loaded executable sections? |
| 317 | auto modules = FindModules(process); | 317 | auto modules = FindModules(process); |
| 318 | 318 | ||
| @@ -337,7 +337,7 @@ void InvalidateInstructionCacheRange(const Kernel::KProcess* process, u64 addres | |||
| 337 | } | 337 | } |
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | std::vector<BacktraceEntry> GetBacktraceFromContext(const Kernel::KProcess* process, | 340 | std::vector<BacktraceEntry> GetBacktraceFromContext(Kernel::KProcess* process, |
| 341 | const Kernel::Svc::ThreadContext& ctx) { | 341 | const Kernel::Svc::ThreadContext& ctx) { |
| 342 | if (process->Is64Bit()) { | 342 | if (process->Is64Bit()) { |
| 343 | return GetAArch64Backtrace(process, ctx); | 343 | return GetAArch64Backtrace(process, ctx); |