equal
deleted
inserted
replaced
45 #define user_regs_struct pt_regs |
45 #define user_regs_struct pt_regs |
46 #endif |
46 #endif |
47 |
47 |
48 // This C bool type must be int for compatibility with Linux calls and |
48 // This C bool type must be int for compatibility with Linux calls and |
49 // it would be a mistake to equivalence it to C++ bool on many platforms |
49 // it would be a mistake to equivalence it to C++ bool on many platforms |
50 |
50 #ifndef __cplusplus |
51 typedef int bool; |
51 typedef int bool; |
52 #define true 1 |
52 #define true 1 |
53 #define false 0 |
53 #define false 0 |
|
54 #endif |
54 |
55 |
55 struct ps_prochandle; |
56 struct ps_prochandle; |
|
57 |
|
58 #ifdef __cplusplus |
|
59 extern "C" { |
|
60 #endif |
56 |
61 |
57 // attach to a process |
62 // attach to a process |
58 JNIEXPORT struct ps_prochandle* JNICALL |
63 JNIEXPORT struct ps_prochandle* JNICALL |
59 Pgrab(pid_t pid, char* err_buf, size_t err_buf_len); |
64 Pgrab(pid_t pid, char* err_buf, size_t err_buf_len); |
60 |
65 |
103 |
108 |
104 struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj); |
109 struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj); |
105 |
110 |
106 void throw_new_debugger_exception(JNIEnv* env, const char* errMsg); |
111 void throw_new_debugger_exception(JNIEnv* env, const char* errMsg); |
107 |
112 |
|
113 #ifdef __cplusplus |
|
114 } |
|
115 #endif |
|
116 |
108 #endif //__LIBPROC_H_ |
117 #endif //__LIBPROC_H_ |