xterm報錯如下:
Attaching to process 9636
Could not attach to process.? If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.? For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
解決方案:
打開文件:?/etc/sysctl.d/10-ptrace.conf
修改:kernel.yama.ptrace_scope = 1 改為0
接著:sudo service procps restart
完成泛豪!
參考:https://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process