ubuntu GDB 无法挂接正在运行的程序 ???
ubuntu GDB无法挂接正在运行的程序调试,具体错误见附件,麻烦各路大神解答下,不胜感激。。。
hqhroot 3770 0.0 0.0 2032 568 pts/4 S+ 13:21 0:00 ./gdb_attach2
hqhroot 3771 0.0 0.2 6660 2800 pts/7 R+ 13:21 0:00 ps aux
hqhroot@ubuntu:~$ gdb at 3770
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
at: 没有那个文件或目录.
Attaching to process 3770
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: 不允许的操作.
/home/hqhroot/3770: 没有那个文件或目录.
(gdb)