Re: gdb says that it can't compute the CFA

Darren Reed <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
On 15/06/2014 1:47 PM, Martin Husemann wrote:
> On Sun, Jun 15, 2014 at 03:51:19AM +1000, Darren Reed wrote:
>> Is there any way to get around this problem with gdb on sparc64?
>>
>> #3  0x0000000000103278 in main (
>>     argc=<error reading variable: can't compute CFA for this frame>,
>>     argv=<error reading variable: can't compute CFA for this frame>)
> 
> This is a general gcc 4.8 problem - depending on optimization and various
> other settings, debug info is not always available for some frames.
> Especially for -O0 it is unusable unless you specify things like 
> -fvar-tracking -fvar-tracking-assignments.

So why do we ship gcc 4.8 then? Wait, I don't want to know...

When the decision was made to go to gcc 4.8, was this issue known?
On second thoughts, I'm not sure I want to know the answer to that
either!

Darren
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.