“please check gdb is codesigned - see taskgated(8)” - How to get gdb installed with homebrew code signed?

前端 未结 10 784
栀梦
栀梦 2020-12-02 04:20

I\'m under osx 10.8.4 and have installed gdb 7.5.1 with homebrew (motivation get a new gdb with new features such as --with-python etc... )

Long story short when I

10条回答
  •  误落风尘
    2020-12-02 04:44

    I made gdb work on OSX 10.9 without codesigning this way (described here):

    1. Install gdb with macports. (may be you can skip it)

    2. sudo nano /System/Library/LaunchDaemons/com.apple.taskgated.plist

      change option string from -s to -sp at line 22, col 27.

    3. Reboot the computer.

    4. Use gdb. If you installed it with mac ports then you must use ggdb command. Or made an alias in your config file:

    alias gdb='ggdb'

    and use 'gdb' command then.

提交回复
热议问题