From: Mark Farnell <mark.farnell@xxxxxxxxx> Date: Sun, 12 Apr 2009 11:24:30 +1200 > How can I get the program counter which points to the instruction that > causes the write-segmentation fault under GNU/Linux SPARC64? Look at the dwarf2 unwind support code in the GCC sources of the signal handler support in the MONO tree. We provide the register values differently than other platforms, there isn't a ucontext available but there is a sigcontext_t: >From the sigcontext you can get at the program counter by accessing sc->sigc_regs.tpc on 64-bit sparc and sc->si_regs.pc on 32-bit sparc. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html