add stuff scavenged from various other gdb-related Xcode plugins

Change-Id: I9ecea92826490ccdfb153b6ad02b845fa2b97915