Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] elimnate MALLOC_INCOMPATIBLE
@ 2002-01-19 20:08 Andrew Cagney
  2002-01-20  0:31 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2002-01-19 20:08 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

Hello,

The attached eliminates the xm*.h macro MALLOC_INCOMPATIBLE.  Only SunOS 
  4.x was defining it and more recent changes have made it unnecessary.

This in turn lets the xm file be deleted.

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 2815 bytes --]

2002-01-19  Andrew Cagney  <ac131313@redhat.com>

	* utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
	* config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
	* config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
	* config/sparc/xm-sun4os4.h: Delete file.
	* config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
	
Index: doc/ChangeLog
2002-01-19  Andrew Cagney  <ac131313@redhat.com>

	* gdbint.texinfo (Host Definition): Remove references to
	MALLOC_INCOMPATIBLE.

Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.56
diff -p -r1.56 utils.c
*** utils.c	2002/01/20 00:44:47	1.56
--- utils.c	2002/01/20 04:02:01
***************
*** 62,68 ****
  #include "mmalloc.h"
  #endif
  
- #ifndef MALLOC_INCOMPATIBLE
  #ifdef NEED_DECLARATION_MALLOC
  extern PTR malloc ();
  #endif
--- 62,67 ----
*************** extern PTR realloc ();
*** 71,77 ****
  #endif
  #ifdef NEED_DECLARATION_FREE
  extern void free ();
- #endif
  #endif
  
  #undef XMALLOC
--- 70,75 ----
Index: config/sparc/nm-sun4os4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/nm-sun4os4.h,v
retrieving revision 1.4
diff -p -r1.4 nm-sun4os4.h
*** nm-sun4os4.h	2001/03/14 23:23:14	1.4
--- nm-sun4os4.h	2002/01/20 04:02:05
***************
*** 36,38 ****
--- 36,42 ----
  
  #define KERNEL_U_SIZE kernel_u_size()
  extern int kernel_u_size (void);
+ 
+ /* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */
+ 
+ #define PTRACE_ARG3_TYPE char*
Index: config/sparc/sun4os4.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/sun4os4.mh,v
retrieving revision 1.3
diff -p -r1.3 sun4os4.mh
*** sun4os4.mh	2002/01/18 04:51:08	1.3
--- sun4os4.mh	2002/01/20 04:02:05
***************
*** 1,5 ****
  # Host: Sun 4 or Sparcstation, running SunOS 4
- XM_FILE= xm-sun4os4.h
  NAT_FILE= nm-sun4os4.h
  NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o
  HOST_IPC=-DBSD_IPC
--- 1,4 ----
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.56
diff -p -r1.56 gdbint.texinfo
*** gdbint.texinfo	2002/01/18 04:51:10	1.56
--- gdbint.texinfo	2002/01/20 04:03:50
*************** This macro is used as the argument to @c
*** 2206,2215 ****
  @code{bfd_seek}).  FIXME, should be replaced by SEEK_SET instead,
  which is the POSIX equivalent.
  
- @item MALLOC_INCOMPATIBLE
- Define this if the system's prototype for @code{malloc} differs from the
- @sc{ansi} definition.
- 
  @item MMAP_BASE_ADDRESS
  When using HAVE_MMAP, the first mapping should go at this address.
  
--- 2206,2211 ----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] elimnate MALLOC_INCOMPATIBLE
  2002-01-19 20:08 [patch] elimnate MALLOC_INCOMPATIBLE Andrew Cagney
@ 2002-01-20  0:31 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2002-01-20  0:31 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches


On Sat, 19 Jan 2002, Andrew Cagney wrote:

> 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
> 
> 	* gdbint.texinfo (Host Definition): Remove references to
> 	MALLOC_INCOMPATIBLE.

Approved.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-20  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-19 20:08 [patch] elimnate MALLOC_INCOMPATIBLE Andrew Cagney
2002-01-20  0:31 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox