diff options
author | Pedro Alves <palves@redhat.com> | 2008-11-05 20:23:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-11-05 20:23:07 +0000 |
commit | e0ba674611b77dce4d02d6b08e90b10255ec3e2d (patch) | |
tree | 2e6dd7afb17800c925cd5c543347e28b03416cf0 /gdb/defs.h | |
parent | 6dc6b6558bf7ede38de5f7b9356d8d98e5960c33 (diff) | |
download | gdb-e0ba674611b77dce4d02d6b08e90b10255ec3e2d.zip gdb-e0ba674611b77dce4d02d6b08e90b10255ec3e2d.tar.gz gdb-e0ba674611b77dce4d02d6b08e90b10255ec3e2d.tar.bz2 |
* defs.h (add_inferior_continuation)
(do_all_inferior_continuations)
(discard_all_inferior_continuations): Declare.
* utils.c (add_inferior_continuation)
(do_all_inferior_continuations)
(discard_all_inferior_continuations): New.
* inferior.h (struct inferior) <continuations>: New field.
* inferior.c (free_inferior): Discard all the inferior
continuations.
* inf-loop.c (inferior_event_handler): Do all current inferior
continuations.
* infcmd.c (attach_command): Register an inferior continuation
instead of a thread continuation.
* infrun.c (handle_inferior_event): If stop_soon is
STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -701,8 +701,12 @@ extern void free_command_lines (struct command_line **); struct continuation; struct thread_info; +struct inferior; /* From utils.c */ + +/* Thread specific continuations. */ + extern void add_continuation (struct thread_info *, void (*)(void *), void *, void (*)(void *)); @@ -719,6 +723,14 @@ extern void do_all_intermediate_continuations_thread (struct thread_info *); extern void discard_all_intermediate_continuations (void); extern void discard_all_intermediate_continuations_thread (struct thread_info *); +/* Inferior specific (any thread) continuations. */ + +extern void add_inferior_continuation (void (*) (void *), + void *, + void (*) (void *)); +extern void do_all_inferior_continuations (void); +extern void discard_all_inferior_continuations (struct inferior *inf); + /* String containing the current directory (what getwd would return). */ extern char *current_directory; |