How to setup/using GDB 7 on MacOS Lion with MacPorts

前端 未结 2 1544
感情败类
感情败类 2021-02-13 05:22

I run into trouble using GDB 7 (7.3) on MacOS Lion.

What I did was:

$ sudo port install gdb

After that GDB was installed to: /opt/loca

2条回答
  •  再見小時候
    2021-02-13 06:09

    Try cgdb for now, it's actually pretty nice so far:

    sudo port install cgdb
    

    I don't claim to understand why the latest gdb sources have an issue on the mac, but I have the same issue as you and I tried cgdb and it works for me. Links for more information:

    • http://cgdb.sourceforge.net/
    • https://trac.macports.org/ticket/26450

提交回复
热议问题