2
我剛剛使用macports在我的Mac上使用sudo port install gdb
在我的Mac上安裝了最新的gdb。問題是當我在命令行輸入gdb
時,它仍然顯示舊版本。我怎樣才能切換到我剛安裝的新版本? 謝謝。如何在Mac Mountain上使用macports配置我的GDB版本Lion Lion
我剛剛使用macports在我的Mac上使用sudo port install gdb
在我的Mac上安裝了最新的gdb。問題是當我在命令行輸入gdb
時,它仍然顯示舊版本。我怎樣才能切換到我剛安裝的新版本? 謝謝。如何在Mac Mountain上使用macports配置我的GDB版本Lion Lion
類型:
port contents gdb
它給你的地方位於港口
/opt/local/bin/ggdb
/opt/local/include/ansidecl.h
/opt/local/include/bfd.h
/opt/local/include/bfdlink.h
/opt/local/include/dis-asm.h
/opt/local/include/gdb/jit-reader.h
/opt/local/include/symcat.h
/opt/local/lib/libbfd.a
/opt/local/lib/libbfd.la
/opt/local/lib/libopcodes.a
/opt/local/lib/libopcodes.la
...
正如你可以看到下面它被命名爲ggdb,而不是用gdb,當你用的MacPorts安裝了
ggdb
GNU gdb (GDB) 7.6
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-darwin11.4.2".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb)