标签:
到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)
标签:
原文地址:http://www.cnblogs.com/Kokman/p/5472168.html