How to specify which GDB (with full path) I can use in Xcode on MacOS? Thanks.
You can set the default PBXGDBPath user for Xcode to specify a different version of GDB to use Xcode.
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