2002-06-20 Elena Zannoni <ezannoni@redhat.com>

* event-top.c (command_handler): Don't use space_at_cmd_start
        unless there is sbrk() on the host. Assign time and space data
        to union fields of the appropriate length.
This commit is contained in:
Elena Zannoni
2002-06-21 00:13:22 +00:00
parent b65ccc8817
commit 9ea2f76fde
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2002-06-20 Elena Zannoni <ezannoni@redhat.com>
* event-top.c (command_handler): Don't use space_at_cmd_start
unless there is sbrk() on the host. Assign time and space data
to union fields of the appropriate length.
2002-06-16 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention below.

View File

@@ -514,8 +514,10 @@ command_handler (char *command)
(struct continuation_arg *) xmalloc (sizeof (struct continuation_arg));
arg1->next = arg2;
arg2->next = NULL;
arg1->data.integer = time_at_cmd_start;
arg2->data.integer = space_at_cmd_start;
arg1->data.longint = time_at_cmd_start;
#ifdef HAVE_SBRK
arg2->data.longint = space_at_cmd_start;
#endif
add_continuation (command_line_handler_continuation, arg1);
}