* GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()".
@ 2014-02-04 17:32 Neal Kruis
2014-02-10 21:27 ` Neal Kruis
0 siblings, 1 reply; 3+ messages in thread
From: Neal Kruis @ 2014-02-04 17:32 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()".
2014-02-04 17:32 GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()" Neal Kruis
@ 2014-02-10 21:27 ` Neal Kruis
2014-02-11 8:10 ` Tristan Gingold
0 siblings, 1 reply; 3+ messages in thread
From: Neal Kruis @ 2014-02-10 21:27 UTC (permalink / raw)
To: gdb
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
<neal.kruis@bigladdersoftware.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()".
2014-02-10 21:27 ` Neal Kruis
@ 2014-02-11 8:10 ` Tristan Gingold
0 siblings, 0 replies; 3+ messages in thread
From: Tristan Gingold @ 2014-02-11 8:10 UTC (permalink / raw)
To: Neal Kruis; +Cc: gdb
On 10 Feb 2014, at 22:27, Neal Kruis <neal.kruis@bigladdersoftware.com> wrote:
> 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?
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.
>
> Thanks!
>
> Neal Kruis
>
> On Tue, Feb 4, 2014 at 10:31 AM, Neal Kruis
> <neal.kruis@bigladdersoftware.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-11 8:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 17:32 GDB 7.6.2 on Mac OS: Could not find the frame base for "Class::method()" Neal Kruis
2014-02-10 21:27 ` Neal Kruis
2014-02-11 8:10 ` Tristan Gingold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox