aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-13 07:24:30 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-13 07:24:30 +0000
commit346168a2c65e34dc6f2d073bbc0d158fb1aaa219 (patch)
tree2c1e1d19d889426541c4be6d08b0e4e3d50d9c24 /gdb/symfile.c
parent9342ecb9445e97793a516e97eff233e991b9d84d (diff)
downloadgdb-346168a2c65e34dc6f2d073bbc0d158fb1aaa219.zip
gdb-346168a2c65e34dc6f2d073bbc0d158fb1aaa219.tar.gz
gdb-346168a2c65e34dc6f2d073bbc0d158fb1aaa219.tar.bz2
* elfread.c (record_minimal_symbol_and_info): Kludged to put
extra info in the minimal symbol. (elf_symtab_read): The extra info is the size of an ELF object, which was kludged to us in the `udata' field of the BFD symbol. Gag me with a crowbar... (elf_symfile_read): Keep track of both the absolute load address, and the offset between load addr and symbols. Handle STABS as well as DWARF sections, passing the absolute load address to elfstab_build_psymtabs. * objfiles.c (free_objfile): Eliminate storage leaks. Contributed by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>. * symfile.c (symfile_bfd_open): Comment where name is freed. * symmisc.c (extend_psymbol_list): Comment where list is freed.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index de7f3a6..3ba11de 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -656,6 +656,7 @@ symfile_bfd_open (name)
}
free (name); /* Free 1st new malloc'd copy */
name = absolute_name; /* Keep 2nd malloc'd copy in bfd */
+ /* It'll be freed in free_objfile(). */
sym_bfd = bfd_fdopenr (name, NULL, desc);
if (!sym_bfd)