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

前端 未结 10 758
栀梦
栀梦 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 05:03

    I can recommend to follow this gist: https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d#file-codesign_gdb-md

    With trick to overcome: unknown error = -2,147,414,007 during Certificate Creation described here: https://apple.stackexchange.com/a/309123

    Notes:

    Path for gdb installed as homebrew package should be something like: /usr/local/Cellar/gdb/9.2/bin/gdb

    And csrutil enable --without debug will cause a message about requesting unsupported configuration, like here: https://totalfinder.binaryage.com/system-integrity-protection

    Test:

    ○ → sw_vers -productVersion
    10.13.6
    
    ○ → gdb ./a.out
    GNU gdb (GDB) 9.2
    ...
    Thread 3 hit Breakpoint 1, main () at main.c:14
    14          data_t d = {0};
    

提交回复
热议问题