]> Zhao Yanbai Git Server - minix.git/commitdiff
More verbose (optional) debug output for exceptions.
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 22 Feb 2008 10:43:18 +0000 (10:43 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 22 Feb 2008 10:43:18 +0000 (10:43 +0000)
kernel/arch/i386/exception.c

index e3ee95fac7bc85647151f7b5499d8465bf6953e5..a979fe87742d2ae2bdce91b37a39f9245af7f7dd 100755 (executable)
@@ -65,12 +65,16 @@ u32_t old_eflags;
 #if 0
        {
                kprintf(
-               "exception for process %d, pc = 0x%x:0x%x, sp = 0x%x:0x%x\n",
-                       proc_nr(saved_proc),
+"exception for process %d, endpoint %d ('%s'), pc = 0x%x:0x%x, sp = 0x%x:0x%x\n",
+                       proc_nr(saved_proc), saved_proc->p_endpoint,
+                       saved_proc->p_name,
                        saved_proc->p_reg.cs, saved_proc->p_reg.pc,
                        saved_proc->p_reg.ss, saved_proc->p_reg.sp);
-               kprintf("edi = 0x%x\n", saved_proc->p_reg.di);
-
+               kprintf(
+  "vec_nr= %d, trap_errno= 0x%lx, eip= 0x%lx, cs= 0x%x, eflags= 0x%lx\n",
+                       vec_nr, (unsigned long)trap_errno,
+                       (unsigned long)old_eip, old_cs,
+                       (unsigned long)old_eflags);
 #if DEBUG_STACKTRACE
                stacktrace(saved_proc);
 #endif