diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-20 01:37:10 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-20 01:37:10 +0000 |
commit | 3c37485b16d873d9fd8d5d448dce60a2d890e286 (patch) | |
tree | 01b974afe0c43b13dc0a0efda5ce8f0cf4b1a6a4 /gdb/hp-psymtab-read.c | |
parent | 0e52036f1f47078a9863f6a377ff11e10a81e8c4 (diff) | |
download | gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.zip gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.tar.gz gdb-3c37485b16d873d9fd8d5d448dce60a2d890e286.tar.bz2 |
malloc() -> xmalloc.
Move malloc() decl to utils.c
Diffstat (limited to 'gdb/hp-psymtab-read.c')
-rw-r--r-- | gdb/hp-psymtab-read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/hp-psymtab-read.c b/gdb/hp-psymtab-read.c index 6b62985..ad001d3 100644 --- a/gdb/hp-psymtab-read.c +++ b/gdb/hp-psymtab-read.c @@ -118,7 +118,7 @@ hpread_call_pxdb (char *file_name) if (file_exists (PXDB_SVR4)) { - p = malloc (strlen (PXDB_SVR4) + strlen (file_name) + 2); + p = xmalloc (strlen (PXDB_SVR4) + strlen (file_name) + 2); strcpy (p, PXDB_SVR4); strcat (p, " "); strcat (p, file_name); @@ -946,7 +946,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits, static_syms); /* Set up to only enter each class referenced in this module once. */ - class_entered = malloc (B_BYTES (pxdb_header_p->cd_entries)); + class_entered = xmalloc (B_BYTES (pxdb_header_p->cd_entries)); B_CLRALL (class_entered, pxdb_header_p->cd_entries); /* Scan the procedure descriptors for procedures in the current @@ -1174,7 +1174,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits, static_syms); /* Set up to only enter each class referenced in this module once. */ - class_entered = malloc (B_BYTES (pxdb_header_p->cd_entries)); + class_entered = xmalloc (B_BYTES (pxdb_header_p->cd_entries)); B_CLRALL (class_entered, pxdb_header_p->cd_entries); /* Scan the procedure descriptors for procedures in the current |