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

前端 未结 2 1542
感情败类
感情败类 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 05:52

    On Maverick follow this instructions that use homebrew. It seems that Apple's new system makes it hard to use gdb... http://ntraft.com/installing-gdb-on-os-x-mavericks/

    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题