linux-mips
[Top] [All Lists]

Export exception cause register to userspace ?

To: linux-mips@linux-mips.org
Subject: Export exception cause register to userspace ?
From: Dmitry Antipov <antipov@ru.mvista.com>
Date: Tue, 12 Feb 2008 19:20:09 +0300
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.9 (X11/20071115)
Hello,

I'm working on a debugging software which should be able to determine an
exact reason of exception which may (and should) be processed within user
space - SIGTRAP, for example. This information should be extracted from
cause register (CP0 register 13, select 0), which is cp0_cause of pt_regs.
But this register is not stored within sigcontext of signal frame, so
it's value is not available from signal handler. Is it a good idea to add a
dedicated sigcontext field to store cause register ?

Dmitry

<Prev in Thread] Current Thread [Next in Thread>
  • Export exception cause register to userspace ?, Dmitry Antipov <=