* dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
* (alloc_dwarf1_func): Likewise.
This commit is contained in:
parent
2f3519a231
commit
aec89efbf6
2 changed files with 9 additions and 4 deletions
|
@ -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)
|
Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* libhppa.h: Fix various formatting errors.
|
* libhppa.h: Fix various formatting errors.
|
||||||
|
|
|
@ -140,8 +140,8 @@ alloc_dwarf1_unit (stash)
|
||||||
struct dwarf1_debug* stash;
|
struct dwarf1_debug* stash;
|
||||||
{
|
{
|
||||||
struct dwarf1_unit* x =
|
struct dwarf1_unit* x =
|
||||||
(struct dwarf1_unit*) bfd_alloc (stash->abfd,
|
(struct dwarf1_unit*) bfd_zalloc (stash->abfd,
|
||||||
sizeof (struct dwarf1_unit));
|
sizeof (struct dwarf1_unit));
|
||||||
x->prev = stash->lastUnit;
|
x->prev = stash->lastUnit;
|
||||||
stash->lastUnit = x;
|
stash->lastUnit = x;
|
||||||
|
|
||||||
|
@ -157,8 +157,8 @@ alloc_dwarf1_func (stash, aUnit)
|
||||||
struct dwarf1_unit* aUnit;
|
struct dwarf1_unit* aUnit;
|
||||||
{
|
{
|
||||||
struct dwarf1_func* x =
|
struct dwarf1_func* x =
|
||||||
(struct dwarf1_func*) bfd_alloc (stash->abfd,
|
(struct dwarf1_func*) bfd_zalloc (stash->abfd,
|
||||||
sizeof (struct dwarf1_func));
|
sizeof (struct dwarf1_func));
|
||||||
x->prev = aUnit->func_list;
|
x->prev = aUnit->func_list;
|
||||||
aUnit->func_list = x;
|
aUnit->func_list = x;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue