GDB kind of doesn't work on macOS Sierra

前端 未结 8 772
梦毁少年i
梦毁少年i 2020-12-02 07:55

It is a problem that appeared when I first updated to macOS Sierra yesterday.

GDB itself is running OK. However, somehow, it cannot run my program. When I type \'run

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 08:09

    This works for me:

    • Unlink current gdb: brew unlink gdb

    • Install gdb 8.0.1: brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9ec9fb27a33698fc7636afce5c1c16787e9ce3f3/Formula/gdb.rb

    • Optional: avoid upgrade gdb with brew pin gdb

提交回复
热议问题