From: Fred Fish Date: Tue, 1 Oct 1996 03:04:13 +0000 (+0000) Subject: * defs.h: Remove define of PRIVATE_XMALLOC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b51843d888b7f0f26303742b70b035fdd4abd652;p=binutils-gdb.git * defs.h: Remove define of PRIVATE_XMALLOC. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e567db8c1c7..3ac2a302ed7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +Mon Sep 30 20:02:45 1996 Fred Fish + + * defs.h: Remove define of PRIVATE_XMALLOC. + +start-sanitize-v850 +start-sanitize-v850 +Mon Sep 30 15:39:28 1996 Stu Grossman (grossman@critters.cygnus.com) + + * config/v850/tm-v850.h: Use distinct register for PC, not EIPC. + +end-sanitize-v850 Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com) * top.c (execute_control_command): Free values from while_control diff --git a/gdb/defs.h b/gdb/defs.h index f64bda69153..eb3f85cdde1 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -45,7 +45,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #endif -#define PRIVATE_XMALLOC 1 /* Suppress libiberty decls for xmalloc/xrealloc */ #include "libiberty.h" /* libiberty.h can't declare this one, but evidently we can. */ @@ -474,23 +473,21 @@ enum val_prettyprint #include "fopen-same.h" #endif +/* Microsoft C can't deal with const pointers */ + +#ifdef _MSC_VER +#define CONST_PTR +#else +#define CONST_PTR const +#endif + /* - * Allow things in gdb to be declared "const". If compiling ANSI, it - * just works. If compiling with gcc but non-ansi, redefine to __const__. - * If non-ansi, non-gcc, then eliminate "const" entirely, making those + * Allow things in gdb to be declared "volatile". If compiling ANSI, it + * just works. If compiling with gcc but non-ansi, redefine to __volatile__. + * If non-ansi, non-gcc, then eliminate "volatile" entirely, making those * objects be read-write rather than read-only. */ -#ifndef const -#ifndef __STDC__ -# ifdef __GNUC__ -# define const __const__ -# else -# define const /*nothing*/ -# endif /* GNUC */ -#endif /* STDC */ -#endif /* const */ - #ifndef volatile #ifndef __STDC__ # ifdef __GNUC__ @@ -625,8 +622,11 @@ extern char *getenv PARAMS ((const char *)); /* From other system libraries */ -#ifdef __STDC__ +#ifdef HAVE_STDDEF_H #include +#endif + +#ifdef HAVE_STDLIB_H #include #endif @@ -646,11 +646,17 @@ extern double atof PARAMS ((const char *)); /* X3.159-1989 4.10.1.1 */ #ifndef MALLOC_INCOMPATIBLE +#ifdef NEED_DECLARATION_MALLOC extern PTR malloc (); +#endif +#ifdef NEED_DECLARATION_REALLOC extern PTR realloc (); +#endif +#ifdef NEED_DECLARATION_FREE extern void free (); +#endif #endif /* MALLOC_INCOMPATIBLE */