site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Is there a way to do that without relying on a fragile API? ... HAL_SavedRegisters regs; regs.edi = SIGCONTEXT_MEMBER( context, edi ); regs.esi = SIGCONTEXT_MEMBER( context, esi ); ...etc... } Is there an alternative way to implement this? On Aug 12, 2009, at 11:16:46, Rick Mann wrote: Any ideas? TIA, Rick _______________________________________________ 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/rmann%40latencyzero.com _______________________________________________ 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'm guessing I'm going to need to change this code. It uses ucontext to get the sigcontext, and then uses that to save off some registers and optionally deal with some error state. I can (probably) post some of our code if it helps. But we basically do this: #if defined( HAVE_BSD_STYLE_SIGNALS ) #define SIGCONTEXT_MEMBER(x, y) ( static_cast< unsigned long >( x-
sc_##y ) )
#endif void Global_sigaction_handler( int signum, siginfo_t *sinfo, void *arg ) { struct ucontext * uc = reinterpret_cast<struct ucontext *>( arg ); struct sigcontext * context = (struct sigcontext *)&uc-
uc_mcontext; I have some code that was compiling when the project was set to 10.4 or "Use Base SDK" (I'm not really sure what that means. In my project, Base SDK is set to 10.5). But if I compile it with 10.5 (the Overview menu), it fails in a lot of ways, including issues around ucontext and sigcontext. I'm not able to significantly change this code. It's deep in our custom OS code. Is it just a matter of changing the name of the struct we're referencing or include a different header? This email sent to rmann@latencyzero.com
This email sent to site_archiver@lists.apple.com