Re: Request for info on ppc_thread_state and i386_thread_state structure
Re: Request for info on ppc_thread_state and i386_thread_state structure
- Subject: Re: Request for info on ppc_thread_state and i386_thread_state structure
- From: Wincent Colaiuta <email@hidden>
- Date: Wed, 25 Jul 2007 19:45:07 +0200
El 25/7/2007, a las 18:32, Fritz Anderson escribió:
Look for _structs.h in the /usr/include tree. There are several.
How I found it:
-- Googled ppc_thread_state, and found some sample code using that
struct.
-- Noted the headers in the sample code, and picked thread_status.h
as a likely candidate.
-- Did a locate (you may have to run /usr/libexec/locate.updatedb
first for this to work) to find a thread_status.h for ppc.
-- Saw that thread_status.h included a _structs.h header, which
seemed likely to include declarations of structs.
-- Did a locate on _structs.h.
-- Opened one with ppc in its path.
-- Found a definition for ppc_thread_state. ppc_float_state is in
the same header.
The analogous search for i386_(thread|float)_state I leave up to you.
Another way:
$ grep -R ppc_thread_state /usr/include/*
/usr/include/mach/ppc/_types.h: * ppc_thread_state is the structure
that is exported to user threads for
/usr/include/mach/ppc/_types.h:struct ppc_thread_state
/usr/include/mach/ppc/_types.h:struct __darwin_ppc_thread_state
/usr/include/mach/ppc/_types.h:struct ppc_thread_state64 {
/usr/include/mach/ppc/thread_status.h: * ppc_thread_state is the
structure that is exported to user threads for
/usr/include/mach/ppc/thread_status.h:typedef struct
ppc_thread_state ppc_thread_state_t;
/usr/include/mach/ppc/thread_status.h:typedef struct
__darwin_ppc_thread_state ppc_thread_state_t;
/usr/include/mach/ppc/thread_status.h:typedef struct
ppc_thread_state64 ppc_thread_state64_t;
/usr/include/mach/ppc/thread_status.h:typedef struct
ppc_thread_state ppc_saved_state_t;
/usr/include/mach/ppc/thread_status.h: (sizeof
(ppc_thread_state_t) / sizeof(int)))
/usr/include/mach/ppc/thread_status.h: (sizeof
(ppc_thread_state64_t) / sizeof(int)))
/usr/include/mach-o/ppc/swap.h:extern void swap_ppc_thread_state_t(
/usr/include/mach-o/ppc/swap.h: ppc_thread_state_t *cpu,
/usr/include/ppc/ucontext.h: struct ppc_thread_state ss;
/usr/include/ppc/ucontext.h: struct
__darwin_ppc_thread_state ss;
/usr/include/ppc/ucontext.h: struct ppc_thread_state64 ss;
Cheers,
Wincent
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden