aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
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/defs.h
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/defs.h')
-rw-r--r--gdb/defs.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 1f1a4bd..2be982a 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -677,20 +677,10 @@ extern void free_command_lines (struct command_line **);
used by the finish and until commands, and in the remote protocol
when opening an extended-remote connection. */
-struct continuation_arg
- {
- struct continuation_arg *next;
- union continuation_data {
- void *pointer;
- int integer;
- long longint;
- } data;
- };
-
struct continuation
{
- void (*continuation_hook) (struct continuation_arg *, int);
- struct continuation_arg *arg_list;
+ void (*continuation_hook) (void *, int);
+ void *args;
struct continuation *next;
};
@@ -700,13 +690,11 @@ extern struct continuation *cmd_continuation;
extern struct continuation *intermediate_continuation;
/* From utils.c */
-extern void add_continuation (void (*)(struct continuation_arg *, int),
- struct continuation_arg *);
+extern void add_continuation (void (*)(void *, int), void *);
extern void do_all_continuations (int error);
extern void discard_all_continuations (void);
-extern void add_intermediate_continuation (void (*)(struct continuation_arg *, int),
- struct continuation_arg *);
+extern void add_intermediate_continuation (void (*)(void *, int), void *);
extern void do_all_intermediate_continuations (int error);
extern void discard_all_intermediate_continuations (void);