Re: gdb on Mac OSX 10.8.5 with Xcode 5

Tristan Gingold <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On Nov 5, 2013, at 4:45 PM, Gabriel Perdue <[email protected]> wrote:

> 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?

I have never tested fsf-gdb with clang.  So no ideas :-(

Tristan.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.