* defs.h printcmd.c: Create global disassemble_info structure
tm_print_insn_info. * gdbtk.c (gdb_disassemble): Setup di.mach from tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER. * i386-tdep.c (set_assembly_language_command): set tm_print_insn_info.mach to the appropriate value for 386 or 8086 disassembly. * printcmd.c (print_insn): Move init of disassembler_info to _initialize_printcmd. Set endian for disassembler here. * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to select sparc/sparclite. * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to bfd_mach_sparc/bfd_mach_sparc_sparclite.
This commit is contained in:
parent
3cc21bf602
commit
91550191be
7 changed files with 96 additions and 52 deletions
|
@ -644,4 +644,4 @@ extern int deferred_stores;
|
|||
|
||||
/* Select the sparc disassembler */
|
||||
|
||||
#define TM_PRINT_INSN print_insn_sparc
|
||||
#define TM_PRINT_INSN_MACH bfd_mach_sparc
|
||||
|
|
|
@ -24,8 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
/* Select the sparclite disassembler. Slightly different instruction set from
|
||||
the V8 sparc. */
|
||||
|
||||
#undef TM_PRINT_INSN
|
||||
#define TM_PRINT_INSN print_insn_sparclite
|
||||
#undef TM_PRINT_INSN_MACH
|
||||
#define TM_PRINT_INSN_MACH bfd_mach_sparc_sparclite
|
||||
|
||||
/* Amount PC must be decremented by after a hardware instruction breakpoint.
|
||||
This is often the number of bytes in BREAKPOINT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue