| 61 | } |
| 62 | |
| 63 | bool KittyTraceMgr::setOptions(int options) |
| 64 | { |
| 65 | errno = 0; |
| 66 | if (ptrace(PTRACE_SETOPTIONS, _pid, nullptr, options) == -1L) |
| 67 | { |
| 68 | KITTY_LOGE("PTRACE_SETOPTIONS failed for pid %d. \"%s\".", _pid, strerror(errno)); |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | return true; |
| 73 | } |
| 74 | |
| 75 | bool KittyTraceMgr::detach() |
| 76 | { |
nothing calls this directly
no outgoing calls
no test coverage detected