Article View: gnu.gdb.bug
Article #8812Running gdb on an executable with many shared object libraries
From: Allan Steel
Date: Tue, 20 Oct 1992 01:10
Date: Tue, 20 Oct 1992 01:10
45 lines
2373 bytes
2373 bytes
I am trying to run gdb on a large executable program which consists of about
100 shared object libraries. When I run gdb I get the following:
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
(gdb) b main
Breakpoint 1 at 0x22a8: file ../main/main.c, line 5.
(gdb) r
Error while reading shared library symbols:
"/home/cayley/v4/libs/libmap.so.1.1": can't read symbols: File format not recognized.
"/home/cayley/v4/libs/libmat.so.1.1": not in executable format: File format not recognized.
(gdb)
ldd successfully finds these libraries:
> ldd vb
.....
-lmap.1 => /home/cayley/v4/libs/libmap.so.1.1
-lmat.1 => /home/cayley/v4/libs/libmat.so.1.1
.....
In fact, -lmap and -lmat are the 62nd & 63rd libraries respectively linked
in. There are 2 actual object files preceding the shared libraries:
crt0.o and main.o - thus the libraries -lmap & -lmat are the 64th & 65th
objects presumably. Possibly the number 64 is significant - gdb can't
handle any more shared libraries past that number?
System: Sun4m
OS: SunOS 4.1.2
Gdb version: 4.6
Thanks for any help,
Allan
--
+------------------------------------------------------------+
| Allan Steel allan@maths.su.oz.au |
| School of Mathematics and Statistics, University of Sydney |
+------------------------------------------------------------+
Technical Details
Message-ID:
<allan.719543402@dumas>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!maths.su.oz.au!allanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,597406d17a4f67ea,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1992-10-20 15:00:32 PST Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!maths.su.oz.au!allan From: allan@maths.su.oz.au (Allan Steel) Subject: Running gdb on an executable with many shared object libraries Message-ID: <allan.719543402@dumas> Summary: gdb doesn't seem to handle more than 64 shared object libraries Keywords: SunOS,shared objects Sender: gnulists@ai.mit.edu Organization: School of Mathematics and Statistics, University of Sydney Distribution: gnu Date: Tue, 20 Oct 1992 01:10:02 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 46