aboutsummaryrefslogtreecommitdiff
path: root/include/dis-asm.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-03-18 22:00:09 +0000
committerPer Bothner <per@bothner.com>1993-03-18 22:00:09 +0000
commitd7e1be4659dd730664b8948e99a3e8dff707b660 (patch)
tree48f491d1801259a2401425016d364fcd9fcbb2e4 /include/dis-asm.h
parentcaba7dbe7f8c5d424c4a91d8a8d55368e32868b5 (diff)
downloadgdb-d7e1be4659dd730664b8948e99a3e8dff707b660.zip
gdb-d7e1be4659dd730664b8948e99a3e8dff707b660.tar.gz
gdb-d7e1be4659dd730664b8948e99a3e8dff707b660.tar.bz2
* ieee-float.h: Moved from ../gdb.
* dis-asm.h: New file. Interface to dis-assembler.
Diffstat (limited to 'include/dis-asm.h')
-rw-r--r--include/dis-asm.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/dis-asm.h b/include/dis-asm.h
new file mode 100644
index 0000000..d229924
--- /dev/null
+++ b/include/dis-asm.h
@@ -0,0 +1,32 @@
+#include <stdio.h>
+#include "ansidecl.h"
+#include "bfd.h"
+
+typedef int (*fprintf_ftype) PARAMS((FILE*, const char*, ...));
+
+typedef struct disassemble_info {
+ fprintf_ftype fprintf_func;
+ FILE *stream;
+ int flags;
+} disassemble_info;
+
+typedef int (*disassembler_ftype)
+ PARAMS((bfd_vma, bfd_byte *, disassemble_info *));
+
+#define INIT_DISASSEMBLE_INFO(INFO, STREAM) \
+ INFO.fprintf_func = (fprintf_ftype)fprintf, \
+ INFO.stream = (STREAM)
+
+#define GDB_INIT_DISASSEMBLE_INFO(INFO, STREAM) \
+ INFO.fprintf_func = (fprintf_ftype)fprintf_filtered, \
+ INFO.stream = (STREAM)
+
+/* Standard dis-assemblers. */
+
+extern int print_insn_big_mips PARAMS ((bfd_vma, bfd_byte*,disassemble_info*));
+extern int print_insn_little_mips
+ PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
+extern int print_insn_i386 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
+extern int print_insn_m68k PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
+extern int print_insn_z8001 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
+extern int print_insn_z8002 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));