MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / setOptions

Method setOptions

KittyMemoryEx/KittyTrace.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool 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
75bool KittyTraceMgr::detach()
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected