This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/14108] New: symbase in elf_slurp_symbol_table memorywaste
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 14 May 2012 17:05:06 +0000
- Subject: [Bug symtab/14108] New: symbase in elf_slurp_symbol_table memorywaste
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14108
Bug #: 14108
Summary: symbase in elf_slurp_symbol_table memory waste
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
AssignedTo: unassigned@sourceware.org
ReportedBy: dje@google.com
Classification: Unclassified
It is not possible for the caller of bfd_canonicalize_symtab to free the
"symbase" object allocated by elf_slurp_symbol_table (bfd/elfcode.h).
The memory isn't wasted per se, it will be freed when the bfd is freed.
However, GDB has no need to keep it (at least for normal syms, there's a
comment in gdb/elfread.c about needing to keep dynamic syms, not sure it's
still valid or if it applies here). In large apps it can be a significant
waste of memory (e.g. 100's of MB).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.