aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-30 22:33:01 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-30 22:33:01 +0000
commit2700c3c75a601134e071086f677dfc6efe61e067 (patch)
tree1d9248bd2fe28d0802678212c6160074556ce0d3 /include
parent4ffd30479f7a84b27895bae9cf27e9ae6354321a (diff)
downloadgdb-2700c3c75a601134e071086f677dfc6efe61e067.zip
gdb-2700c3c75a601134e071086f677dfc6efe61e067.tar.gz
gdb-2700c3c75a601134e071086f677dfc6efe61e067.tar.bz2
*** empty log message ***
Diffstat (limited to 'include')
-rw-r--r--include/bfd.h32
-rwxr-xr-xinclude/coff-i386.h6
2 files changed, 34 insertions, 4 deletions
diff --git a/include/bfd.h b/include/bfd.h
index 2d10208..da6a563 100644
--- a/include/bfd.h
+++ b/include/bfd.h
@@ -514,7 +514,7 @@ typedef struct bfd_target
/* All the standard stuff */
SDEF (boolean, _close_and_cleanup, (bfd *)); /* free any allocated data */
SDEF (boolean, _bfd_set_section_contents, (bfd *, sec_ptr, PTR,
- file_ptr, bfd_size_type));
+ file_ptr, bfd_size_type));
SDEF (boolean, _bfd_get_section_contents, (bfd *, sec_ptr, PTR,
file_ptr, bfd_size_type));
SDEF (boolean, _new_section_hook, (bfd *, sec_ptr));
@@ -542,6 +542,26 @@ typedef struct bfd_target
SDEF (int, _bfd_stat_arch_elt, (bfd *, struct stat *));
SDEF (int, _bfd_sizeof_headers, (bfd *, boolean));
+
+ /* Jumps for coff swapping */
+
+ SDEF(void, _bfd_coff_swap_aux_in,(
+ bfd *abfd ,
+ AUXENT *ext ,
+ int type,
+ int class ,
+ union internal_auxent *in));
+
+ SDEF(void, _bfd_coff_swap_sym_in,(
+ bfd *abfd ,
+ SYMENT *ext ,
+ struct internal_syment *in));
+
+ SDEF(void, _bfd_coff_swap_lineno_in,(
+ bfd *abfd,
+ LINENO *ext,
+ struct internal_lineno *in));
+
} bfd_target;
/* The code that implements targets can initialize a jump table with this
@@ -582,6 +602,8 @@ CAT(NAME,_openr_next_archived_file),\
CAT(NAME,_find_nearest_line),\
CAT(NAME,_generic_stat_arch_elt),\
CAT(NAME,_sizeof_headers)
+
+#define COFF_SWAP_TABLE coff_swap_aux_in, coff_swap_sym_in, coff_swap_lineno_in,
/* User program access to BFD facilities */
@@ -762,6 +784,14 @@ PROTO(boolean, bfd_scan_arch_mach,(CONST char *, enum bfd_architecture *,
#define bfd_canonicalize_symtab(abfd, location) \
BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))
+#define bfd_coff_swap_lineno_in(abfd, ext, in) \
+ BFD_SEND(abfd, _bfd_coff_swap_lineno_in, (abfd, ext, in))
+
+#define bfd_coff_swap_sym_in(abfd, ext, in) \
+ BFD_SEND(abfd, _bfd_coff_swap_sym_in,(abfd, ext, in))
+
+#define bfd_coff_swap_aux_in(abfd, ext, type, class, in) \
+ BFD_SEND(abfd, _bfd_coff_swap_aux_in,(abfd, ext, type, class, in))
#define bfd_make_empty_symbol(abfd) \
BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
diff --git a/include/coff-i386.h b/include/coff-i386.h
index 8b0464f..3065561 100755
--- a/include/coff-i386.h
+++ b/include/coff-i386.h
@@ -283,9 +283,9 @@ struct internal_syment {
#define DT_FCN (2) /* function */
#define DT_ARY (3) /* array */
-#define N_BTMASK (0x1f)
-#define N_TMASK (0x60)
-#define N_BTSHFT (5)
+#define N_BTMASK (0xf)
+#define N_TMASK (0x30)
+#define N_BTSHFT (4)
#define N_TSHIFT (2)
#define BTYPE(x) ((x) & N_BTMASK)