Coding 极简派

GDB 7.7版本以上OSO archive file问题

尚未解决

用homebrew 直接install了最新版本的gdb(7.10),在用来debug的时候却遭遇了问题.
可以打断点,但是run 会出现如下的warning

1
2
3
4
5
6
warning: Could not open OSO archive file "/BinaryCache/corecrypto/corecrypto-233.1.2~26/Symbols/BuiltProducts/libcorecrypto_static.a"
warning: `/BinaryCache/coreTLS/coreTLS-35.1.2~1/Objects/coretls.build/coretls.build/Objects-normal/x86_64/system_coretls_vers.o': can't open to read symbols: No such file or directory.
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~1/Symbols/BuiltProducts/libcoretls_ciphersuites.a"
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~1/Symbols/BuiltProducts/libcoretls_handshake.a"
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~1/Symbols/BuiltProducts/libcoretls_record.a"
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~1/Symbols/BuiltProducts/libcoretls_stream_parser.a"

google了一番, 这个问题尚未得到解决,在github上被推成upstream问题,可以去这里看这个问题讨论,可以subscribe等待之后的解决情况.

如果还想用gdb只有downgrade回去7.7版本了

brew install old version of gdb

它的ruby脚本在这里

可以直接如下安装

1
brew install https://gist.githubusercontent.com/ymyzk/10ad2b74af9235eddb2c/raw/9d0b9734ea01f9753a5f54dd221acd99ee7e53e8/gdb.rb
xubing wechat
奇闻共欣赏,疑义相与析.欢迎来我的微信公众号