aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-10-01 03:04:13 +0000
committerFred Fish <fnf@specifix.com>1996-10-01 03:04:13 +0000
commitb51843d888b7f0f26303742b70b035fdd4abd652 (patch)
treedc5d717de60fd9bb969945600b39734ba0a0821c /gdb
parent77f7bfd835cfe6517f35eb7801bf750ca67d0137 (diff)
downloadgdb-b51843d888b7f0f26303742b70b035fdd4abd652.zip
gdb-b51843d888b7f0f26303742b70b035fdd4abd652.tar.gz
gdb-b51843d888b7f0f26303742b70b035fdd4abd652.tar.bz2
* defs.h: Remove define of PRIVATE_XMALLOC.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog11
-rw-r--r--gdb/defs.h36
2 files changed, 32 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e567db8..3ac2a30 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,14 @@
+Mon Sep 30 20:02:45 1996 Fred Fish <fnf@cygnus.com>
+
+ * 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 f64bda6..eb3f85c 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 <varargs.h>
#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 <stddef.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#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 */