* f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,

allocate_saved_f77_common_node, allocate_common_entry_node,
	add_common_block): Use xmalloc rather than malloc, some of which
	were unchecked.
	* gnu-regex.c: At same point as other gdb specific changes
	#undef malloc and then #define it to xmalloc.
	* ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
	bare unchecked calls to malloc/realloc.
	* stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
 	unchecked call to malloc.
This commit is contained in:
Fred Fish
1996-02-12 21:03:12 +00:00
parent 15ed5f2c3f
commit 6405302d01
5 changed files with 26 additions and 34 deletions

View File

@@ -34,6 +34,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "defs.h"
#include "gdb_string.h"
#undef malloc
#define malloc xmalloc
/*
* Define the syntax stuff, so we can do the \<...\> things.