Kernel: Use the correct ip in the dispatch_signal debug output

The signal handler RegisterState is in 'regs', not 'm_regs'.
This commit is contained in:
Sönke Holz 2024-08-03 13:45:24 +02:00 committed by Nico Weber
parent 7b0553eb13
commit 75ccee81be

View file

@ -1176,7 +1176,7 @@ DispatchSignalResult Thread::dispatch_signal(u8 signal)
regs.set_flags(2 | (regs.rflags & ~safe_eflags_mask));
#endif
dbgln_if(SIGNAL_DEBUG, "Thread in state '{}' has been primed with signal handler {:p} to deliver {}", state_string(), m_regs.ip(), signal);
dbgln_if(SIGNAL_DEBUG, "Thread in state '{}' has been primed with signal handler {:p} to deliver {}", state_string(), regs.ip(), signal);
return DispatchSignalResult::Continue;
}