Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2001 17:52:47 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        alpha@FreeBSD.org
Subject:   Trap spiffiness
Message-ID:  <XFMail.010410175247.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010410175247.jhb>