How to get a quot;codesignedquot; gdb on OSX?(如何获得“编码OSX上的gdb?)
问题描述
因为我需要一个支持 Python 的 gdb
,所以我通过
Because I need a Python-enabled gdb
, I installed another version via
brew tap homebrew/dupes
brew install gdb
我想在 Eclipse CDT 中使用这个 gdb
,我在调试设置中输入了二进制文件的路径.但是,启动调试程序失败并显示以下消息:
I want to use this gdb
with Eclipse CDT, where I entered the path to the binary in the Debugging settings. However, launching a program for debugging fails with the following message:
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
在这种情况下,codesigned"是什么意思?我怎样才能让这个 gdb
运行?
What does "codesigned" mean in this context? How can I get this gdb
running?
推荐答案
看来您需要对可执行文件进行签名.有关更多信息,请参阅这些链接.如果您不打算重新分发该版本的 gdb
,您应该能够摆脱自签名.
It would seem you need to sign the executable. See these links for more information. You should be able to get away with self signing if you don't plan on redistributing that version of gdb
.
https://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man1/codesign.1.html
或者,您可以在系统上禁用代码签名,尽管这会带来安全风险.为此,请尝试在终端中运行 sudo spctl --master-disable
.
Alternatively, you could disable code signing on your system, although this presents a security risk. To do so try running sudo spctl --master-disable
in the Terminal.
这篇关于如何获得“编码"OSX上的gdb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何获得“编码"OSX上的gdb?
基础教程推荐
- 您如何将 CreateThread 用于属于类成员的函数? 2021-01-01
- C++ 程序在执行 std::string 分配时总是崩溃 2022-01-01
- 调用std::Package_TASK::Get_Future()时可能出现争用情况 2022-12-17
- 如何定义双括号/双迭代器运算符,类似于向量的向量? 2022-01-01
- 运算符重载的基本规则和习语是什么? 2022-10-31
- C++ 标准:取消引用 NULL 指针以获取引用? 2021-01-01
- 如何在 C++ 中处理或避免堆栈溢出 2022-01-01
- 什么是T&&(双与号)在 C++11 中是什么意思? 2022-11-04
- C++,'if' 表达式中的变量声明 2021-01-01
- 设计字符串本地化的最佳方法 2022-01-01