[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add stack base support for Mac OS X
From: |
Kevin Ryde |
Subject: |
Re: [PATCH] Add stack base support for Mac OS X |
Date: |
Wed, 27 Dec 2006 09:04:11 +1100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Heikki Lindholm <address@hidden> writes:
>
> Uh, say what?
Do you have a pointer to the docs of pthread_get_stackaddr_np on
macos? I stuck it in a search somewhere at developer.apple but drew a
blank.
In any case I'll add this if it looks right, thanks.
+#elif HAVE_PTHREAD_GET_STACKADDR_NP
+/* This method for MacOS X. */
+#define HAVE_GET_THREAD_STACK_BASE
+static SCM_STACKITEM *
+get_thread_stack_base ()
+{
+ return pthread_get_stackaddr_np (pthread_self ());
+}
+