Re: __darwin_i386_exception_state, cr2 and faultvaddr
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:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=CkIFN6ON5txQXm1a5t3uCl2xoqmWlkIz5XTF6svUJNQ=; b=UfFO6HvJkCh7P1Jje77h/8PldDMhfwkoLmap5oVfptbirYJdvRYtau5oCwENYKF+VC PckQLCtK9VMYNuwZ3X7Ysomlfc30qXO9xUsl/c/m4HZgwG25uzdJHOmQToRuqLcyWTCU vO6C7NuOgV7ShQh+EuT1Rd5VFWaOj9VDxQ6v8= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=w1AaSd9MhOj8TVz+IDPupdIHvwHjbAIFjGtwM/+Gl/cg8iml3gXo6AyDCnXMteabgm 6G/aX67q8p014FkQ0rzgk0PG0gooPE5bwuoe7CpNVB+YE6q7zq8hSzFb0SEwJncuwOgV uB3e+1BioTMLrrRJu94RV1oMKRNjywA0T+cn4= Terry, On Jan 19, 2009, at 10:35 PM, Terry Lambert wrote: What is GP2? Is this the EIP in the saved registers or the faultvaddr? Do you mean getcontext (man ucontext)? According to the sigaction manpage, the handler has this interface void handler(int, siginfo_t *info, ucontext_t *uap); so the user context (thread state?) is given. What am I missing? Thanks, 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... The GP2 does not get the faulting address on i385 if it is in the 64 bit hole. Otherwise it is the faulting address. I need to get hold of the return EIP, I think, i.e. the address I will be going back to. Don't expect siginfo to not change. Unless you are a debugger, and rev every time week rev the os, expect your code to break. A call to getthreadstate is a better bet. This email sent to site_archiver@lists.apple.com
participants (1)
-
Joel Reymont