aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-11-05 20:23:07 +0000
committerPedro Alves <palves@redhat.com>2008-11-05 20:23:07 +0000
commite0ba674611b77dce4d02d6b08e90b10255ec3e2d (patch)
tree2e6dd7afb17800c925cd5c543347e28b03416cf0 /gdb/defs.h
parent6dc6b6558bf7ede38de5f7b9356d8d98e5960c33 (diff)
downloadgdb-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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 8d50f8a..b047266 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -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;