Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
authorJohn Gilmore <gnu@cygnus>
Fri, 6 Nov 1992 11:05:08 +0000 (11:05 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 6 Nov 1992 11:05:08 +0000 (11:05 +0000)
commit59c84bd8d574c3f19753507966eec4b3d81ef663
treec00d5564361012d4e984d9864f723283e2f96bf6
parent8a96d79b70cca5e535ed5f83df0063b8a6d081da
Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
when debugging a program with 100 shared libraries.

* solib.c (solib_map_sections):  Always close the BFD we open.
Free all malloc'd storage we allocate, too, including error cases.
(struct so_list):  Remove unused so_bfd member.
(clear_solib):  Don't bother closing so_bfd.

* symfile.c (symfile_bfd_open):  Mark newly opened BFD as
cacheable.  `So many symbol files, so little file descriptors.'
gdb/ChangeLog