src/jdk.hotspot.agent/linux/native/libsaproc/ps_proc.c
branchihse-remove-mapfiles-branch
changeset 56721 01b558efd286
parent 56109 5bf57be44328
parent 49440 396ea30afbd5
child 56873 af61810ccd5b
equal deleted inserted replaced
56118:edf8a95b46e5 56721:01b558efd286
   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) {