diff options
author | Michael Snyder <msnyder@specifix.com> | 2000-03-30 18:54:28 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2000-03-30 18:54:28 +0000 |
commit | 1da3931bd56ecb1d42a457d7f8f7524cd693c6e9 (patch) | |
tree | 51b521ced516d1095ed3c92beea1ab46122cbc2c /gdb/breakpoint.c | |
parent | 83d8e3083d36ff649aac4d3d26006ddf8a24562b (diff) | |
download | gdb-1da3931bd56ecb1d42a457d7f8f7524cd693c6e9.tar.gz |
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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 1efa23bb5aa..89b15909a71 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5708,7 +5708,7 @@ until_break_command_continuation (struct continuation_arg *arg) { struct cleanup *cleanups; - cleanups = (struct cleanup *) arg->data; + cleanups = (struct cleanup *) arg->data.pointer; do_exec_cleanups (cleanups); } @@ -5772,8 +5772,8 @@ until_break_command (arg, from_tty) the exec_cleanup_chain. */ arg1 = (struct continuation_arg *) xmalloc (sizeof (struct continuation_arg)); - arg1->next = NULL; - arg1->data = (PTR) old_chain; + arg1->next = NULL; + arg1->data.pointer = old_chain; add_continuation (until_break_command_continuation, arg1); } |