]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-06-20 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Fri, 21 Jun 2002 00:13:22 +0000 (00:13 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Fri, 21 Jun 2002 00:13:22 +0000 (00:13 +0000)
        * 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.

gdb/ChangeLog
gdb/event-top.c

index f4de19b70bfb6549bff60a461e4e90c5e89a6e78..69d7778ddd75f54d90345f4057e6fb8101ff4079 100644 (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.
index 3bf9c3474c4563092dd6b4d23ab915cdc0da4e98..91ffc8547a24c43b8737681d6b568633381c3db5 100644 (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);
     }