Date: Tue, 17 Feb 2015 01:23:39 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278876 - head/sys/powerpc/powerpc Message-ID: <201502170123.t1H1NdO6071918@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Tue Feb 17 01:23:38 2015 New Revision: 278876 URL: https://svnweb.freebsd.org/changeset/base/278876 Log: Having the TOC pointer in kernel dbeugger printouts is useful. Modified: head/sys/powerpc/powerpc/db_trace.c Modified: head/sys/powerpc/powerpc/db_trace.c ============================================================================== --- head/sys/powerpc/powerpc/db_trace.c Tue Feb 17 01:03:06 2015 (r278875) +++ head/sys/powerpc/powerpc/db_trace.c Tue Feb 17 01:23:38 2015 (r278876) @@ -267,6 +267,9 @@ db_backtrace(struct thread *td, db_addr_ db_printf("%-10s r1=%#zx cr=%#x xer=%#x ctr=%#zx", "", tf->fixreg[1], (uint32_t)tf->cr, (uint32_t)tf->xer, tf->ctr); +#ifdef __powerpc64__ + db_printf(" r2=%#zx", tf->fixreg[2]); +#endif if (tf->exc == EXC_DSI) db_printf(" sr=%#x", (uint32_t)tf->cpu.aim.dsisr);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502170123.t1H1NdO6071918>