diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-06-21 00:13:54 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-06-21 00:13:54 +0000 |
commit | 87c4a0399d1fe2d5b1127c207bc7b3facd0c3233 (patch) | |
tree | a6cda79b10aa71b1beede9e1596fa2bd4dc77261 | |
parent | a2a75bff9ffa797516e231ebf664f70a2f12b0ee (diff) | |
download | gdb-87c4a0399d1fe2d5b1127c207bc7b3facd0c3233.zip gdb-87c4a0399d1fe2d5b1127c207bc7b3facd0c3233.tar.gz gdb-87c4a0399d1fe2d5b1127c207bc7b3facd0c3233.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/event-top.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9091d53..f69031b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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-20 Michal Ludvig <mludvig@suse.cz> * x86-64-tdep.c (x86_64_register_nr2name): Rename to diff --git a/gdb/event-top.c b/gdb/event-top.c index b472694..823a3e1 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); } |