summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@arc.com>1999-06-17 13:26:08 +0000
committerJoern Rennecke <joern.rennecke@arc.com>1999-06-17 13:26:08 +0000
commit804499b417489b92f436ebdd22e949715e6b2b71 (patch)
treec6e096eea505999502ddaaabe936fb8eab6063f9 /bfd
parenta265ec787f1dbad2093f7dd58d98f9d56565dc52 (diff)
downloadgdb-804499b417489b92f436ebdd22e949715e6b2b71.tar.gz
* dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
* (alloc_dwarf1_func): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/dwarf1.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8cb865c7893..c0128c0bc06 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
+
+ * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
+ * (alloc_dwarf1_func): Likewise.
+
Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
* libhppa.h: Fix various formatting errors.
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c
index cbcc26b0035..d87df92c10f 100644
--- a/bfd/dwarf1.c
+++ b/bfd/dwarf1.c
@@ -140,8 +140,8 @@ alloc_dwarf1_unit (stash)
struct dwarf1_debug* stash;
{
struct dwarf1_unit* x =
- (struct dwarf1_unit*) bfd_alloc (stash->abfd,
- sizeof (struct dwarf1_unit));
+ (struct dwarf1_unit*) bfd_zalloc (stash->abfd,
+ sizeof (struct dwarf1_unit));
x->prev = stash->lastUnit;
stash->lastUnit = x;
@@ -157,8 +157,8 @@ alloc_dwarf1_func (stash, aUnit)
struct dwarf1_unit* aUnit;
{
struct dwarf1_func* x =
- (struct dwarf1_func*) bfd_alloc (stash->abfd,
- sizeof (struct dwarf1_func));
+ (struct dwarf1_func*) bfd_zalloc (stash->abfd,
+ sizeof (struct dwarf1_func));
x->prev = aUnit->func_list;
aUnit->func_list = x;