equal
deleted
inserted
replaced
372 .p_pwrite= process_write_data, |
372 .p_pwrite= process_write_data, |
373 .get_lwp_regs= process_get_lwp_regs |
373 .get_lwp_regs= process_get_lwp_regs |
374 }; |
374 }; |
375 |
375 |
376 // attach to the process. One and only one exposed stuff |
376 // attach to the process. One and only one exposed stuff |
377 JNIEXPORT struct ps_prochandle* |
377 JNIEXPORT struct ps_prochandle* JNICALL |
378 Pgrab(pid_t pid, char* err_buf, size_t err_buf_len) { |
378 Pgrab(pid_t pid, char* err_buf, size_t err_buf_len) { |
379 struct ps_prochandle* ph = NULL; |
379 struct ps_prochandle* ph = NULL; |
380 thread_info* thr = NULL; |
380 thread_info* thr = NULL; |
381 |
381 |
382 if ( (ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle))) == NULL) { |
382 if ( (ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle))) == NULL) { |