summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-07-27 00:51:29 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-07-27 00:51:29 +0000
commit5d50f2fe7aa15827ed4a04a5be9582ea2e5ca091 (patch)
tree1692c123233fe019a158d7e6fa283e8a214dc97a /gdb/symfile.c
parent3f18bf53f6f3910e3ccec25fcb1acf27e6afd7ef (diff)
downloadgdb-5d50f2fe7aa15827ed4a04a5be9582ea2e5ca091.tar.gz
import gdb-1999-07-26 snapshot
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 5a9bf6374a5..fcf8326ee74 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -471,6 +471,7 @@ default_symfile_offsets (objfile, addr)
objfile->num_sections = SECT_OFF_MAX;
section_offsets = (struct section_offsets *)
obstack_alloc (&objfile->psymbol_obstack, SIZEOF_SECTION_OFFSETS);
+ memset (section_offsets, 0, SIZEOF_SECTION_OFFSETS);
for (i = 0; i < SECT_OFF_MAX; i++)
ANOFFSET (section_offsets, i) = addr;