diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-04-09 00:10:09 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-04-09 00:10:09 +0000 |
commit | 7495d1dc3f24a562979b1895add40babaa572b97 (patch) | |
tree | 91d707e91cdcdcdacc039be4e1bfdaa77f18321e | |
parent | e8969f35385cbab2988125d6ac8518e4b5361003 (diff) | |
download | gdb-7495d1dc3f24a562979b1895add40babaa572b97.zip gdb-7495d1dc3f24a562979b1895add40babaa572b97.tar.gz gdb-7495d1dc3f24a562979b1895add40babaa572b97.tar.bz2 |
From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da61812..e9dbffc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,11 @@ 2002-04-08 Kevin Buettner <kevinb@redhat.com> From Jimi X <jimix@watson.ibm.com>: + * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn(). + +2002-04-08 Kevin Buettner <kevinb@redhat.com> + + From Jimi X <jimix@watson.ibm.com>: * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET. diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 828ba02..b96f1ad 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -2536,11 +2536,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) gdbarch = gdbarch_alloc (&info, tdep); power = arch == bfd_arch_rs6000; - /* Select instruction printer. */ - tm_print_insn = arch == power ? print_insn_rs6000 : - info.byte_order == BFD_ENDIAN_BIG ? print_insn_big_powerpc : - print_insn_little_powerpc; - /* Choose variant. */ v = find_variant_by_arch (arch, mach); if (!v) @@ -2586,6 +2581,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); + set_gdbarch_read_pc (gdbarch, generic_target_read_pc); set_gdbarch_write_pc (gdbarch, generic_target_write_pc); set_gdbarch_read_fp (gdbarch, generic_target_read_fp); |