ubuntu GDB 无法挂接正在运行的程序 ???

hqh2010_9 2016-10-16 12:25:33
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)
...全文
174 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

24,855

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧