From owner-freebsd-alpha Tue Apr 10 17:53:30 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 4176E37B423 for ; Tue, 10 Apr 2001 17:53:25 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f3B0rFG76679 for ; Tue, 10 Apr 2001 17:53:16 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 10 Apr 2001 17:52:47 -0700 (PDT) From: John Baldwin To: alpha@FreeBSD.org Subject: Trap spiffiness Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I finally got tired of needing to pull out the brown book to decode trap messsages on the alpha, so I've coded up a patch that enhances the printtrap() function to parse the a[012] registers for a given trap and print out the data in a more meaningful fashion. For example: db> x/x 0 0: fatal kernel trap: trap entry = 0x2 (memory management fault) faulting va = 0x0 type = access violation cause = load instruction pc = 0xfffffc0000585ac0 ra = 0xfffffc000033c1ec curproc = 0xfffffe000915ccc0 pid = 22, comm = intr: atkbd0 db> The patch can be found at http://www.FreeBSD.org/~jhb/patches/trap.patch Any objections? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message