From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27071 invoked by alias); 6 Feb 2014 15:31:50 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 27008 invoked by uid 89); 6 Feb 2014 15:31:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 06 Feb 2014 15:31:48 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id BB17926E0706; Thu, 6 Feb 2014 16:31:45 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jOfOektT_lfp; Thu, 6 Feb 2014 16:31:45 +0100 (CET) Received: from [192.168.0.13] (mtg95-3-82-238-192-125.fbx.proxad.net [82.238.192.125]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 7711226E06CA; Thu, 6 Feb 2014 16:31:45 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: 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 In-Reply-To: <1391699417056-259908.post@n7.nabble.com> Date: Thu, 06 Feb 2014 15:31:00 -0000 Cc: "gdb@sourceware.org Development" Content-Transfer-Encoding: quoted-printable Message-Id: <71D481D3-CF88-453D-9BB5-561D6AEFE8A9@adacore.com> References: <1391603058245-259756.post@n7.nabble.com> <1391699417056-259908.post@n7.nabble.com> To: eranon X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00019.txt.bz2 On 06 Feb 2014, at 16:10, eranon wrote: > What I get could look like what expressed in this thread :=20 > http://sourceware-org.1504.n7.nabble.com/gdb-can-not-debug-hello-world-in= -mac-os-x-td107600.html >=20 > In addition to the error I told about, at the same time, hitting the "n" > command, I get something like this too : >=20 > (gdb) n=20 > 0x00003045 in ?? () >=20 > 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 v= ersion 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 t= hem (it passes -no_compact_unwind to ld).