X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Finf-child.c;h=48330948895085e4ec8e82f35d77276c0457439a;hb=7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3;hp=44aa2f66fbfe05d43bd56769a3c9bb26ce8ec9b9;hpb=ae739fe7b8cffac2332666d62ad37cab679a7758;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/inf-child.c b/gdb/inf-child.c index 44aa2f66fb..4833094889 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -1,6 +1,6 @@ /* Base/prototype target for default child (native) targets. - Copyright (C) 1988-2018 Free Software Foundation, Inc. + Copyright (C) 1988-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -30,10 +30,10 @@ #include "inferior.h" #include #include "inf-child.h" -#include "fileio.h" -#include "agent.h" -#include "gdb_wait.h" -#include "filestuff.h" +#include "gdbsupport/fileio.h" +#include "gdbsupport/agent.h" +#include "gdbsupport/gdb_wait.h" +#include "gdbsupport/filestuff.h" #include #include @@ -206,7 +206,7 @@ inf_child_target::mourn_inferior () void inf_child_target::maybe_unpush_target () { - if (!inf_child_explicitly_opened && !have_inferiors ()) + if (!inf_child_explicitly_opened) unpush_target (this); } @@ -243,36 +243,6 @@ inf_child_target::pid_to_exec_file (int pid) return NULL; } -bool -inf_child_target::has_all_memory () -{ - return default_child_has_all_memory (); -} - -bool -inf_child_target::has_memory () -{ - return default_child_has_memory (); -} - -bool -inf_child_target::has_stack () -{ - return default_child_has_stack (); -} - -bool -inf_child_target::has_registers () -{ - return default_child_has_registers (); -} - -bool -inf_child_target::has_execution (ptid_t ptid) -{ - return default_child_has_execution (ptid); -} - /* Implementation of to_fileio_open. */ int @@ -439,11 +409,6 @@ inf_child_target::can_use_agent () return agent_loaded_p (); } -inf_child_target::inf_child_target () -{ - this->to_stratum = process_stratum; -} - /* See inf-child.h. */ void