site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=qgx8MDb5Ca/rBrMPIrikoVLZi9LwpM/CdKtKQ4YBm9o=; b=NcIR8O4w+F7TjT/blKYXtj2U+M1OMza/N5/jGRUXPnRIonlbH+eYgPpPooyE+q4Uwj L13ejI8pzpD/v3J4hLkZ8OjYdFlBO1ksrPL70M3Lg3KXKPFa4dou4FdeW4oF60dUpPFe BOveVo2bJloNGErtmC0lKYidqtaxINQCaQzlA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=SVcFLiKQU1Uilom4jvpk+fmUek7dngm3/p8wWGUXaGfAQENxFX5J+tQlLjhCc+VAjK 5bSTBHtcSlRIs7veIEAD/eAmy4vlUGfTLjqcbTgTPeJw+elnS7oOJJI8l9cBLOSe1cTo 9aQYY1FDRetSTGBZj6crUHxdc4Y5YHBukxQVM= What do these stand for and how are they used? The signal number is obvious but the return EIP is not. Thanks in advance, Joel --- --- http://twitter.com/wagerlabs _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I've been looking at /usr/include/mach/i386/_structs.h and xnu/bsd/dev/ i386/unix_signal.c (sendsig) for quite a while but I don't understand the purpose of faultvaddr and user_cr2. I have a hunch that this is the trap address but will it match EIP in saved registers? I need to grab the signal number and the return EIP in my signal handler. #if __DARWIN_UNIX03 #define _STRUCT_X86_EXCEPTION_STATE32 struct __darwin_i386_exception_state _STRUCT_X86_EXCEPTION_STATE32 { unsigned int __trapno; unsigned int __err; unsigned int __faultvaddr; }; #else /* !__DARWIN_UNIX03 */ This email sent to site_archiver@lists.apple.com