From: Elena Zannoni Date: Fri, 21 Jun 2002 00:13:22 +0000 (+0000) Subject: 2002-06-20 Elena Zannoni X-Git-Tag: gdb_5_2_1-2002-07-23-release~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ea2f76fdee3847639959052605af6d4e37cad7a;p=thirdparty%2Fbinutils-gdb.git 2002-06-20 Elena Zannoni * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f4de19b70bf..69d7778ddd7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-06-20 Elena Zannoni + + * 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 * NEWS: Mention below. diff --git a/gdb/event-top.c b/gdb/event-top.c index 3bf9c3474c4..91ffc8547a2 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -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); }