* gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 24 Apr 1991 19:18:42 +0000 (19:18 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 24 Apr 1991 19:18:42 +0000 (19:18 +0000)
gdb/ChangeLog
gdb/gmalloc.c

index e2a88f116292d7817bda627784ae5a60867259ba..b2b8d64cade03094f482fb57178d5b03f959ce89 100644 (file)
@@ -1,5 +1,11 @@
 Wed Apr 24 09:45:17 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)
 
+       * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
+
+       * infun.c (resume, resume_cleanups): New functions.
+       (wait_for_inferior, proceed, child_create_inferior): Use resume
+       not target_resume.
+
        * remote.c (getpkt): Don't set immediate_quit.
 
        * blockframe.c, frame.h (reinit_frame_cache): New function.
index 046855170cce6279f7b09df1ed188735d3b2394a..a201e9a8028d02683d253bc5d934010cc5cdd40b 100755 (executable)
@@ -1093,6 +1093,39 @@ DEFUN(__default_morecore, (size), ptrdiff_t size)
 #include <stdlib.h>
 #endif /* __ONEFILE */
 
+/* Deal with page size.  */
+#ifdef BSD
+#ifndef BSD4_1
+#define HAVE_GETPAGESIZE
+#endif
+#endif
+
+#ifndef HAVE_GETPAGESIZE
+
+#include <sys/param.h>
+
+#if !defined (PAGESIZE)
+#ifdef EXEC_PAGESIZE
+#define PAGESIZE EXEC_PAGESIZE
+#else
+#ifdef NBPG
+#define PAGESIZE NBPG * CLSIZE
+#ifndef CLSIZE
+#define CLSIZE 1
+#endif /* no CLSIZE */
+#else /* no NBPG */
+#define PAGESIZE NBPC
+#endif /* no NBPG */
+#endif /* no EXEC_PAGESIZE */
+#endif /* no PAGESIZE */
+
+size_t
+DEFUN_VOID(__getpagesize)
+{
+  return PAGESIZE;
+}
+#endif /* not HAVE_GETPAGESIZE */
+
 extern size_t EXFUN(__getpagesize, (NOARGS));
 
 static size_t pagesize;