aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/gdbint.texinfo
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-09-06 12:01:36 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-09-06 12:01:36 +0000
commit7ccaa899b118c3a792abfa68eaf36116dc63a2df (patch)
treec31a3ea65ab03319ba9d62e5713474d6ee9148ac /gdb/doc/gdbint.texinfo
parenta209ae8abbdd904950636fa3fb7d36b86fefb2ad (diff)
downloadgdb-7ccaa899b118c3a792abfa68eaf36116dc63a2df.zip
gdb-7ccaa899b118c3a792abfa68eaf36116dc63a2df.tar.gz
gdb-7ccaa899b118c3a792abfa68eaf36116dc63a2df.tar.bz2
2001-09-04 Elena Zannoni <ezannoni@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Add explanation of TARGET_PRINT_INSN macro.
Diffstat (limited to 'gdb/doc/gdbint.texinfo')
-rw-r--r--gdb/doc/gdbint.texinfo12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo
index 914ebf4..2088abe 100644
--- a/gdb/doc/gdbint.texinfo
+++ b/gdb/doc/gdbint.texinfo
@@ -3566,6 +3566,18 @@ If non-zero, the target has support for hardware-assisted
watchpoints. @xref{Algorithms, watchpoints}, for more details and
other related macros.
+@item TARGET_PRINT_INSN (@var{addr}, @var{info})
+@findex TARGET_PRINT_INSN
+This is the function used by @value{GDBN} to print an assembly
+instruction. It prints the instruction at address @var{addr} in
+debugged memory and returns the length of the instruction, in bytes. If
+a target doesn't define its own printing routine, it defaults to an
+accessor function for the global pointer @code{tm_print_insn}. This
+usually points to a function in the @code{opcodes} library (@pxref{Support
+Libraries, ,Opcodes}). @var{info} is a structure (of type
+@code{disassemble_info}) defined in @file{include/dis-asm.h} used to
+pass information to the instruction decoding routine.
+
@item USE_STRUCT_CONVENTION (@var{gcc_p}, @var{type})
@findex USE_STRUCT_CONVENTION
If defined, this must be an expression that is nonzero if a value of the