当在mac上使用gdb
调试程序时遇到如下错误提示:
Unable to find Mach task port for process-id 47072: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
解决方法:
使用下列命令
sudo gdb prog_name
Unable to find Mach task port for process-id 47072: (os/kern) failure (0x5). (please check gdb is c
最新推荐文章于 2025-05-20 11:57:34 发布