gdb在Mac上的安装步骤

到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) 

 

表明编译安装成功。
 

posted on 2016-05-08 22:58  Kokman  阅读(784)  评论(0编辑  收藏  举报

导航