Re: [uml-devel] Getting fault address from a SIGSEGV

2005-03-19 Thread Jeff Dike
[EMAIL PROTECTED] said: > but I don't know where in the code such status is filled, and so > where such information is taken from :-) On x86 (and x86_64), the fault address is sigcontext.cr2, the access type is stored in .err, and the CPU fault type is in .trapno.

[uml-devel] Getting fault address from a SIGSEGV

2005-03-19 Thread Mattia Belletti
Hi all, For a project I'm working on, I would need to get the fault address of a ptraced child, whose SIGSEGV I've caught. I've tried to dig in UML source code to get how this is done, but I get lost after having followed the chain segv_handler <- sig_info <- sig_handler_common_tt <- "r = &TA