aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-05-27 14:56:14 +0000
committerPedro Alves <palves@redhat.com>2011-05-27 14:56:14 +0000
commitb0f260d61e5b5b3de1fcac6042f4b225bf132d45 (patch)
treed6c6d60e9d6cd28a97de2f461c56cf88a5b4b77c /gdb/defs.h
parentaf1e9a32aae3e5c088e3fb661a17c763edb80291 (diff)
downloadgdb-b0f260d61e5b5b3de1fcac6042f4b225bf132d45.zip
gdb-b0f260d61e5b5b3de1fcac6042f4b225bf132d45.tar.gz
gdb-b0f260d61e5b5b3de1fcac6042f4b225bf132d45.tar.bz2
2011-05-27 Pedro Alves <pedro@codesourcery.com>
gdb/ * defs.h (continuation_ftype, continuation_free_arg_ftype): New typedefs. (add_continuation, add_intermediate_continuation) (add_inferior_continuation): Use them. * continuations.c (struct continuation): Use them. (make_continuation_ftype): Delete. (make_continuation, add_inferior_continuation, add_continuation) (add_intermediate_continuation): Use continuation_ftype and continuation_free_arg_ftype. Rename parameters to shorter names.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 38a2fcf..7deee69 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -740,21 +740,29 @@ struct continuation;
struct thread_info;
struct inferior;
-/* From utils.c */
+/* From continuations.c */
+
+/* Prototype of the continuation callback functions. */
+typedef void (continuation_ftype) (void *);
+
+/* Prototype of the function responsible for releasing the argument
+ passed to the continuation callback functions, either when the
+ continuation is called, or discarded. */
+typedef void (continuation_free_arg_ftype) (void *);
/* Thread specific continuations. */
extern void add_continuation (struct thread_info *,
- void (*)(void *), void *,
- void (*)(void *));
+ continuation_ftype *, void *,
+ continuation_free_arg_ftype *);
extern void do_all_continuations (void);
extern void do_all_continuations_thread (struct thread_info *);
extern void discard_all_continuations (void);
extern void discard_all_continuations_thread (struct thread_info *);
extern void add_intermediate_continuation (struct thread_info *,
- void (*)(void *), void *,
- void (*)(void *));
+ continuation_ftype *, void *,
+ continuation_free_arg_ftype *);
extern void do_all_intermediate_continuations (void);
extern void do_all_intermediate_continuations_thread (struct thread_info *);
extern void discard_all_intermediate_continuations (void);
@@ -762,9 +770,9 @@ extern void discard_all_intermediate_continuations_thread (struct thread_info *)
/* Inferior specific (any thread) continuations. */
-extern void add_inferior_continuation (void (*) (void *),
+extern void add_inferior_continuation (continuation_ftype *,
void *,
- void (*) (void *));
+ continuation_free_arg_ftype *);
extern void do_all_inferior_continuations (void);
extern void discard_all_inferior_continuations (struct inferior *inf);