aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-regex.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-02-12 21:03:12 +0000
committerFred Fish <fnf@specifix.com>1996-02-12 21:03:12 +0000
commit6405302d013c9afbbb1fe3390831e9b7879c4d59 (patch)
tree4b6ab4e2ebd3ab59cc0a4b35d6d904a8c88ea32c /gdb/gnu-regex.c
parent15ed5f2c3fc4625bba07fb731e7f281286c97fd0 (diff)
downloadgdb-6405302d013c9afbbb1fe3390831e9b7879c4d59.zip
gdb-6405302d013c9afbbb1fe3390831e9b7879c4d59.tar.gz
gdb-6405302d013c9afbbb1fe3390831e9b7879c4d59.tar.bz2
* 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.
Diffstat (limited to 'gdb/gnu-regex.c')
-rw-r--r--gdb/gnu-regex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gnu-regex.c b/gdb/gnu-regex.c
index 062fbc6..601e3b5 100644
--- a/gdb/gnu-regex.c
+++ b/gdb/gnu-regex.c
@@ -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.