summaryrefslogtreecommitdiff
path: root/Kernel/Coredump.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-06 17:56:28 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-06 23:46:36 +0100
commit7369d0ab5f93b3b083e030bef64486b02cafb3d5 (patch)
tree2b82fc7c6825248d15d0a36c09d2518fe6f8d2cc /Kernel/Coredump.cpp
parent21db2b7b903d8c35151174fb18f947db5227eab7 (diff)
downloadserenity-7369d0ab5f93b3b083e030bef64486b02cafb3d5.zip
Kernel: Stop using NonnullLockRefPtrVector
Diffstat (limited to 'Kernel/Coredump.cpp')
-rw-r--r--Kernel/Coredump.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Coredump.cpp b/Kernel/Coredump.cpp
index be9d2811ac..15e444763e 100644
--- a/Kernel/Coredump.cpp
+++ b/Kernel/Coredump.cpp
@@ -310,10 +310,10 @@ ErrorOr<void> Coredump::create_notes_threads_data(auto& builder) const
for (auto const& thread : m_process->threads_for_coredump({})) {
ELF::Core::ThreadInfo info {};
info.header.type = ELF::Core::NotesEntryHeader::Type::ThreadInfo;
- info.tid = thread.tid().value();
+ info.tid = thread->tid().value();
- if (thread.current_trap())
- copy_kernel_registers_into_ptrace_registers(info.regs, thread.get_register_dump_from_stack());
+ if (thread->current_trap())
+ copy_kernel_registers_into_ptrace_registers(info.regs, thread->get_register_dump_from_stack());
TRY(builder.append_bytes(ReadonlyBytes { &info, sizeof(info) }));
}