From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30198 invoked by alias); 11 Feb 2014 08:10:39 -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 30188 invoked by uid 89); 11 Feb 2014 08:10:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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; Tue, 11 Feb 2014 08:10:34 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 8781726E097A; Tue, 11 Feb 2014 09:10:31 +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 3ycUiCkvkCth; Tue, 11 Feb 2014 09:10:31 +0100 (CET) Received: from [192.168.0.14] (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 3FE7A26E0975; Tue, 11 Feb 2014 09:10:30 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()". From: Tristan Gingold In-Reply-To: Date: Tue, 11 Feb 2014 08:10:00 -0000 Cc: gdb Content-Transfer-Encoding: quoted-printable Message-Id: <3CF55A16-41D5-4023-BF59-DB9E11C20EF5@adacore.com> References: To: Neal Kruis X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00027.txt.bz2 On 10 Feb 2014, at 22:27, Neal Kruis wro= te: > I have had no luck finding a solution to this problem. I recently > noticed that I get the following message before my program begins: >=20 > BFD: /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(= i386:x86-64): > unknown load command 0x20 >=20 > A google search for "gdb bfd unknown load command" shows a lot of > people having issues with non-apple versions of GDB on Mac OS X. I > would really like to use some of the newer features of GDB and still > develop on my MacBookPro, but if I can't get GDB to work I'll have to > try a different approach. >=20 > Can anybody confirm this problem on other Macs? Does anyone know of a sol= ution? As far as I know, the LAZY_LOAD_DYLIB command (0x20) isn't supported. If you really want to make progress on these issues, you should first create reproducers as small as possible, and file it to bugzilla. Regards, Tristan. >=20 > Thanks! >=20 > Neal Kruis >=20 > On Tue, Feb 4, 2014 at 10:31 AM, Neal Kruis > wrote: >> I am trying to debug a C++ program on Mac OS using a homebrew version >> of gdb. I think it works fine in my main() function, but elsewhere it >> gives me a warning when I try to look at the value of a variable: >>=20 >> Could not find the frame base for "Class::method()". >>=20 >> After scouring the internet, I am having a hard time understanding >> what this error means or finding out how to fix the problem. >>=20 >> Since Apple's Xcode command line tools are painfully out-of-date I >> needed to use my own homebrewed versions of gcc and gdb. I don't know >> if there is something in the setup for these tools that I might have >> missed. >>=20 >> Any thoughts? >>=20 >> My system: >> Mac OS X 10.8.5 (Mountain Lion) >> gcc 4.8.2 (homebrewed) (with -O0 and -g3) >> gdb 7.6.2 (homebrewed and codesigned) >>=20 >> This question is also posted on Stack Overflow if you want to answer it = there: >> http://stackoverflow.com/questions/21556868/how-do-i-get-a-homebrewed-ve= rsion-of-gdb-working-on-mac-os-x >>=20 >> Neal Kruis