aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-04-13 04:38:55 +0000
committerFred Fish <fnf@specifix.com>1996-04-13 04:38:55 +0000
commit38d715a4c80f5b19e55a06cf3da6d8a9f114763c (patch)
tree13a0db1439547fe469a8fb603dab457bb2122dd3 /gdb
parent07f48792d265b497e6479310f4925d1ee1ce58c4 (diff)
downloadgdb-38d715a4c80f5b19e55a06cf3da6d8a9f114763c.zip
gdb-38d715a4c80f5b19e55a06cf3da6d8a9f114763c.tar.gz
gdb-38d715a4c80f5b19e55a06cf3da6d8a9f114763c.tar.bz2
* README: Update for 4.16 release.
* configure.in (AC_CHECK_FUNCS): Also check for sbrk. * configure: Regenerate with autoconf. * config.in: Regenerate with autoheader. * main.c (main): Only use sbrk() when HAVE_SBRK is defined. * top.c (command_loop): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/config.in3
-rwxr-xr-xgdb/configure2
-rw-r--r--gdb/configure.in2
-rw-r--r--gdb/top.c6
5 files changed, 20 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 94e1eba..0164dfa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
+
+ * README: Update for 4.16 release.
+ * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
+ * configure: Regenerate with autoconf.
+ * config.in: Regenerate with autoheader.
+ * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
+ * top.c (command_loop): Ditto.
+
Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
* defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
diff --git a/gdb/config.in b/gdb/config.in
index 1e83f33..a5c51ad 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -41,6 +41,9 @@
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
+/* Define if you have the sbrk function. */
+#undef HAVE_SBRK
+
/* Define if you have the setpgid function. */
#undef HAVE_SETPGID
diff --git a/gdb/configure b/gdb/configure
index 03894a1..a366282 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -1428,7 +1428,7 @@ EOF
fi
-for ac_func in setpgid
+for ac_func in setpgid sbrk
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
diff --git a/gdb/configure.in b/gdb/configure.in
index 2396135..71ec9ec 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -42,7 +42,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys/procfs.h link.h endian.h)
AC_HEADER_STAT
-AC_CHECK_FUNCS(setpgid)
+AC_CHECK_FUNCS(setpgid sbrk)
AC_MSG_CHECKING([for gregset_t type])
AC_CACHE_VAL(gdb_cv_have_gregset_t,
diff --git a/gdb/top.c b/gdb/top.c
index cb27060..088bcd9 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1229,7 +1229,9 @@ command_loop ()
char *command;
int stdin_is_tty = ISATTY (stdin);
long time_at_cmd_start;
+#ifdef HAVE_SBRK
long space_at_cmd_start;
+#endif
extern int display_time;
extern int display_space;
@@ -1251,10 +1253,12 @@ command_loop ()
if (display_space)
{
+#ifdef HAVE_SBRK
extern char **environ;
char *lim = (char *) sbrk (0);
space_at_cmd_start = (long) (lim - (char *) &environ);
+#endif
}
execute_command (command, instream == stdin);
@@ -1272,6 +1276,7 @@ command_loop ()
if (display_space)
{
+#ifdef HAVE_SBRK
extern char **environ;
char *lim = (char *) sbrk (0);
long space_now = lim - (char *) &environ;
@@ -1281,6 +1286,7 @@ command_loop ()
space_now,
(space_diff >= 0 ? '+' : '-'),
space_diff);
+#endif
}
}
}