码迷,mamicode.com
首页 > 数据库 > 详细

gdb在Mac上的安装步骤

时间:2016-05-08 23:55:27      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:

到gdb官网下载gdb安装包,解压后,在“终端”中进入其目录:然后依次执行如下命令行: 

1st:CFLAGS=‘-Wno-string-plus-int -g -O2‘ ./configure --disable-Werror

2nd:make

3rd:sudo make install

以上命令执行完成后,键入如下命令:

gdb 

终端显示如下:

GNU gdb (GDB) 7.6.1

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

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-darwin13.0.0".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

(gdb) 

 

表明编译安装成功。
 

gdb在Mac上的安装步骤

标签:

原文地址:http://www.cnblogs.com/Kokman/p/5472168.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!