These functions and variables provide information about the target. The first group identifies the name of the target and provides help information for the user.
to_shortname
. This string is the name of
target, for use with GDBs target. Setting
to_shortname
to foo
means that
target foo will
connect to the target, invoking to_open
for
this target (see below).
to_longname
. A string giving a brief
description of the type of target. This is printed with the
info target information (see also
to_files_info
below).
to_doc
. The help text for this target. If the
short name of the target is foo, then the
command help target will print
target
foo followed by
the first sentence of this help text. The command
help target foo
will print out the complete text.
to_files_info
. This function provides
additional information for the info target
command.
The second group of variables provides information about the current state of the target.
to_stratum
. An enumerated constant indicating
to which stratum this struct target_ops belongs
to_has_all_memory
. Boolean indicating if the
target includes all of memory, or only part of it. If only part,
then a failed memory request may be able to be satisfied by a
different target in the stack.
to_has_memory
. Boolean indicating if the
target has memory (dummy targets do not)
to_has_stack
. Boolean indicating if the
target has a stack. Object files do not, core dumps and
executable threads/processes do.
to_has_registers
. Boolean indicating if the
target has registers. Object files do not, core dumps and
executable threads/processes do.
to_has_execution
. Boolean indicating if the
target is currently executing. For some targets that is the same
as if they are capable of execution. However some remote targets
can be in the position where they are not executing until
create_inferior
or
attach
is called.