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/infcmd.c | |
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/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 50e8fff..b3af31f 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2320,9 +2320,8 @@ attach_command (char *args, int from_tty) a->args = xstrdup (args); a->from_tty = from_tty; a->async_exec = async_exec; - add_continuation (inferior_thread (), - attach_command_continuation, a, - attach_command_continuation_free_args); + add_inferior_continuation (attach_command_continuation, a, + attach_command_continuation_free_args); discard_cleanups (back_to); return; } |