gdb 8.2 can't recognized executable file on macOS Mojave 10.14

后端 未结 8 682
感情败类
感情败类 2020-11-30 19:05

I get gdb by brew install gdb.

The source file content is:

#include 
int main(){
    int a = 10;
    for(int i = 0; i<          


        
8条回答
  •  抹茶落季
    2020-11-30 20:03

    The answer by timotheecour above did work for me:

    brew install https://raw.githubusercontent.com/timotheecour/homebrew-timutil/master/gdb_tim.rb

    Then I had to generate a generate a self-signed certificate as in https://www.thomasvitale.com/how-to-setup-gdb-and-eclipse-to-debug-c-files-on-macos-sierra/

提交回复
热议问题