aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-02-12 22:13:18 +0000
committerFred Fish <fnf@specifix.com>1996-02-12 22:13:18 +0000
commitc37c7c6ca3fa434247cdc43c212c83ad4be2741f (patch)
treeae034e40f8c6622e83ad753014bf6c36f5d8a6e4 /gdb/remote-mips.c
parent1d0e0732763491c3d06cabd03cf71372111f472b (diff)
downloadgdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.zip
gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.gz
gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.bz2
* somsolib.c (som_solib_add): Use xmalloc rather than bare
unchecked call to malloc. * remote-mips.c (pmon_load_fast): ditto. * remote-mm.c (mm_open): ditto. * hpread.c (hpread_lookup_type): ditto. * remote-adapt.c (adapt_open): ditto.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 68d61b7..27bcf86 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -2705,8 +2705,8 @@ pmon_load_fast (file)
int final;
int finished = 0;
- buffer = (char *)malloc(MAXRECSIZE + 1);
- binbuf = (unsigned char *)malloc(BINCHUNK);
+ buffer = (char *)xmalloc(MAXRECSIZE + 1);
+ binbuf = (unsigned char *)xmalloc(BINCHUNK);
abfd = bfd_openr(file,0);
if (!abfd)