mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 23:26:51 +08:00
* rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
it's no longer required.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-04-08 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
|
||||||
|
it's no longer required.
|
||||||
|
|
||||||
2002-04-08 Andrew Cagney <ac131313@redhat.com>
|
2002-04-08 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
|
* Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
|
||||||
|
@ -2458,6 +2458,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||||||
unsigned long mach;
|
unsigned long mach;
|
||||||
bfd abfd;
|
bfd abfd;
|
||||||
int osabi, sysv_abi;
|
int osabi, sysv_abi;
|
||||||
|
gdbarch_print_insn_ftype *print_insn;
|
||||||
|
|
||||||
from_xcoff_exec = info.abfd && info.abfd->format == bfd_object &&
|
from_xcoff_exec = info.abfd && info.abfd->format == bfd_object &&
|
||||||
bfd_get_flavour (info.abfd) == bfd_target_xcoff_flavour;
|
bfd_get_flavour (info.abfd) == bfd_target_xcoff_flavour;
|
||||||
@ -2574,13 +2575,14 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||||||
off += regsize (v->regs + i, wordsize);
|
off += regsize (v->regs + i, wordsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Select instruction printer. Note: tm_print_insn is still used by
|
/* Select instruction printer. */
|
||||||
gdbtk (insight), so we set both tm_print_insn and the gdbarch
|
if (arch == power)
|
||||||
method. */
|
print_insn = print_insn_rs6000;
|
||||||
tm_print_insn = arch == power ? print_insn_rs6000 :
|
else if (info.byte_order == BFD_ENDIAN_BIG)
|
||||||
info.byte_order == BFD_ENDIAN_BIG ? print_insn_big_powerpc :
|
print_insn = print_insn_big_powerpc;
|
||||||
print_insn_little_powerpc;
|
else
|
||||||
set_gdbarch_print_insn (gdbarch, tm_print_insn);
|
print_insn = print_insn_little_powerpc;
|
||||||
|
set_gdbarch_print_insn (gdbarch, print_insn);
|
||||||
|
|
||||||
set_gdbarch_read_pc (gdbarch, generic_target_read_pc);
|
set_gdbarch_read_pc (gdbarch, generic_target_read_pc);
|
||||||
set_gdbarch_write_pc (gdbarch, generic_target_write_pc);
|
set_gdbarch_write_pc (gdbarch, generic_target_write_pc);
|
||||||
|
Reference in New Issue
Block a user