macports を使用して、Mac に最新の gdb をインストールしましたsudo port install gdb
。問題はgdb
、コマンドラインに入力すると、まだ古いバージョンが表示されることです。インストールしたばかりの新しいものに切り替えるにはどうすればよいですか? ありがとう。
1176 次
1 に答える
2
タイプ :
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
...
以下に示すように、MacPorts でインストールした場合は gdb ではなく、ggdb という名前になっています。
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)
于 2013-10-06T12:47:20.990 に答える