diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-09-05 23:44:44 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-09-05 23:44:44 +0000 |
commit | 2bf0cb65923ab3e2fafe3304af2aa95a24822cf9 (patch) | |
tree | 581e882359913fb6e130fe161676385b4e13a574 /gdb/sh-tdep.c | |
parent | a4f30b31c8bdfd8723b0a19c6220785ecd63473a (diff) | |
download | gdb-2bf0cb65923ab3e2fafe3304af2aa95a24822cf9.zip gdb-2bf0cb65923ab3e2fafe3304af2aa95a24822cf9.tar.gz gdb-2bf0cb65923ab3e2fafe3304af2aa95a24822cf9.tar.bz2 |
2001-09-05 Elena Zannoni <ezannoni@redhat.com>
* gdbarch.sh: Move include of dis-asm.h so it is generated earlier
in gdbarch.h.
(TARGET_PRINT_INSN): Multiarch.
* gdbarch.h: Regenerate.
* gdbarch.c: Regenerate.
* arch-utils.c (legacy_print_insn): New function.
* arch-utils.h (legacy_print_insn): Export.
* cris-tdep.c (cris_delayed_get_disassembler): Use
TARGET_PRINT_INSN, instead of tm_print_insn.
* d10v-tdep.c (print_insn): Ditto.
* d30v-tdep.c (print_insn): Ditto.
* m32r-tdep.c (dump_insn): Ditto.
* v850-tdep.c (v850_scan_prologue): Ditto.
* mcore-tdep.c (mcore_dump_insn): Ditto.
* sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 0c7ff68..65bc62b 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -47,7 +47,6 @@ #define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE))) void (*sh_show_regs) (void); -int (*print_sh_insn) (bfd_vma, disassemble_info*); CORE_ADDR (*skip_prologue_hard_way) (CORE_ADDR); void (*do_pseudo_register) (int); @@ -1928,7 +1927,7 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_use_struct_convention (gdbarch, sh_use_struct_convention); set_gdbarch_extract_struct_value_address (gdbarch, sh_extract_struct_value_address); set_gdbarch_pop_frame (gdbarch, sh_pop_frame); - print_sh_insn = gdb_print_insn_sh; + set_gdbarch_print_insn (gdbarch, gdb_print_insn_sh); skip_prologue_hard_way = sh_skip_prologue_hard_way; do_pseudo_register = sh_do_pseudo_register; @@ -2125,7 +2124,6 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown); set_gdbarch_believe_pcc_promotion (gdbarch, 1); set_gdbarch_ieee_float (gdbarch, 1); - tm_print_insn = print_sh_insn; return gdbarch; } |