* hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
than xmalloc/xrealloc.
This commit is contained in:
parent
56f0ef83a6
commit
d369b2139b
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
|
||||||
|
|
||||||
|
* hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
|
||||||
|
than xmalloc/xrealloc.
|
||||||
|
|
||||||
Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
|
Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
|
||||||
|
|
||||||
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
|
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
|
||||||
|
|
|
@ -1216,12 +1216,14 @@ hpread_lookup_type (hp_type, objfile)
|
||||||
{
|
{
|
||||||
TYPE_VECTOR_LENGTH (objfile) = 100;
|
TYPE_VECTOR_LENGTH (objfile) = 100;
|
||||||
TYPE_VECTOR (objfile) = (struct type **)
|
TYPE_VECTOR (objfile) = (struct type **)
|
||||||
xmalloc (TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *));
|
xmmalloc (objfile -> md,
|
||||||
|
TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *));
|
||||||
}
|
}
|
||||||
while (index >= TYPE_VECTOR_LENGTH (objfile))
|
while (index >= TYPE_VECTOR_LENGTH (objfile))
|
||||||
TYPE_VECTOR_LENGTH (objfile) *= 2;
|
TYPE_VECTOR_LENGTH (objfile) *= 2;
|
||||||
TYPE_VECTOR (objfile) = (struct type **)
|
TYPE_VECTOR (objfile) = (struct type **)
|
||||||
xrealloc ((char *) TYPE_VECTOR (objfile),
|
xmrealloc (objfile -> md,
|
||||||
|
(char *) TYPE_VECTOR (objfile),
|
||||||
(TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *)));
|
(TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *)));
|
||||||
memset (&TYPE_VECTOR (objfile)[old_len], 0,
|
memset (&TYPE_VECTOR (objfile)[old_len], 0,
|
||||||
(TYPE_VECTOR_LENGTH (objfile) - old_len) *
|
(TYPE_VECTOR_LENGTH (objfile) - old_len) *
|
||||||
|
|
Loading…
Reference in New Issue