diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2021-04-22 17:22:39 +0200 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2021-04-22 17:22:39 +0200 |
commit | 4efeb0d3e8ee210cd61b15355cca39b16b66004d (patch) | |
tree | 4c74b54f1e733a7a222d618091b06c6fca18237d /gdb/inf-loop.c | |
parent | c4c493de2bbfc7414d0ec51f40f17cd7b1ff74f2 (diff) | |
download | gdb-4efeb0d3e8ee210cd61b15355cca39b16b66004d.zip gdb-4efeb0d3e8ee210cd61b15355cca39b16b66004d.tar.gz gdb-4efeb0d3e8ee210cd61b15355cca39b16b66004d.tar.bz2 |
gdb/continuations: turn continuation functions into inferior methods
Turn continuations-related functions into methods of the inferior
class. This is a refactoring.
gdb/ChangeLog:
2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* Makefile.in (COMMON_SFILES): Remove continuations.c.
* inferior.c (inferior::add_continuation): New method, adapted
from 'add_inferior_continuation'.
(inferior::do_all_continuations): New method, adapted from
'do_all_inferior_continuations'.
(inferior::~inferior): Clear the list of continuations directly.
* inferior.h (class inferior) <continuations>: Rename into...
<m_continuations>: ...this and make private.
* continuations.c: Remove.
* continuations.h: Remove.
* event-top.c: Don't include "continuations.h".
Update the users below.
* inf-loop.c (inferior_event_handler)
* infcmd.c (attach_command)
(notice_new_inferior): Update.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r-- | gdb/inf-loop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c index b8f66c3..dc3ffbb 100644 --- a/gdb/inf-loop.c +++ b/gdb/inf-loop.c @@ -26,7 +26,6 @@ #include "remote.h" #include "language.h" #include "gdbthread.h" -#include "continuations.h" #include "interps.h" #include "top.h" #include "observable.h" @@ -55,7 +54,7 @@ inferior_event_handler (enum inferior_event_type event_type) /* Do all continuations associated with the whole inferior (not a particular thread). */ if (inferior_ptid != null_ptid) - do_all_inferior_continuations (); + current_inferior ()->do_all_continuations (); /* When running a command list (from a user command, say), these are only run when the command list is all done. */ |