Date: Sat, 9 Mar 2019 03:24:39 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r344961 - head/sys/powerpc/powerpc Message-ID: <201903090324.x293OdDK028582@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Sat Mar 9 03:24:39 2019 New Revision: 344961 URL: https://svnweb.freebsd.org/changeset/base/344961 Log: powerpc: Print trap frame address in ddb backtraces Registers visible from 'show reg' don't always match the registers from the offending trap frame. Knowing the frame address lets one examine the registers manually. MFC after: 1 week Modified: head/sys/powerpc/powerpc/db_trace.c Modified: head/sys/powerpc/powerpc/db_trace.c ============================================================================== --- head/sys/powerpc/powerpc/db_trace.c Sat Mar 9 03:18:37 2019 (r344960) +++ head/sys/powerpc/powerpc/db_trace.c Sat Mar 9 03:24:39 2019 (r344961) @@ -277,7 +277,7 @@ db_backtrace(struct thread *td, db_addr_t fp, int coun if (tf->exc == EXC_DSI) db_printf(" sr=%#x", (uint32_t)tf->cpu.aim.dsisr); - db_printf("\n"); + db_printf(" frame=%p\n", tf); stackframe = (db_addr_t) tf->fixreg[1]; if (kernel_only && (tf->srr1 & PSL_PR)) break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903090324.x293OdDK028582>