2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>

* defs.h (struct continuation_arg): make 'data' a union, to avoid
        casting problems when int and pointer are not the  same size.
        * event-top.c (command_handler): use data as a union.
        (command_line_handler_continuation): ditto.
        * infcmd.c (step_1_continuation): use data as a union.  Re-indent.
        (step_once): ditto.  (finish_command_continuation): ditto.
        (finish_command): ditto.
        * breakpoint.c (until_break_command): use data as a union.
        (until_break_command_continuation): ditto.
        * utils.c (add_intermediate_continuation): fix typo in comment.
This commit is contained in:
Michael Snyder 2000-03-30 18:54:28 +00:00
parent 59233f88f1
commit 57e687d9ad
6 changed files with 52 additions and 35 deletions

View file

@ -525,8 +525,8 @@ command_handler (char *command)
(struct continuation_arg *) xmalloc (sizeof (struct continuation_arg));
arg1->next = arg2;
arg2->next = NULL;
arg1->data = (void *) time_at_cmd_start;
arg2->data = (void *) space_at_cmd_start;
arg1->data.integer = time_at_cmd_start;
arg2->data.integer = space_at_cmd_start;
add_continuation (command_line_handler_continuation, arg1);
}
@ -572,8 +572,8 @@ command_line_handler_continuation (struct continuation_arg *arg)
extern int display_time;
extern int display_space;
long time_at_cmd_start = (long) arg->data;
long space_at_cmd_start = (long) arg->next->data;
long time_at_cmd_start = arg->data.longint;
long space_at_cmd_start = arg->next->data.longint;
bpstat_do_actions (&stop_bpstat);
/*do_cleanups (old_chain); *//*?????FIXME????? */