diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-07-15 16:42:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-07-15 16:42:33 +0000 |
commit | 482d6747e8c58a15098d0336008b0049df933e64 (patch) | |
tree | 2ef1cb3ef2bb089170cc15cb0787b16dbd44592b | |
parent | a4c012992412369f39907d2021a5c8d4de8c4e7c (diff) | |
download | gdb-482d6747e8c58a15098d0336008b0049df933e64.zip gdb-482d6747e8c58a15098d0336008b0049df933e64.tar.gz gdb-482d6747e8c58a15098d0336008b0049df933e64.tar.bz2 |
* dis-asm.h: Added declaration of print_insn_m88k.
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/dis-asm.h | 31 |
2 files changed, 31 insertions, 4 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 7eecff6..3fe6450 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +Thu Jul 15 12:41:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * dis-asm.h: Added declaration of print_insn_m88k. + Thu Jul 8 09:05:26 1993 Doug Evans (dje@canuck.cygnus.com) * opcode/h8300.h: Lots of little fixes for the h8/300h. diff --git a/include/dis-asm.h b/include/dis-asm.h index 51808a8..50c13c0 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -1,5 +1,4 @@ #include <stdio.h> -#include "ansidecl.h" #include "bfd.h" typedef int (*fprintf_ftype) PARAMS((FILE*, const char*, ...)); @@ -28,6 +27,10 @@ typedef struct disassemble_info { void (*memory_error_func) PARAMS ((int status, bfd_vma memaddr, struct disassemble_info *info)); + /* Function called to print ADDR. */ + void (*print_address_func) + PARAMS ((bfd_vma addr, struct disassemble_info *info)); + /* These are for buffer_read_memory. */ bfd_byte *buffer; bfd_vma buffer_vma; @@ -43,6 +46,12 @@ extern int buffer_read_memory It prints a message using info->fprintf_func and info->stream. */ extern void perror_memory PARAMS ((int, bfd_vma, struct disassemble_info *)); +/* Just print the address is hex. This is included for completeness even + though both GDB and objdump provide their own (to print symbolic + addresses). */ +extern void generic_print_address + PARAMS ((bfd_vma, struct disassemble_info *)); + #define INIT_DISASSEMBLE_INFO(INFO, STREAM) \ (INFO).fprintf_func = (fprintf_ftype)fprintf, \ (INFO).stream = (STREAM), \ @@ -50,7 +59,8 @@ extern void perror_memory PARAMS ((int, bfd_vma, struct disassemble_info *)); (INFO).buffer_vma = 0, \ (INFO).buffer_length = 0, \ (INFO).read_memory_func = buffer_read_memory, \ - (INFO).memory_error_func = perror_memory + (INFO).memory_error_func = perror_memory, \ + (INFO).print_address_func = generic_print_address /* GDB--Like target_read_memory, but slightly different parameters. */ extern int @@ -62,12 +72,16 @@ extern void dis_asm_memory_error PARAMS ((int status, bfd_vma memaddr, disassemble_info *info)); +/* GDB--Like print_address with slightly different parameters. */ +extern void +dis_asm_print_address PARAMS ((bfd_vma addr, disassemble_info *info)); + #define GDB_INIT_DISASSEMBLE_INFO(INFO, STREAM) \ (INFO).fprintf_func = (fprintf_ftype)fprintf_filtered, \ (INFO).stream = (STREAM), \ (INFO).read_memory_func = dis_asm_read_memory, \ - (INFO).memory_error_func = dis_asm_memory_error - + (INFO).memory_error_func = dis_asm_memory_error, \ + (INFO).print_address_func = dis_asm_print_address /* Standard disassemblers. Disassemble one instruction at the given target address. Return number of bytes processed. */ @@ -80,5 +94,14 @@ extern int print_insn_i386 PARAMS ((bfd_vma,disassemble_info*)); extern int print_insn_m68k PARAMS ((bfd_vma,disassemble_info*)); extern int print_insn_z8001 PARAMS ((bfd_vma,disassemble_info*)); extern int print_insn_z8002 PARAMS ((bfd_vma,disassemble_info*)); +extern int print_insn_h8300 PARAMS ((bfd_vma,disassemble_info*)); +extern int print_insn_h8300h PARAMS ((bfd_vma,disassemble_info*)); extern int print_insn_h8500 PARAMS ((bfd_vma,disassemble_info*)); +extern int print_insn_alpha PARAMS ((bfd_vma,disassemble_info*)); extern int print_insn_sparc PARAMS ((bfd_vma,disassemble_info*)); +extern int print_insn_big_a29k PARAMS ((bfd_vma, disassemble_info*)); +extern int print_insn_little_a29k PARAMS ((bfd_vma, disassemble_info*)); +extern int print_insn_i960 PARAMS ((bfd_vma, disassemble_info*)); +extern int print_insn_sh PARAMS ((bfd_vma,disassemble_info*)); +extern int print_insn_hppa PARAMS ((bfd_vma, disassemble_info*)); +extern int print_insn_m88k PARAMS ((bfd_vma, disassemble_info*)); |