+2014-03-12 Pedro Alves <palves@redhat.com>
+
+ * inf-child.c: Update top comment to not mention Unix. Add
+ generic comment describing how this target is meant to be used.
+ (inf_child_post_attach, inf_child_post_startup_inferior)
+ (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
+ Unix in comment.
+
2014-03-12 Pedro Alves <palves@redhat.com>
* nto-procfs.c: Include inf-child.h.
-/* Default child (native) target interface, for GDB when running under
- Unix.
+/* Base/prototype target for default child (native) targets.
Copyright (C) 1988-2014 Free Software Foundation, Inc.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+/* This file provides a common base class/target that all native
+ target implementations extend, by calling inf_child_target to get a
+ new prototype target and then overriding target methods as
+ necessary. */
+
#include "defs.h"
#include "regcache.h"
#include "memattr.h"
static void
inf_child_post_attach (struct target_ops *self, int pid)
{
- /* This version of Unix doesn't require a meaningful "post attach"
- operation by a debugger. */
+ /* This target doesn't require a meaningful "post attach" operation
+ by a debugger. */
}
/* Get ready to modify the registers array. On machines which store
static void
inf_child_post_startup_inferior (struct target_ops *self, ptid_t ptid)
{
- /* This version of Unix doesn't require a meaningful "post startup
- inferior" operation by a debugger. */
+ /* This target doesn't require a meaningful "post startup inferior"
+ operation by a debugger. */
}
static int
inf_child_follow_fork (struct target_ops *ops, int follow_child,
int detach_fork)
{
- /* This version of Unix doesn't support following fork or vfork
- events. */
+ /* This target doesn't support following fork or vfork events. */
return 0;
}
static char *
inf_child_pid_to_exec_file (struct target_ops *self, int pid)
{
- /* This version of Unix doesn't support translation of a process ID
- to the filename of the executable file. */
+ /* This target doesn't support translation of a process ID to the
+ filename of the executable file. */
return NULL;
}