How to specify which GDB I can use in XCode on MacOS

后端 未结 1 571
灰色年华
灰色年华 2021-01-25 03:05

How to specify which GDB (with the full path) I can use in XCode on MacOS? Thank you.

相关标签:
1条回答
  • 2021-01-25 03:39

    You can set the PBXGDBPath user default for Xcode to specify a different version of GDB for Xcode to use.

    defaults write com.apple.Xcode PBXGDBPath <path/to/your/gdb>
    

    http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html#//apple_ref/doc/uid/TP40005535-CH3-SW54

    0 讨论(0)
提交回复
热议问题