From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29021 invoked by alias); 10 Feb 2014 21:27:58 -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 29009 invoked by uid 89); 10 Feb 2014 21:27:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-we0-f169.google.com Received: from mail-we0-f169.google.com (HELO mail-we0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 10 Feb 2014 21:27:56 +0000 Received: by mail-we0-f169.google.com with SMTP id t61so4764371wes.28 for ; Mon, 10 Feb 2014 13:27:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=6q1XgzL913KuaNMJ949ZJ39poiWTk9rqnxRUAj3S/hw=; b=Zr6yIp/6jjz55xJI6deAQWIIsSY1TQx09vsfeBuLzWr8vZyL3IoVta5PApTowwLc8r V7skaBW2VvM6mU4ubYcbEWWPMWYuSrR+hs3a2R5QHoeqqlzbfhcdHZhBGYfJPSUH34LZ pNc4yXUtodDIxPGIxOf2i8Ssp3/LFWpZRwujJfVycul/lzJnKt7UQ4IwC6p5Mac2U/Yt 9PPueC4gR+4JwxQZ0s3luUT6YADtKDfo0ATpJvdzepfghWDYEETW7lTkHRtSBC/3fDcQ Q1JhSdM8chpnjVjFihrtiL4cRWFgVv0cTj/YuRofrBzPzNx0gFacg2QmMA7WkzYC6D5n 3b1Q== X-Gm-Message-State: ALoCoQnpjUF2Wt/6QIWAba0U4T/5YtQVT0I6w5kRyw93LwttXTa6cIc1TAmXQJ2jzvkiSHi3/YyJ X-Received: by 10.180.85.234 with SMTP id k10mr12108138wiz.32.1392067673141; Mon, 10 Feb 2014 13:27:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.78.244 with HTTP; Mon, 10 Feb 2014 13:27:33 -0800 (PST) In-Reply-To: References: From: Neal Kruis Date: Mon, 10 Feb 2014 21:27:00 -0000 Message-ID: Subject: Re: GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()". To: gdb Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00026.txt.bz2 I have had no luck finding a solution to this problem. I recently noticed that I get the following message before my program begins: BFD: /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(i386:x86-64): unknown load command 0x20 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. Can anybody confirm this problem on other Macs? Does anyone know of a solution? Thanks! Neal Kruis 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: > > Could not find the frame base for "Class::method()". > > After scouring the internet, I am having a hard time understanding > what this error means or finding out how to fix the problem. > > 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. > > Any thoughts? > > 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) > > 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-version-of-gdb-working-on-mac-os-x > > Neal Kruis