aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-07-12 19:07:38 +0000
committerPedro Alves <palves@redhat.com>2008-07-12 19:07:38 +0000
commitbfec99b27cdfd81789214ba9e7b648c9d0dccb77 (patch)
tree6c9770b500b23109a20f2605099ab27f311e5c2a /gdb/top.c
parent2afb61aa0b5671f860be9d5185ae1c53abb2aa07 (diff)
downloadgdb-bfec99b27cdfd81789214ba9e7b648c9d0dccb77.zip
gdb-bfec99b27cdfd81789214ba9e7b648c9d0dccb77.tar.gz
gdb-bfec99b27cdfd81789214ba9e7b648c9d0dccb77.tar.bz2
Replace struct continuation_args by void* and per command structs.
* top.c (execute_command): Remove unused arg1 and arg2 locals. * breakpoint.c (struct until_break_command_continuation_args): New. (until_break_command_continuation): Take a void* instead of a continuations_arg. Adjust. (until_break_command): Adjust to use struct until_break_command_continuation_args instead of struct continuation_arg. * infcmd.c (struct step_1_continuation_args): New. (step_1_continuation): Take a void* instead of a continuations_arg. Adjust to use struct step_1_continuation_args. (step_once): Adjust to use struct step_1_continuation_args. (struct finish_command_continuation_args): New. (finish_command_continuation): Take a void* instead of a continuations_arg. Adjust to use struct finish_command_continuation_args. (finish_command): Adjust to use struct finish_command_continuation_args. (struct attach_command_continuation_args): New. (attach_command_continuation): Take a void* instead of a continuations_arg. Adjust to use struct attach_command_continuation_args. (attach_command): Adjust to use struct attach_command_continuation_args. * defs.h (struct continuation_arg): Delete. (struct continuation): Replace the struct continuation_arg* parameter of continuation_hook by a void*. Replace "arg_list" member by a new "args" member with void* type. (add_continuation, add_intermediate_continuation): Replace struct continuation_arg type usages by void* usages. * utils.c (add_continuation, do_all_continuations) (add_intermediate_continuation) (do_all_intermediate_continuations): Replace struct continuation_arg type usages by void* usages. Pass "args" instead of "arg_list".
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 86738e7..6f7b65c 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -371,8 +371,6 @@ execute_command (char *p, int from_tty)
enum language flang;
static int warned = 0;
char *line;
- struct continuation_arg *arg1;
- struct continuation_arg *arg2;
long time_at_cmd_start = 0;
#ifdef HAVE_SBRK
long space_at_cmd_start = 0;