博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【macOS】macOS安装gdb 2018.12
阅读量:4207 次
发布时间:2019-05-26

本文共 1160 字,大约阅读时间需要 3 分钟。

lldb的插件不太会用,因此尝试在macOS上安装一下gdb,还是遇到很多问题,暂且记录一下。很快brew应该就更新了,到时直接brew  install gdb即可。

20181212最终安装方案:

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/cb7a4c1b8e52220ed8d5d382268e5a36fad99815/Formula/gdb.rb --HEAD

方法二(未尝试),切换到gdb8.0.1 

给gdb签名

- https://www.jianshu.com/p/ce2d77d7d1c4

- https://blog.csdn.net/am290333566/article/details/81186399

注:我使用 codesign -v /usr/local/bin/gdb 代码签名后,还是会遇到错误,暂时未解决,所以我是sudo gdb启动程序的。如果有解决的同学麻烦评论告诉我~

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

最终的gdb版本

➜  ~ gdbGNU gdb (GDB) 8.2.50.20181212-gitCopyright (C) 2018 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.Type "show copying" and "show warranty" for details.This GDB was configured as "x86_64-apple-darwin18.2.0".Type "show configuration" for configuration details.For bug reporting instructions, please see:
.Find the GDB manual and other documentation resources online at:
.For help, type "help".

 

参考:

你可能感兴趣的文章
numpy 矩阵形状调整:拉伸、变成一位数组
查看>>
numpy 数组叠加
查看>>
numpy 花式索引,ix_
查看>>
python numpy 数组如何对每个元素进行操作
查看>>
numpy sorted对字典进行排列
查看>>
matplotlib 制作原始数据的散点图
查看>>
python 列举文件夹下面的文件
查看>>
python append和entend的区别
查看>>
python 引用传值、赋值
查看>>
python matplotlib 画注解图
查看>>
python pickle序列化存储
查看>>
set集合的合并
查看>>
numpy的getA()/getA1()/getH()/getI()函数
查看>>
linux screen
查看>>
python 的map与zip 函数
查看>>
python numpy中nonzero()的用法
查看>>
数据库中的空值与NULL的区别以及python中的NaN和None
查看>>
python pandas消除空值和空格以及 Nan数据替换
查看>>
pandas中apply函数的用法
查看>>
python---pandas.merge使用
查看>>