From 80b4287c9d3441870c15905d62041cc7e98853f8 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 19 Mar 2013 23:18:07 +0100 Subject: [PATCH] Print program image path upon crash. --- sortix/interrupt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sortix/interrupt.cpp b/sortix/interrupt.cpp index c9a597dc..d2645a0b 100644 --- a/sortix/interrupt.cpp +++ b/sortix/interrupt.cpp @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2011, 2012. + Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013. This file is part of Sortix. @@ -254,8 +254,8 @@ void CrashHandler(CPU::InterruptRegisters* regs) Interrupt::Enable(); - Log::PrintF("The current program (pid %i) has crashed and was terminated:\n", - CurrentProcess()->pid); + Log::PrintF("The current program (pid %i %s) has crashed and was terminated:\n", + CurrentProcess()->pid, CurrentProcess()->program_image_path); Log::PrintF("%s exception at ip=0x%zx (cr2=0x%p, err_code=0x%p)\n", message, ip, regs->cr2, regs->err_code);