This is the mail archive of the
mailing list for the GDB project.
GDB 5.1 on Solaris 2.8
- From: Dan Nicolaescu <dann at godzilla dot ICS dot UCI dot EDU>
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 23 Nov 2001 08:55:39 -0800
- Subject: GDB 5.1 on Solaris 2.8
> I've just built GDB 5.1 on Solaris 2.8, and I have a problem: GDB says
> there's no debugging symbols in every executable I find, even though
> were compiled and linkes with -g. dbx does find the debugging info.
> >From what I see, GDB does find the minimal symbols, since I can put
> breakpoints, but it cannot find the source line information.
> This is the first time I build GDB on Solaris, so I don't know whether
> this is a known issue (not a word in README, though), or maybe I
> during the build.
> The compiler used to compile GDB and the programs I try to debug was
> SunWspro ANSI C compiler.
> Any ideas are welcome.
It sounds that this is due to the fact that Sun's compiler+linker do not
put the full debugging information in the binary by default.
They only put some minimal debug info in the binary and leave the
rest in the object files.
Try compiling with -g -xs and see if you can debug then.