This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: 'Cannot find bounds of current function' when stepping with GDB 7.6 under OS X 10.6 / LLVM GCC 4.2
- From: Tristan Gingold <gingold at adacore dot com>
- To: eranon <eric dot anon at laposte dot net>
- Cc: "gdb at sourceware dot org Development" <gdb at sourceware dot org>
- Date: Thu, 6 Feb 2014 16:31:44 +0100
- Subject: Re: 'Cannot find bounds of current function' when stepping with GDB 7.6 under OS X 10.6 / LLVM GCC 4.2
- Authentication-results: sourceware.org; auth=none
- References: <1391603058245-259756 dot post at n7 dot nabble dot com> <1391699417056-259908 dot post at n7 dot nabble dot com>
On 06 Feb 2014, at 16:10, eranon <eric.anon@laposte.net> wrote:
> What I get could look like what expressed in this thread :
> http://sourceware-org.1504.n7.nabble.com/gdb-can-not-debug-hello-world-in-mac-os-x-td107600.html
>
> In addition to the error I told about, at the same time, hitting the "n"
> command, I get something like this too :
>
> (gdb) n
> 0x00003045 in ?? ()
>
> So, the question is maybe : What FSF gdb version should I use to debug a
> i386 DEBUG build coming from the LLVM GCC 4.2 shipped with Xcode 4.2 under
> OS X 10.6 (and I have OS X 10.8 with Xcode 4.6 too, but didn't installed my
> dev environment in full under this station yet) ?
I am almost sure that FSF gdb doesn't support binaries produced by recent version of
LLVM shipped by xcode. They use compact unwinding, which isn't handled by gdb.
This is on my todo list, but not that urgent because FSF gcc doesn't emit them (it
passes -no_compact_unwind to ld).