word_t instr = peek_reg(tracee, CURRENT, INSTR_POINTER);
Dl_info info;
dladdr(reinterpret_cast<const void *>(instr), &info);
if(info.dli_fname!= nullptr&&info.dli_sname!= nullptr){
PLOGE("ptrace pc symbol %s %s ",info.dli_fname,info.dli_sname)
} else{
PLOGE("ptrace pc symbol == null %s ",dlerror())
}
Because tracee and tracer are two processes, you can not write this, and the info content you is null。
Is there another good way to get the function symbol that tracee is executing I can now get the full register of tracee。