This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: gdb seg violation during print command
- To: David Cogen <cogen at ll dot mit dot edu>
- Subject: Re: gdb seg violation during print command
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Thu, 4 May 2000 12:44:46 -0700 (PDT)
- cc: kettenis at wins dot uva dot nl, gdb at sourceware dot cygnus dot com, cogen at poblano
Errr, i forgot you are on a sparc.
Hmmmmm.
Try adding a line or three to main that do nothing.
On Thu, 4 May 2000, David Cogen wrote:
> > It's also possible the bug you are experiencing is that the compiler is
> > putting the line note in the wrong place, and it's not breaking till the
> > program is really done, and cerr doesn't exist properly.
> >
> > Try -gdwarf-2, see if it helps.
>
> redsavina% g++ -gdwarf-2 -o test test.cc
> ld: fatal: relocation error: R_SPARC_32: file /tmp/ccwCKbbB.o: symbol <unknown>: offset 0xfea2c82f is non-aligned
>
> collect2: ld returned 1 exit status
> redsavina%
>
> Thanks for the suggestion. But as you see, it made it worse :)
>
> -- DavidC
>