From: Fred Fish Date: Sat, 13 Jul 1996 05:34:40 +0000 (+0000) Subject: * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d369b2139bb513f4650c3942abcf714697d36270;p=binutils-gdb.git * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather than xmalloc/xrealloc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0bbf5b7b3e..81fc1abe9c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 12 19:04:32 1996 Fred Fish + + * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather + than xmalloc/xrealloc. + Fri Jul 12 17:59:47 1996 Fred Fish * objfiles.c (map_to_file): Error return from mmalloc_findbase is diff --git a/gdb/hpread.c b/gdb/hpread.c index 63ce77c0662..981b9e63b10 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -1216,12 +1216,14 @@ hpread_lookup_type (hp_type, objfile) { TYPE_VECTOR_LENGTH (objfile) = 100; 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)) TYPE_VECTOR_LENGTH (objfile) *= 2; TYPE_VECTOR (objfile) = (struct type **) - xrealloc ((char *) TYPE_VECTOR (objfile), + xmrealloc (objfile -> md, + (char *) TYPE_VECTOR (objfile), (TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *))); memset (&TYPE_VECTOR (objfile)[old_len], 0, (TYPE_VECTOR_LENGTH (objfile) - old_len) *