This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb on Mac OSX 10.8.5 with Xcode 5


Hello,

I am running Max OSX 10.8.5 and Xcode 5. installed the Xcode command line tools and then installed gdb and cgdb using home-brew (since apparently Apple no longer keeps gdb around). I jumped through all the code-signing hoops. When I run gdb though, I have this happen:

GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin12.5.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /Users/perdue/Dropbox/Programming/Euler/Code/C/problem014/euler
014_pthr...Reading symbols from /Users/perdue/Dropbox/Programming/Euler/Code/C/probl
em014/euler014_pthr.dSYM/Contents/Resources/DWARF/euler014_pthr...done.
done.
(gdb) break main
Breakpoint 1 at 0x100000969: file euler014_pthr.c, line 27.
(gdb) set args 1
(gdb) run
Starting program: /Users/perdue/Dropbox/Programming/Euler/Code/C/problem014/./euler0
14_pthr 1

... and it just hangs there forever (it never gets to the first breakpoint). Any ideas what might be going wrong?

My hypothesis is that Apple has basically made gcc incompatible:

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

This looks basically the same as this...

$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
$ cc --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix


Thanks for any thoughts and comments.

pax
Gabe

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]