测试平台:macbook air 2012 , os x 10.9.2 , eclipse 4.3

 

在升级了 10.9 之后,eclipse 的CDT 无法正常使用了

 

异常表现:

 

1. 文件乱码

2. command + b 后异常的错误(编译异常)

3.  Launch Failed Binary Not Found

4. eclipse 无法debug 

 

 

 

 

解决方法:

 

1. project--properties--resources--text file encoding --other--uft-8

2. Project > Properties > C/C++ General > Preprocessor Include Paths, Macros etc.

 

查看"Providers" 选项, 如果 "CDT GCC Built-in Compiler Settings MinGW [shared]" 没有选择,那么就选上,然后点击"Apply" and “Ok".

 

3. Project > Properties > C/C++ Build > Settings > Binary Parsers : Make sure "Mach-O 64 Parser is selected"

 

4. 因为10.9 移除了gdb 所以无法debug。解决方法

     4.1 安装brew:在terminal 中输入 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

    4.2 brew doctor

    4.3 使用brew在线安装GDB调试器:

        $ brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gdb.rb

    4.4 Codesigning gdb

        4.4.1 Y

ou need to create a certificate and sign gdb:

 

2. Open application “Keychain Access” (/Applications/Utilities/Keychain Access.app)

 

3. Open menu /Keychain Access/Certificate Assistant/Create a Certificate...

Choose a name (gdb-cert in the example), set “Identity Type” to “Self Signed Root”, set “Certificate Type” to “Code Signing” and select the “Let me override defaults”. Click “Continue”.

 

4. You might want to extend the predefined 365 days period to 3650 days.

 

5. Click several times on “Continue” until you get to the “Specify a Location For The Certificate” screen, then set “Keychain to System”.

 

6. If you can't store the certificate in the “System” keychain, create it in the “login” keychain, then export it. You can then import it into the “System” keychain.

 

7. In keychains select “System”, and you should find your new certificate. Use the contextual menu for the certificate, select “Get Info”, open the “Trust” item, and set “Code Signing” to “Always Trust”.

 

8.You must quit “Keychain Access” application in order to use the certificate and restart 

“taskgated” service by killing the current running “taskgated” process. Alternatively you can restart your computer.

 

9. Finally you can sign gdb:

 

      $ codesign -s gdb-cert /usr/local/bin/gdb

参考连接:

http://wiki.lazarus.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5 

http://ntraft.com/installing-gdb-on-os-x-mavericks/

最新文章

  1. Jquery、简单的下拉列表、网页左部导航菜单
  2. 常见HTTP状态码(200、301、302、500等)
  3. codeforces 700A As Fast As Possible 二分求和?我觉得直接解更好
  4. MyBatis dao层 方法传参
  5. 分享下VellLock源代码。。。VellLock正式开源
  6. 2016 GDCPC 省赛总结
  7. Linux 下开启ssh服务(转)
  8. [译]反-反汇编 & 混淆 #1: 苹果没有遵循自己制定的Mach-O规范?
  9. kali系统教程:创建热点
  10. ELK入门使用-与springboot集成
  11. 阿里ECS配置MSSQL远程连接的坑
  12. .net core 使用MD5加密解密字符串
  13. PIC单片机基础1
  14. 将 notepad++ 添加到鼠标右键菜单 带图标
  15. Dockerfile详解及优化
  16. 算法:输入一个链表,输出该链表中倒数第k个结点。
  17. 如何消除原生Android网络状态上的惊叹号
  18. hdu2476
  19. Apache Spark 2.2.0 正式发布
  20. NUCLEO-F767ZI评测 NUCLEO-F767ZI入门教程CubeMX

热门文章

  1. c++11-bind的用法
  2. mysql索引之组合索引
  3. FCKeditor插件开发实例:uploadify多文件上传插件
  4. jquery 实现 隐藏交替同时记住以前隐藏的样式
  5. ASP.NET MVC3快速入门——第四节、添加一个模型
  6. svn: “sqlite: attempt to write a readonly database”
  7. Check iO:初学Python
  8. 简单实用后台任务执行框架(Struts2+Spring+AJAX前端web界面可以获取进度)
  9. libeXosip2(2) -- General purpose API.
  10. Web UI 网站用户界面设计命名规范