34 #include "libproc_md.h" |
40 #include "libproc_md.h" |
35 #endif |
41 #endif |
36 |
42 |
37 #include <sys/ptrace.h> |
43 #include <sys/ptrace.h> |
38 |
44 |
|
45 #if defined(mips) || defined(mipsel) || defined(mips64) || defined(mips64el) |
|
46 #include <asm/ptrace.h> |
|
47 #endif |
39 /************************************************************************************ |
48 /************************************************************************************ |
40 |
49 |
41 0. This is very minimal subset of Solaris libproc just enough for current application. |
50 0. This is very minimal subset of Solaris libproc just enough for current application. |
42 Please note that the bulk of the functionality is from proc_service interface. This |
51 Please note that the bulk of the functionality is from proc_service interface. This |
43 adds Pgrab__ and some missing stuff. We hide the difference b/w live process and core |
52 adds Pgrab__ and some missing stuff. We hide the difference b/w live process and core |
67 |
76 |
68 *************************************************************************************/ |
77 *************************************************************************************/ |
69 |
78 |
70 |
79 |
71 #if defined(sparc) || defined(sparcv9) || defined(ppc64) |
80 #if defined(sparc) || defined(sparcv9) || defined(ppc64) |
|
81 #define user_regs_struct pt_regs |
|
82 #endif |
|
83 |
|
84 #if defined(mips) || defined(mipsel) || defined(mips64) || defined(mips64el) |
72 #define user_regs_struct pt_regs |
85 #define user_regs_struct pt_regs |
73 #endif |
86 #endif |
74 |
87 |
75 // This C bool type must be int for compatibility with Linux calls and |
88 // This C bool type must be int for compatibility with Linux calls and |
76 // it would be a mistake to equivalence it to C++ bool on many platforms |
89 // it would be a mistake to equivalence it to C++ bool on many platforms |