]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel:add a some information in backtraces. 58/158/2
authorKees Jongenburger <keesj@minix3.org>
Wed, 2 Jan 2013 15:54:00 +0000 (16:54 +0100)
committerKees Jongenburger <keesj@minix3.org>
Tue, 8 Jan 2013 12:40:32 +0000 (13:40 +0100)
* Display the pid and process name in the backtrace as we can
currently not read stackframes.

Change-Id: I2435d4098553c5b02adfe36f08b5aa3f47e9b531

kernel/arch/arm/exception.c

index 416dacb2e71b673d98d596b4012e11ddb96dc11d..2a2ca0f14ec456abcf9b05a226918a244e07c7b9 100644 (file)
@@ -204,6 +204,8 @@ void exception_handler(int is_nested, reg_t *saved_lr, int vector)
  *===========================================================================*/
 static void proc_stacktrace_execute(struct proc *whichproc, reg_t v_bp, reg_t pc)
 {
+       printf("%-8.8s %6d 0x%lx \n",
+               whichproc->p_name, whichproc->p_endpoint, pc);
 }
 #endif