Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos mac os big sur 11.2.3上的gdb-找不到进程id 46414:(os/kern)故障(0x5)的Mach任务端口_Macos_Gdb_Codesign - Fatal编程技术网

Macos mac os big sur 11.2.3上的gdb-找不到进程id 46414:(os/kern)故障(0x5)的Mach任务端口

Macos mac os big sur 11.2.3上的gdb-找不到进程id 46414:(os/kern)故障(0x5)的Mach任务端口,macos,gdb,codesign,Macos,Gdb,Codesign,我创建gdb.cert并运行以下操作: killall taskgated codesign -fs gdb.cert /usr/local/bin/gdb 但它不起作用,给出了错误: Starting program: <path> Unable to find Mach task port for process-id 46414: (os/kern) failure (0x5). (please check gdb is codesigned - see taskgate

我创建gdb.cert并运行以下操作:

killall taskgated
codesign -fs gdb.cert /usr/local/bin/gdb
但它不起作用,给出了错误:

Starting program: <path> 
Unable to find Mach task port for process-id 46414: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
启动程序:
找不到进程id 46414:(os/kern)故障(0x5)的Mach任务端口。
(请检查gdb是否进行了代码签名-请参阅taskgated(8))

我该怎么办?

我相信你已经读过这篇文章了

我也是,作为MacOs BigSur 11.4版(20F71)的用户,我通过使用sudo运行gdb找到了解决方案。和sudo一起跑吧