mac gdb is codesigned

如果出现下面错误创建签名证书没用就用root账户运行:

Unable to find Mach task port for process-id 17884: (os/kern) failure (0x5).

 (please check gdb is codesigned - see taskgated(8))

终端运行就用:

sudo gdb

nvim-dap 中设置以 root 用户身份运行 GDB(GNU Debugger)就用:

sudo nvim 

你可能感兴趣的:(Mac,GDB)