From 4b9f58a7f467b0cd0da6edd9fcd7585ccf7af39e Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Thu, 6 Sep 2001 12:01:36 +0000 Subject: [PATCH] 2001-09-04 Elena Zannoni * gdbint.texinfo (Target Architecture Definition): Add explanation of TARGET_PRINT_INSN macro. --- gdb/doc/ChangeLog | 7 ++++++- gdb/doc/gdbint.texinfo | 14 +++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 31bc64e953..40a9416d40 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2001-09-04 Elena Zannoni + + * gdbint.texinfo (Target Architecture Definition): Add + explanation of TARGET_PRINT_INSN macro. + 2001-08-30 Jim Blandy * gdb.texinfo (`add-symbol-file'): Correct synopsis. @@ -13,7 +18,7 @@ Wed Aug 15 10:47:28 2001 Christopher Faylor * gdbint.texinfo: Add a cautionary note about macro use. 2001-08-02 Corinna Vinschen - + * gdb.texinfo: Explain omitting the hostname in the `target remote' command. diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 13d84a5c81..91a3dd04aa 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -42,7 +42,7 @@ Software Foundation raise funds for GNU development.'' @page @tex \def\$#1${{#1}} % Kluge: collect RCS revision info without $...$ -\xdef\manvers{\$Revision: 1.35 $} % For use in headers, footers too +\xdef\manvers{\$Revision: 1.36 $} % For use in headers, footers too {\parskip=0pt \hfill Cygnus Solutions\par \hfill \manvers\par @@ -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 -- 2.11.0