diff options
author | John Gilmore <gnu@cygnus> | 1991-10-05 05:29:40 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-10-05 05:29:40 +0000 |
commit | 81f8fee92123757611e8bc38bad6867782479a85 (patch) | |
tree | 523d65a714b427090bc9f36faf62814c39101159 | |
parent | 9e2dad8ed4b31d55281cca6915da87d2ea487125 (diff) | |
download | gdb-81f8fee92123757611e8bc38bad6867782479a85.zip gdb-81f8fee92123757611e8bc38bad6867782479a85.tar.gz gdb-81f8fee92123757611e8bc38bad6867782479a85.tar.bz2 |
* h8300-opcode.h: Remove `_enum' from the typedef for an enum.
* bfd.h: Update to match bfd changes.
-rw-r--r-- | include/ChangeLog | 12 | ||||
-rw-r--r-- | include/bfd.h | 73 | ||||
-rwxr-xr-x | include/h8300-opcode.h | 23 |
3 files changed, 58 insertions, 50 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 19eed2b..5036a52 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,6 +1,18 @@ +Fri Oct 4 01:25:59 1991 John Gilmore (gnu at cygnus.com) + + * h8300-opcode.h: Remove `_enum' from the typedef for an enum. + * bfd.h: Update to match bfd changes. + + * sys/h-i386mach.h, sysdep.h: Add 386 Mach host support. + Tue Oct 1 04:58:42 1991 John Gilmore (gnu at cygnus.com) + * bfd.h, elf-common.h, elf-external.h, elf-internal.h: + Add preliminary ELF support, sufficient for GDB, from Fred Fish. + * sysdep.h, sys/h-amix.h: Support Amiga SVR4. + * sys/h-vaxult.h: Make it work. (David Taylor <taylor@think.com>) + * a.out.vax.h: Remove unused and confusing file. Mon Sep 30 12:52:35 1991 Per Bothner (bothner at cygnus.com) diff --git a/include/bfd.h b/include/bfd.h index 1de0e54..91dbab6 100644 --- a/include/bfd.h +++ b/include/bfd.h @@ -220,10 +220,10 @@ PROTO (void, bfd_perror, (CONST char *message)); 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; @@ -894,12 +894,12 @@ enum bfd_architecture /* 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; @@ -910,20 +910,19 @@ typedef struct bfd_arch_info_struct 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 @@ -943,7 +942,7 @@ routine returns a pointer to an arch_info structure if a machine is found, otherwise NULL. */ - bfd_arch_info_struct_type *EXFUN(bfd_scan_arch,(CONST char *)); + bfd_arch_info_type *EXFUN(bfd_scan_arch,(CONST char *)); /* @@ -955,7 +954,7 @@ the BFDs and returns a pointer to an arch_info structure describing 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)); @@ -964,7 +963,7 @@ the compatible machine. 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 *)); /* @@ -1009,14 +1008,14 @@ Returns the number of bits in one of the architectures addresses 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)); /* @@ -1092,7 +1091,7 @@ only when linking i960 coff files with i960 b.out symbols. bfd_reloc_dangerous } - bfd_reloc_status_enum_type; + bfd_reloc_status_type; /* */ @@ -1203,7 +1202,7 @@ than the normal function. This allows really strange relocation 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. @@ -1308,7 +1307,7 @@ these formats the output data slot will always be big enough for the 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, @@ -1318,11 +1317,10 @@ this problem. /* - bfd_reloc_code_enum_type + bfd_reloc_code_type */ -typedef enum -{ +typedef enum bfd_reloc_code_real { /* 16 bits wide, simple reloc @@ -1347,7 +1345,7 @@ typedef enum */ BFD_RELOC_8_PCREL - } bfd_reloc_code_enum_real_type; + } bfd_reloc_code_real_type; /* @@ -1361,7 +1359,7 @@ noted. 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)); /* */ @@ -1739,7 +1737,7 @@ The start address. 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: @@ -1963,13 +1961,14 @@ The "flavour" of a back end is a general indication about the contents 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. @@ -2109,7 +2108,7 @@ Symbols and reloctions 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 *)); diff --git a/include/h8300-opcode.h b/include/h8300-opcode.h index 4e031ae..92da206 100755 --- a/include/h8300-opcode.h +++ b/include/h8300-opcode.h @@ -1,27 +1,24 @@ /* 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, @@ -53,12 +50,12 @@ 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 { |