typedef enum bfd_print_symbol
{
- bfd_print_symbol_name_enum,
- bfd_print_symbol_type_enum,
- bfd_print_symbol_all_enum
-} bfd_print_symbol_enum_type;
+ bfd_print_symbol_name,
+ bfd_print_symbol_more,
+ bfd_print_symbol_all
+} bfd_print_symbol_type;
\f
\f
/*
stuff
- bfd_arch_info_struct
+ bfd_arch_info
This structure contains information on architectures.
*/
-typedef int bfd_reloc_code_enum_type;
+typedef int bfd_reloc_code_type;
-typedef struct bfd_arch_info_struct
+typedef struct bfd_arch_info
{
int bits_per_word;
int bits_per_address;
CONST char *printable_name;
/* true if this is the default machine for the architecture */
boolean the_default;
- CONST struct bfd_arch_info_struct * EXFUN((*compatible),(CONST struct bfd_arch_info_struct *a,
- CONST struct bfd_arch_info_struct *b));
+ CONST struct bfd_arch_info * EXFUN((*compatible),(CONST struct bfd_arch_info *a,
+ CONST struct bfd_arch_info *b));
-
- boolean EXFUN((*scan),(CONST struct bfd_arch_info_struct *,CONST char *));
+ boolean EXFUN((*scan),(CONST struct bfd_arch_info *,CONST char *));
unsigned int EXFUN((*disassemble),(bfd_vma addr, CONST char *data,
PTR stream));
CONST struct reloc_howto_struct *EXFUN((*reloc_type_lookup), (CONST struct
- bfd_arch_info_struct *,
- bfd_reloc_code_enum_type code));
+ bfd_arch_info *,
+ bfd_reloc_code_type code));
- struct bfd_arch_info_struct *next;
+ struct bfd_arch_info *next;
-} bfd_arch_info_struct_type;
+} bfd_arch_info_type;
/*
bfd_printable_name
found, otherwise NULL.
*/
- bfd_arch_info_struct_type *EXFUN(bfd_scan_arch,(CONST char *));
+ bfd_arch_info_type *EXFUN(bfd_scan_arch,(CONST char *));
/*
the compatible machine.
*/
- CONST bfd_arch_info_struct_type *EXFUN(bfd_arch_get_compatible,
+ CONST bfd_arch_info_type *EXFUN(bfd_arch_get_compatible,
(CONST bfd *abfd,
CONST bfd *bbfd));
bfd_set_arch_info
*/
- void EXFUN(bfd_set_arch_info,(bfd *, bfd_arch_info_struct_type *));
+ void EXFUN(bfd_set_arch_info,(bfd *, bfd_arch_info_type *));
/*
bfd_get_arch_info
*/
- bfd_arch_info_struct_type * EXFUN(bfd_get_arch_info,(bfd *));
+ bfd_arch_info_type * EXFUN(bfd_get_arch_info,(bfd *));
/*
bfd_lookup_arch
*/
- bfd_arch_info_struct_type * EXFUN(bfd_lookup_arch,(enum
+ bfd_arch_info_type * EXFUN(bfd_lookup_arch,(enum
bfd_architecture arch,long machine));
/*
bfd_reloc_dangerous
}
- bfd_reloc_status_enum_type;
+ bfd_reloc_status_type;
/*
*/
methods to be accomodated (eg, i960 callj instructions).
*/
- bfd_reloc_status_enum_type (*special_function)();
+ bfd_reloc_status_type (*special_function)();
/*
The textual name of the relocation type.
addend. Complex reloc types with addends were invented to solve just
this problem.
*/
- PROTO(bfd_reloc_status_enum_type,
+ PROTO(bfd_reloc_status_type,
bfd_perform_relocation,
(bfd * abfd,
arelent *reloc_entry,
/*
- bfd_reloc_code_enum_type
+ bfd_reloc_code_type
*/
-typedef enum
-{
+typedef enum bfd_reloc_code_real {
/*
16 bits wide, simple reloc
*/
BFD_RELOC_8_PCREL
- } bfd_reloc_code_enum_real_type;
+ } bfd_reloc_code_real_type;
/*
PROTO(CONST struct reloc_howto_struct *,
bfd_reloc_type_lookup,
- (CONST bfd_arch_info_struct_type *arch, bfd_reloc_code_enum_type code));
+ (CONST bfd_arch_info_type *arch, bfd_reloc_code_type code));
/*
*/
Pointer to structure which contains architecture information
*/
- struct bfd_arch_info_struct *arch_info;
+ struct bfd_arch_info *arch_info;
/*
Stuff only useful for archives:
of a file.
*/
- enum target_flavour_enum {
- bfd_target_aout_flavour_enum,
- bfd_target_coff_flavour_enum,
- bfd_target_elf_flavour_enum,
- bfd_target_ieee_flavour_enum,
- bfd_target_oasys_flavour_enum,
- bfd_target_srec_flavour_enum} flavour;
+ enum target_flavour {
+ bfd_target_unknown_flavour,
+ bfd_target_aout_flavour,
+ bfd_target_coff_flavour,
+ bfd_target_elf_flavour,
+ bfd_target_ieee_flavour,
+ bfd_target_oasys_flavour,
+ bfd_target_srec_flavour} flavour;
/*
The order of bytes within the data area of a file.
struct symbol_cache_entry**));
SDEF (struct symbol_cache_entry *, _bfd_make_empty_symbol, (bfd *));
SDEF (void, _bfd_print_symbol, (bfd *, PTR, struct symbol_cache_entry *,
- bfd_print_symbol_enum_type));
+ bfd_print_symbol_type));
#define bfd_print_symbol(b,p,s,e) BFD_SEND(b, _bfd_print_symbol, (b,p,s,e))
SDEF (alent *, _get_lineno, (bfd *, struct symbol_cache_entry *));
/* Opcode table for the H8-300
Copyright (C) 1989, 1991 Free Software Foundation.
+ Written by Steve Chamberlain, steve@cygnus.com.
This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler.
-Both GDB and GAS are free software; you can redistribute and/or modify
+This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
-GDB and GAS are distributed in the hope that it will be useful,
+This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with GDB or GAS; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-By steve@cygnus.com
-*/
-
-typedef enum
+typedef enum op_type
{
Hex0=0,
Hex1,Hex2,Hex3,Hex4,Hex5,Hex6,Hex7,Hex8,Hex9,HexA,HexB,HexC,HexD,HexE,HexF,
B31 = 0x80, /* bit 3 must be high */
E /* End of list */
- } op_enum_type;
+ } op_type;
struct code {
- op_enum_type nib[9];
+ op_type nib[9];
} ;
struct h8_opcode {