ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/src/disass/bfd.h
(Generate patch)

Comparing mon/src/disass/bfd.h (file contents):
Revision 1.1 by cebix, 2000-10-05T14:52:03Z vs.
Revision 1.2 by gbeauche, 2002-09-07T12:48:15Z

# Line 2 | Line 2
2   *  bfd.h - Dummy bfd library header file
3   */
4  
5 + #include "config.h"
6   #include "ansidecl.h"
7  
8   enum bfd_flavour {
# Line 27 | Line 28 | enum bfd_architecture {
28          bfd_arch_i386
29   #define bfd_mach_i386_i386 0
30   #define bfd_mach_i386_i8086 1
31 + #define bfd_mach_i386_i386_intel_syntax 2
32 + #define bfd_mach_x86_64 3
33 + #define bfd_mach_x86_64_intel_syntax 4
34   };
35  
36   typedef struct symbol_cache_entry {
# Line 39 | Line 43 | typedef unsigned char bfd_byte;
43  
44   typedef struct _bfd bfd;
45   struct _bfd;
46 +
47 + #if SIZEOF_LONG == 64
48 + #define BFD_HOST_64BIT_LONG 1
49 + #endif
50 +
51 + #ifndef fprintf_vma
52 + #if BFD_HOST_64BIT_LONG
53 + #define sprintf_vma(s,x) sprintf (s, "%016lx", x)
54 + #define fprintf_vma(f,x) fprintf (f, "%016lx", x)
55 + #else
56 + #define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff)))
57 + #define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
58 + #define fprintf_vma(s,x) \
59 +  fprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))
60 + #define sprintf_vma(s,x) \
61 +  sprintf ((s), "%08lx%08lx", _bfd_int64_high (x), _bfd_int64_low (x))
62 + #endif
63 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines