lkml.org 
[lkml]   [1998]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [?] Find the address of a segfault in userland
Date
From

jasond@cdc.net said:
> void sigsegv_handler(int num, struct sigcontext info) /* ignore the
> compiler whinings :D */ {
> printf("EIP: %x\n", info.eip); }


That doesn't give the address that caused the fault, though - does the sigsegv
handler have to disassemble the offending instruction and work out the
faulting address itself?


---- ---- ----
David Woodhouse, Robinson College, CB3 9AN, England. (+44) 0976 658355
Dave@imladris.demon.co.uk http://dwmw2.robinson.cam.ac.uk
finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.037 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site