Re: libraries have no symbols
On Sat, Sep 19, 1998 at 05:31:31PM +0200, [EMAIL PROTECTED] wrote: On Sun, Sep 20, 1998 at 01:14:30AM +1000, Hamish Moffatt wrote: Why do the system libraries not have symbols? They do have some symbols in them. Try e.g. nm --dynamic --defined-only /lib/libc.so.6 Hmmm, okay. So why doesn't gdb use them? Is that only my system, or everyone's? I think this is normal. I believe the dynamic libraries are stripped to keep them small. If you need the symbols in the library for debuggging, you can link your executable statically. The static libraries are not stripped. HTH, Eric -- E.L. Meijer ([EMAIL PROTECTED]) | tel. office +31 40 2472189 Eindhoven Univ. of Technology | tel. lab. +31 40 2475032 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax+31 40 2455054
Re: libraries have no symbols
On Sat, Sep 19, 1998 at 05:31:31PM +0200, [EMAIL PROTECTED] wrote: On Sun, Sep 20, 1998 at 01:14:30AM +1000, Hamish Moffatt wrote: Why do the system libraries not have symbols? They do have some symbols in them. Try e.g. nm --dynamic --defined-only /lib/libc.so.6 Hmmm, okay. So why doesn't gdb use them? Is that only my system, or everyone's? Hamish -- Hamish Moffatt VK3TYD [EMAIL PROTECTED], [EMAIL PROTECTED] Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5 CCs of replies from mailing lists are welcome. http://hamish.home.ml.org
libraries have no symbols
Most of the system libraries do not have any symbols in them; certainly all the core ones don't like libc. This makes it hard to debug programs, because you can't see any library calls made. I have installed libc6-dbg, but it makes no difference, although I think I've been told in the past that it should. I don't know gdb well and I've never messed with any configuration, but I thought it should pick up the symbols automatically. It appears the only way to use the debugging libraries right now is to link -static, but I don't have time right now to download 4mb of lesstifg-dbg just to debug some Motif stuff. Why do the system libraries not have symbols? /lib/libc.so.1 on Solaris 2.6 certainly has symbols! And gdb uses them too. thanks, Hamish -- Hamish Moffatt VK3TYD [EMAIL PROTECTED], [EMAIL PROTECTED] Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5 CCs of replies from mailing lists are welcome. http://hamish.home.ml.org
Re: libraries have no symbols
On Sun, Sep 20, 1998 at 01:14:30AM +1000, Hamish Moffatt wrote: Why do the system libraries not have symbols? They do have some symbols in them. Try e.g. nm --dynamic --defined-only /lib/libc.so.6 Ray -- ART A friend of mine in Tulsa, Okla., when I was about eleven years old. I'd be interested to hear from him. There are so many pseudos around taking his name in vain. - The Hipcrime Vocab by Chad C. Mulligan