#define __DARWIN_NAT_H__
#include <mach/mach.h>
+#include "gdbthread.h"
/* Describe the mach exception handling state for a task. This state is saved
before being changed and restored when a process is detached.
DARWIN_MESSAGE
};
-struct private_thread_info
+struct darwin_thread_info : public private_thread_info
{
/* The thread port from a GDB point of view. */
thread_t gdb_port;
/* The last exception received. */
struct darwin_exception_msg event;
};
-typedef struct private_thread_info darwin_thread_t;
+typedef struct darwin_thread_info darwin_thread_t;
+
+static inline darwin_thread_info *
+get_darwin_thread_info (class thread_info *thread)
+{
+ return static_cast<darwin_thread_info *> (thread->priv.get ());
+}
/* Describe an inferior. */
struct darwin_inferior : public private_inferior