在MacOS Catalina上共同设计GDB问题 [英] Codesigning GDB issues on MacOS Catalina

查看:198
本文介绍了在MacOS Catalina上共同设计GDB问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在Macbook Pro 13上设置gdb 2020年,运行MacOS Catalina v 10.15.5

I've been trying to set up gdb on my Macbook Pro 13" 2020, running MacOS Catalina v 10.15.5

我遵循了多篇有关GDB代码签名的教程。这是我所遵循的其中一个教程的链接,尽管我尝试了其他通过终端关闭taskgated的教程。 https://www.ics .uci.edu /〜pattis / common / handouts / macmingweclipse / allexperimental / mac-gdb-install.html

I've followed multiple tutorials on codesigning GDB to little luck. Here's a link to one of the tutorials I;ve followed, though I've tried others where taskgated is closed via the terminal. https://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html

我不确定自己在做什么错。这是我要执行代码签名的命令:

I'm unsure what I'm doing wrong. Here is the command I'm running to code sign:

codesign -fs gdb /usr/local/bin/gdb  

其中gdb是证书的名称,其中gdb 返回/ usr / local / bin / gdb

Where gdb is the name of the certificate and which gdb returns /usr/local/bin/gdb

每次尝试运行GDB时,都会出现错误:

Every time I try to run GDB, it gives the error:

Unable to find Mach task port for process-id 1398: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))

最后,我尝试添加将启动外壳关闭设置为〜/ .gdbinit,以得到类似的结果。

Finally, I tried adding set startup-with-shell off to ~/.gdbinit, to similar results.

推荐答案

我有一台配备Catalina的MacBook Pro 2015

I have a MacBook Pro 2015 with Catalina

我刚刚按照指南进行了安装,并对GDB进行了代码签名,一切都进行得很好。
的前几次尝试使我得到了相同的输出,而不是我以sudo的身份运行gdb并成功了。我的下一个问题是未处理的dyld版本16,似乎是GDB上游的错误

I just followed the guide to install and code sign GDB, all went well. first couple attempts I got the same output, than I ran gdb as sudo and it worked. My next problem is unhandled dyld version 16, seems to be a error upstream with GDB

这篇关于在MacOS Catalina上共同设计GDB问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆