diff options
author | Fred Fish <fnf@specifix.com> | 1996-07-13 05:34:40 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-07-13 05:34:40 +0000 |
commit | d369b2139bb513f4650c3942abcf714697d36270 (patch) | |
tree | 0504ee608a4d6bf2d0af2ecc9124db5148db72b5 /gdb/hpread.c | |
parent | 56f0ef83a6f9f82b4b4862b3b5e314ae8b0453c9 (diff) | |
download | gdb-d369b2139bb513f4650c3942abcf714697d36270.zip gdb-d369b2139bb513f4650c3942abcf714697d36270.tar.gz gdb-d369b2139bb513f4650c3942abcf714697d36270.tar.bz2 |
* hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
than xmalloc/xrealloc.
Diffstat (limited to 'gdb/hpread.c')
-rw-r--r-- | gdb/hpread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c index 63ce77c..981b9e6 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) * |