相关疑难解决方法(0)

gdb失败,出现"无法找到process-id的Mach任务端口"错误

我的应用程序运行正常,但gdb无法调试它与以下错误

(gdb) run
Starting program: /path/to/app 
Unable to find Mach task port for process-id 83767: (os/kern) failure (0x5).
Run Code Online (Sandbox Code Playgroud)

我在OS X Lion上.GDB版本是

$ gdb --version
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty …
Run Code Online (Sandbox Code Playgroud)

macos gdb

132
推荐指数
5
解决办法
9万
查看次数

标签 统计

gdb ×1

macos ×1