aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-04-09 02:26:10 +0000
committerKevin Buettner <kevinb@redhat.com>2002-04-09 02:26:10 +0000
commit56a6dfb9deeb261da2dc2462ead99844ef865e4f (patch)
treef5c11174c7a46f72afa9635488783a7c7ade26b8 /gdb/rs6000-tdep.c
parent3a808432dd0f4a86c74303d40d5d23af46d6bc6b (diff)
downloadgdb-56a6dfb9deeb261da2dc2462ead99844ef865e4f.zip
gdb-56a6dfb9deeb261da2dc2462ead99844ef865e4f.tar.gz
gdb-56a6dfb9deeb261da2dc2462ead99844ef865e4f.tar.bz2
* rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
it's no longer required.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 7f768c0..4b07b5d 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2458,6 +2458,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
unsigned long mach;
bfd abfd;
int osabi, sysv_abi;
+ gdbarch_print_insn_ftype *print_insn;
from_xcoff_exec = info.abfd && info.abfd->format == bfd_object &&
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);
}
- /* Select instruction printer. Note: tm_print_insn is still used by
- gdbtk (insight), so we set both tm_print_insn and the gdbarch
- method. */
- tm_print_insn = arch == power ? print_insn_rs6000 :
- info.byte_order == BFD_ENDIAN_BIG ? print_insn_big_powerpc :
- print_insn_little_powerpc;
- set_gdbarch_print_insn (gdbarch, tm_print_insn);
+ /* Select instruction printer. */
+ if (arch == power)
+ print_insn = print_insn_rs6000;
+ else if (info.byte_order == BFD_ENDIAN_BIG)
+ print_insn = print_insn_big_powerpc;
+ else
+ print_insn = print_insn_little_powerpc;
+ set_gdbarch_print_insn (gdbarch, print_insn);
set_gdbarch_read_pc (gdbarch, generic_target_read_pc);
set_gdbarch_write_pc (gdbarch, generic_target_write_pc);