agent/src/os/linux/ps_core.c

changeset 485
485d403e94e1
parent 435
a61af66fc99e
child 631
d1605aabd0a1
equal deleted inserted replaced
484:31000d79ec71 485:485d403e94e1
516 } 516 }
517 return false; 517 return false;
518 } 518 }
519 519
520 static ps_prochandle_ops core_ops = { 520 static ps_prochandle_ops core_ops = {
521 release: core_release, 521 .release= core_release,
522 p_pread: core_read_data, 522 .p_pread= core_read_data,
523 p_pwrite: core_write_data, 523 .p_pwrite= core_write_data,
524 get_lwp_regs: core_get_lwp_regs 524 .get_lwp_regs= core_get_lwp_regs
525 }; 525 };
526 526
527 // read regs and create thread from NT_PRSTATUS entries from core file 527 // read regs and create thread from NT_PRSTATUS entries from core file
528 static bool core_handle_prstatus(struct ps_prochandle* ph, const char* buf, size_t nbytes) { 528 static bool core_handle_prstatus(struct ps_prochandle* ph, const char* buf, size_t nbytes) {
529 // we have to read prstatus_t from buf 529 // we have to read prstatus_t from buf

mercurial