Commit ea23d540 by Richard Kenner Committed by Richard Kenner

mips-tdump.c (read_seek): Call xmalloc, not malloc.

	* mips-tdump.c (read_seek): Call xmalloc, not malloc.
	* mips-tfile.c: Don't #undef rindex; not used.

From-SVN: r40366
parent 0f7fa3d0
Sat Mar 10 10:36:45 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* mips-tdump.c (read_seek): Call xmalloc, not malloc.
* mips-tfile.c: Don't #undef rindex; not used.
Sat Mar 10 14:34:59 CET 2001 Jan Hubicka <jh@suse.cz> Sat Mar 10 14:34:59 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.h (DBX_REGISTER_NUMBER): Return proper values for 64bits. * i386.h (DBX_REGISTER_NUMBER): Return proper values for 64bits.
......
...@@ -291,7 +291,7 @@ read_seek (ptr, size, offset, context) ...@@ -291,7 +291,7 @@ read_seek (ptr, size, offset, context)
if (size == 0) /* nothing to read */ if (size == 0) /* nothing to read */
return ptr; return ptr;
if ((ptr == (PTR_T) 0 && (ptr = malloc (size)) == (PTR_T) 0) if ((ptr == (PTR_T) 0 && (ptr = xmalloc (size)) == (PTR_T) 0)
|| (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1) || (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1)
|| (read_size = read (tfile_fd, ptr, size)) < 0) || (read_size = read (tfile_fd, ptr, size)) < 0)
{ {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
contain debugging information specified by the GNU compiler contain debugging information specified by the GNU compiler
in the form of comments (the mips assembler does not support in the form of comments (the mips assembler does not support
assembly access to debug information). assembly access to debug information).
Copyright (C) 1991, 1993, 1994, 1995, 1997, 1998, Copyright (C) 1991, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001
1999, 2000 Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Michael Meissner (meissner@cygnus.com). Contributed by Michael Meissner (meissner@cygnus.com).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -662,9 +662,8 @@ main () ...@@ -662,9 +662,8 @@ main ()
#else /* MIPS_DEBUGGING defined */ #else /* MIPS_DEBUGGING defined */
/* The local and global symbols have a field index, so undo any defines /* The local and global symbols have a field index, so undo any defines
of index -> strchr and rindex -> strrchr. */ of index -> strchr. */
#undef rindex
#undef index #undef index
#include <signal.h> #include <signal.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment