Not sure if this is suitable for Stack Overflow or here.

I'm having some problems with GDB in Xcode and I wonder if it isn't a problem with what version I'm on. I have Snow Leopard and Xcode 3.2.6. The GDB version that I believe is being used by Xcode is:

GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)

My version in Fink, for example, is:

GNU gdb (GDB) 7.4.1

I believe I can't go any higher than Xcode 3.2.6 without at least upgrading to Lion.

Can anyone tell me what version of GDB they have with their corresponding Xcode? I want to know if its worth it for me to switch to Lion or Mountain Lion just for this.

  • 1
    This is best suited for StackOverflow. Please post this question there.
    – duci9y
    Sep 21, 2012 at 8:01
  • As programming (apart from AppleScript and Automator) is off topic here, I agree. I've flagged the question as off-topic, maybe a mod can move it.
    – pmdj
    Sep 21, 2012 at 15:08
  • Yes, please switch to Stackoverflow or should I just repost it there.
    – emiller
    Sep 24, 2012 at 4:47

1 Answer 1


The version on my system (Mountain Lion, XCode 4.5 is:

GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug  5 03:00:42 UTC 2012)

Basically, 6.3 is the last version covered by the GPLv2 license, everything past that is subject to GPLv3. Apple does not distribute any GPLv3 software, presumably as it would seriously hinder their patent lawsuits. (this is also why OSX or XCode no longer ship with Samba or GCC newer than 4.2)

By the way, the last version of XCode for Snow Leopard is 4.2, but as far as I know this is only available in the downloads section to iOS or Mac developer program subscribers.

  • It looks like they no longer offer 6.2, only the latest version which requires Lion or later.
    – emiller
    Sep 24, 2012 at 4:47
  • @emiller if you go to developer.apple.com/downloads/index.action?name=Xcode and log in with your Apple ID, you should see an "Xcode 4.2 for Snow Leopard" on page 2. (dated 12 Oct 2011) Again I think this is only available to those who have paid for one of the 2 developer programs. Anyway, for the purposes of gdb this is fairly irrelevant, as Apple have only applied minor patches between versions for the reasons mentioned above.
    – pmdj
    Sep 24, 2012 at 10:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .