From 38d715a4c80f5b19e55a06cf3da6d8a9f114763c Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 13 Apr 1996 04:38:55 +0000 Subject: * 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. --- gdb/top.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/top.c') 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 } } } -- cgit v1.1