MCPcopy Create free account
hub / github.com/WrBug/dumpDex / processThreadPC

Function processThreadPC

app/src/main/cpp/inlineHook.c:122–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static void processThreadPC(pid_t tid, struct inlineHookItem *item, int action) {
123 struct pt_regs regs;
124
125 if (ptrace(PTRACE_GETREGS, tid, NULL, &regs) == 0) {
126 if (item == NULL) {
127 int pos;
128
129 for (pos = 0; pos < info.size; ++pos) {
130 if (doProcessThreadPC(&info.item[pos], &regs, action) == true) {
131 break;
132 }
133 }
134 } else {
135 doProcessThreadPC(item, &regs, action);
136 }
137
138 ptrace(PTRACE_SETREGS, tid, NULL, &regs);
139 }
140}
141
142static pid_t freeze(struct inlineHookItem *item, int action) {
143 int count;

Callers 1

freezeFunction · 0.85

Calls 1

doProcessThreadPCFunction · 0.85

Tested by

no test coverage detected