diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-12-13 23:28:46 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-12-13 23:28:46 +0000 |
commit | aaa3c096db1beebb67015bc8711cf908f7f2559b (patch) | |
tree | 995a38e75405d3096a58908fdff890b60d6604bc /gdb/printcmd.c | |
parent | f14397f057f762839f030ff08d49f76e7e3117ca (diff) | |
download | gdb-aaa3c096db1beebb67015bc8711cf908f7f2559b.zip gdb-aaa3c096db1beebb67015bc8711cf908f7f2559b.tar.gz gdb-aaa3c096db1beebb67015bc8711cf908f7f2559b.tar.bz2 |
CARP:
Re-do TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN, TARGET_ARCHITECTURE,
TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_SELECTABLE_P,
TARGET_BYTE_ORDER so that they can all be overriden.
Document.
Convert mn10300 and PPC targets.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index ecde3eb..bbc4ba0 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2283,20 +2283,16 @@ print_insn (memaddr, stream) CORE_ADDR memaddr; GDB_FILE *stream; { - /* If there's no disassembler, something is very wrong. */ - if (tm_print_insn == NULL) - abort (); - if (TARGET_BYTE_ORDER == BIG_ENDIAN) - tm_print_insn_info.endian = BFD_ENDIAN_BIG; + TARGET_PRINT_INSN_INFO->endian = BFD_ENDIAN_BIG; else - tm_print_insn_info.endian = BFD_ENDIAN_LITTLE; + TARGET_PRINT_INSN_INFO->endian = BFD_ENDIAN_LITTLE; - if (target_architecture != NULL) - tm_print_insn_info.mach = target_architecture->mach; + if (TARGET_ARCHITECTURE != NULL) + TARGET_PRINT_INSN_INFO->mach = TARGET_ARCHITECTURE->mach; /* else: should set .mach=0 but some disassemblers don't grok this */ - return (*tm_print_insn) (memaddr, &tm_print_insn_info); + return TARGET_PRINT_INSN (memaddr, TARGET_PRINT_INSN_INFO); } |