From: Kees Jongenburger Date: Wed, 2 Jan 2013 15:54:00 +0000 (+0100) Subject: kernel:add a some information in backtraces. X-Git-Tag: v3.2.1~139 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc.conf.html?a=commitdiff_plain;h=75c515e5f8864ee595ff0de9e51135cd5260dba2;p=minix.git kernel:add a some information in backtraces. * Display the pid and process name in the backtrace as we can currently not read stackframes. Change-Id: I2435d4098553c5b02adfe36f08b5aa3f47e9b531 --- diff --git a/kernel/arch/arm/exception.c b/kernel/arch/arm/exception.c index 416dacb2e..2a2ca0f14 100644 --- a/kernel/arch/arm/exception.c +++ b/kernel/arch/arm/exception.c @@ -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