Print this page
3317 dis(1) should support cross-target disassembly

@@ -31,12 +31,10 @@
 
 
 #ifndef _DIS_SPARC_H
 #define _DIS_SPARC_H
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #ifdef  __cplusplus
 extern "C" {
 #endif
 
 #include <sys/types.h>

@@ -47,21 +45,15 @@
 #define DIS_DEBUG_PRTBIN        0x04L
 #define DIS_DEBUG_PRTFMT        0x08L
 
 #define DIS_DEBUG_ALL DIS_DEBUG_SYN_ALL|DIS_DEBUG_PRTBIN|DIS_DEBUG_PRTFMT
 
-struct dis_handle {
-        void            *dh_data;
-        dis_lookup_f    dh_lookup;
-        dis_read_f      dh_read;
-        int             dh_flags;
-
-        char            *dh_buf;
-        size_t          dh_buflen;
-        uint64_t        dh_addr;
-        int             dh_debug;
-};
+typedef struct dis_handle_sparc {
+        char            *dhx_buf;
+        size_t          dhx_buflen;
+        int             dhx_debug;
+} dis_handle_sparc_t;
 
 /* different types of things we can have in inst_t */
 #define INST_NONE       0x00
 #define INST_DEF        0x01
 #define INST_TBL        0x02