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

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
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.

Martin
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.