diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-06 17:56:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-06 23:46:36 +0100 |
commit | 7369d0ab5f93b3b083e030bef64486b02cafb3d5 (patch) | |
tree | 2b82fc7c6825248d15d0a36c09d2518fe6f8d2cc /Kernel/Coredump.cpp | |
parent | 21db2b7b903d8c35151174fb18f947db5227eab7 (diff) | |
download | serenity-7369d0ab5f93b3b083e030bef64486b02cafb3d5.zip |
Kernel: Stop using NonnullLockRefPtrVector
Diffstat (limited to 'Kernel/Coredump.cpp')
-rw-r--r-- | Kernel/Coredump.cpp | 6 |
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) })); } |