aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-07-15 23:54:39 +0000
committerStu Grossman <grossman@cygnus>1996-07-15 23:54:39 +0000
commit91550191be931f2f981a3ece49260af7a8e40b4c (patch)
tree298de2cf8df2392d663cf5dfa3903920c871454a /gdb/sparc-tdep.c
parent3cc21bf6026d36d26f8a250e0005727042c663af (diff)
downloadgdb-91550191be931f2f981a3ece49260af7a8e40b4c.zip
gdb-91550191be931f2f981a3ece49260af7a8e40b4c.tar.gz
gdb-91550191be931f2f981a3ece49260af7a8e40b4c.tar.bz2
* 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.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 2ce7a10..bd85d28 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "obstack.h"
#include "target.h"
#include "value.h"
+#include "bfd.h"
#ifdef USE_PROC_FS
#include <sys/procfs.h>
@@ -1548,5 +1549,6 @@ sparc_print_register_hook (regno)
void
_initialize_sparc_tdep ()
{
- tm_print_insn = TM_PRINT_INSN; /* Selects sparc/sparclite */
+ tm_print_insn = print_insn_sparc;
+ tm_print_insn_info.mach = TM_PRINT_INSN_MACH; /* Selects sparc/sparclite */
}