This is the mail archive of the
mailing list for the GDB project.
Re: gdb on Mac OSX 10.8.5 with Xcode 5
- From: Eric Christopher <echristo at gmail dot com>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: Gabriel Perdue <gnperdue at gmail dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Mon, 2 Dec 2013 15:47:53 -0800
- Subject: Re: gdb on Mac OSX 10.8.5 with Xcode 5
- Authentication-results: sourceware.org; auth=none
- References: <A4396169-A2B0-471A-9883-4425FC50F242 at gmail dot com> <9028903E-619F-42CC-9C50-EF5D78532458 at adacore dot com>
On Wed, Nov 6, 2013 at 12:44 AM, Tristan Gingold <email@example.com> wrote:
> On Nov 5, 2013, at 4:45 PM, Gabriel Perdue <firstname.lastname@example.org> wrote:
>> 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:
>> 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
>> (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 :-(
This isn't going to be a clang issue (given I use fsf-gdb all the time
with it), more an OSX issue. I'd try avoiding dSYM files first and see
where that gets you.