From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7318 invoked by alias); 5 Feb 2014 12:24:21 -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 7307 invoked by uid 89); 5 Feb 2014 12:24:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=4.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: sam.nabble.com Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 05 Feb 2014 12:24:20 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WB1Wc-0004CM-Cs for gdb@sourceware.org; Wed, 05 Feb 2014 04:24:18 -0800 Date: Wed, 05 Feb 2014 12:24:00 -0000 From: eranon To: gdb@sourceware.org Message-ID: <1391603058245-259756.post@n7.nabble.com> Subject: 'Cannot find bounds of current function' when stepping with GDB 7.6 under OS X 10.6 / LLVM GCC 4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2014-02/txt/msg00010.txt.bz2 Hello. I'm porting a wxWidgets-based app towards Mac. For this, my dev station is under OS X 10.6 Snow Leopard with the Xcode 4.2 tools (but I'm using Codeblocks as IDE). I built wxWidgets 3.0.0 and my own project using the Apple flavor of GCC (aka. LLVM GCC 4.2), indicating arch i386. My problem is about debugging : to be able to plug a pretty printer for seeing the wxWidgets structure (e.g. wxString), I need a Python-enabled gdb, and the one provided by Apple in the Xcode tools is not. So, I've taken a try with FSF gdb 7.6 as per http://sourceware.org/gdb/wiki/BuildingOnDarwin, but I experience the impossibility to go step by step. Not talking about IDE, but launching gdb from the command line, the first breakpoint is honored, but using the "n" command to execute one step at a time, I get this error : "cannot find bounds of current function". Since the Apple gdb is still under /usr/bin/, I call the FSF gdb 7.6 with its absolute path (tried with an in-place use and with make install under /usr/local/bin and it give the same result/error). Of course, at this step not any pretty printer Python script is involved (it will be the next stage if I solve my current issue). I tried to rebuild my project passing an explicit "-ggdb" option rather than the implicit "-g", but it doesn't change anything (same error during stepping). So, what to do ? Do you have an idea about the reason why ? Is it because of incompatible debug info, an issue about arch, a too big gap between the LLVM GCC 4.2 and FSF GDB 7.6... ? I need your lighted advice for sure... -- View this message in context: http://sourceware-org.1504.n7.nabble.com/Cannot-find-bounds-of-current-function-when-stepping-with-GDB-7-6-under-OS-X-10-6-LLVM-GCC-4-2-tp259756.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.