binutils-gdb.git
28 years ago * binutils-all/objcopy.exp: Use the lma, not the vma, when testing
Ian Lance Taylor [Mon, 15 Jan 1996 23:14:52 +0000 (23:14 +0000)]
* binutils-all/objcopy.exp: Use the lma, not the vma, when testing
address adjustments.

28 years agoAdd new PPC relocations
Michael Meissner [Mon, 15 Jan 1996 22:50:07 +0000 (22:50 +0000)]
Add new PPC relocations

28 years agoAdd more relocation suffixes
Michael Meissner [Mon, 15 Jan 1996 22:46:10 +0000 (22:46 +0000)]
Add more relocation suffixes

28 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Ian Lance Taylor [Mon, 15 Jan 1996 22:38:22 +0000 (22:38 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Don't make a shared library because of an undefined reference to
__GLOBAL_OFFSET_TABLE_.

28 years ago * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
Ian Lance Taylor [Mon, 15 Jan 1996 22:37:16 +0000 (22:37 +0000)]
* aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
entries.

28 years ago * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
Ian Lance Taylor [Mon, 15 Jan 1996 22:00:38 +0000 (22:00 +0000)]
* sunos.c (sunos_scan_ext_relocs): Don't fail assert if
        info->shared.

28 years agoupdate copyrights
Ian Lance Taylor [Mon, 15 Jan 1996 21:06:31 +0000 (21:06 +0000)]
update copyrights

28 years ago * coffgen.c (coff_find_nearest_line): Don't try to cache
Ian Lance Taylor [Mon, 15 Jan 1996 20:47:32 +0000 (20:47 +0000)]
* coffgen.c (coff_find_nearest_line): Don't try to cache
information in sections that are not owned by a BFD.  From Richard
Henderson <richard@atheist.tamu.edu>.

28 years ago * elf32-mips.c: Numerous changes to dynamic linking code, mostly
Ian Lance Taylor [Mon, 15 Jan 1996 20:25:53 +0000 (20:25 +0000)]
* elf32-mips.c: Numerous changes to dynamic linking code, mostly
from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
* elflink.h (elf_link_output_extsym): Remove special check for
_rld_new_interface.

28 years ago Add some Irix 5 support, mostly from Kazumoto Kojima
Ian Lance Taylor [Mon, 15 Jan 1996 20:13:04 +0000 (20:13 +0000)]
Add some Irix 5 support, mostly from Kazumoto Kojima
        <kkojima@info.kanagawa-u.ac.jp>:
* emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
(SHLIB_TEXT_START_ADDR): Define.
(OTHER_GOT_SYMBOLS): Define.
(OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
(EXECUTABLE_SYMBOLS): Don't define.
(DYNAMIC_LINK): Don't define.
* emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
* scripttempl/elfmips.sc: New file.
* configure.host (mips*-dec-bsd*): Change mips to mips*.
(mips*-sgi-irix4*): Likewise.
(mips*-sgi-irix5*): New entry.
* Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
elf.sc.
(eelf32lmip.c): Likewise.

28 years ago * ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
Ian Lance Taylor [Mon, 15 Jan 1996 20:06:43 +0000 (20:06 +0000)]
* ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
when doing the --static test.
* ld-shared/shared.exp: Run tests on mips*-*-irix5*.

28 years ago * ecoffswap.h: Add prototypes for static functions.
Ian Lance Taylor [Mon, 15 Jan 1996 19:32:08 +0000 (19:32 +0000)]
* ecoffswap.h: Add prototypes for static functions.

28 years ago * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
Fred Fish [Mon, 15 Jan 1996 18:34:28 +0000 (18:34 +0000)]
* gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
[] tests with "test" and enclose string in quotes.
* gdb.stabs/configure: Rebuild

28 years ago * gdb.stabs/configure (alpha-*-*,mips-*-*): Add missing
Fred Fish [Mon, 15 Jan 1996 17:35:05 +0000 (17:35 +0000)]
* gdb.stabs/configure (alpha-*-*,mips-*-*): Add missing
"test" and enclose string in quotes.

28 years ago * Makefile.in (CONFIGURE_TARGET_MODULES): Add missing ';'.
Fred Fish [Mon, 15 Jan 1996 07:04:36 +0000 (07:04 +0000)]
* Makefile.in (CONFIGURE_TARGET_MODULES): Add missing ';'.

28 years agoRedo unknown reloc support. Do not allow symbols in .sdata/.sbss to satify a TOC16...
Michael Meissner [Mon, 15 Jan 1996 02:41:58 +0000 (02:41 +0000)]
Redo unknown reloc support.  Do not allow symbols in .sdata/.sbss to satify a TOC16 relocation.  Begin support R_PPC_SDA{2,}REL relocation.

28 years agoAllow .gcc_except_table to have unfixed pointers with -mrelocatable
Michael Meissner [Mon, 15 Jan 1996 02:34:07 +0000 (02:34 +0000)]
Allow .gcc_except_table to have unfixed pointers with -mrelocatable

28 years agoMake elf section functions ELF specific
Michael Meissner [Sat, 13 Jan 1996 16:10:33 +0000 (16:10 +0000)]
Make elf section functions ELF specific

28 years agoAdd .rela.got.neg section; remove .rel.* sections
Michael Meissner [Sat, 13 Jan 1996 14:44:48 +0000 (14:44 +0000)]
Add .rela.got.neg section; remove .rel.* sections

28 years agoWarn about relocations we do not yet support
Michael Meissner [Sat, 13 Jan 1996 14:40:50 +0000 (14:40 +0000)]
Warn about relocations we do not yet support

28 years ago * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
Jeff Law [Sat, 13 Jan 1996 04:43:38 +0000 (04:43 +0000)]
    * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
        is set but there are no psymtabs.

28 years ago * dsrec.c (load_srec): Remove unused variable.
Steve Chamberlain [Sat, 13 Jan 1996 00:21:55 +0000 (00:21 +0000)]
* dsrec.c (load_srec): Remove unused variable.
monitor.c (monitor_expect): Don't expect a ^C to echo.
* serial.c (serial_open): Add parallel interface.
* sh3-rom.c (parallel, parallel_in_use): New.
(sh3_load): If parallel_in_use, download though the
parallel port.
(sh3_open): Open parallel port if specified.
(sh3_close): New function.
(_inititalize_sh3): Add sh3_close hook and documentation.
* monitor.c (monitor_close): Export.
* monitor.h (monitor_close): Add prototype.

28 years ago * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
Ian Lance Taylor [Fri, 12 Jan 1996 23:43:24 +0000 (23:43 +0000)]
* scripttempl/sh.sc: Only build constructors when CONSTRUCTING.

28 years ago From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
Stan Shebs [Fri, 12 Jan 1996 23:31:13 +0000 (23:31 +0000)]
From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
* remote.c (remotetimeout): New GDB variable, use to set the
remote timeout for reading.
PR 8791.

28 years ago * elf.c (assign_file_positions_for_segments): If a segment
Ian Lance Taylor [Fri, 12 Jan 1996 22:47:04 +0000 (22:47 +0000)]
* elf.c (assign_file_positions_for_segments): If a segment
contains no sections, don't mark it as readable.

28 years ago * subsegs.c (section_symbol): Don't try to look up the section
Ian Lance Taylor [Fri, 12 Jan 1996 21:11:43 +0000 (21:11 +0000)]
* subsegs.c (section_symbol): Don't try to look up the section
symbol in the hash table.  It should be possible to have a symbol
with the same name as a section, but no connection to it.

28 years ago * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
Ian Lance Taylor [Fri, 12 Jan 1996 20:48:14 +0000 (20:48 +0000)]
* elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
* elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.

28 years agotweak last change
Ian Lance Taylor [Fri, 12 Jan 1996 20:46:22 +0000 (20:46 +0000)]
tweak last change

28 years agoAdd support for exclude section flag and ordered section type
Michael Meissner [Fri, 12 Jan 1996 20:35:38 +0000 (20:35 +0000)]
Add support for exclude section flag and ordered section type

28 years agoAdd PowerPC support for SHF_EXCLUDE, SHT_ORDERED
Michael Meissner [Fri, 12 Jan 1996 20:31:05 +0000 (20:31 +0000)]
Add PowerPC support for SHF_EXCLUDE, SHT_ORDERED

28 years ago * configure.in: Make sure that ${CC} can be used to compile an
Ian Lance Taylor [Fri, 12 Jan 1996 20:26:05 +0000 (20:26 +0000)]
* configure.in: Make sure that ${CC} can be used to compile an
executable.

28 years ago * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
Ian Lance Taylor [Fri, 12 Jan 1996 20:01:17 +0000 (20:01 +0000)]
* ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
ANSI_PROTOTYPES is defined.  Remove special handling of
WINDOWS_NT.  Various indendation fixes.
(vfinfo): Change fmt parameter to const char *.
(info_msg): Write <stdarg.h> version.
(einfo, minfo, finfo): Likewise.
(info_assert): Change file parameter to const char *.
* ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
defined, use a real prototype.
(info_assert): Change first parameter to be const char *.

28 years agoFri Jan 12 14:35:58 1996 David Mosberger-Tang <davidm@AZStarNet.com>
Ian Lance Taylor [Fri, 12 Jan 1996 19:37:58 +0000 (19:37 +0000)]
Fri Jan 12 14:35:58 1996  David Mosberger-Tang  <davidm@AZStarNet.com>

* alpha-opc.h (alpha_insn_set): VAX floating point opcode was
  incorrectly defined as 0x16 when it should be 0x15.
(FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
(alpha_insn_set): added cvtst and cvttq float ops.  Also added
  excb (exception barrier) which is defined in the Alpha
  Architecture Handbook version 2.
* alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
  OPERATE_FORMAT_CODE type instructions.  The bug caused mulq to be
  disassembled as or, for example.

28 years ago * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
Ian Lance Taylor [Fri, 12 Jan 1996 19:13:49 +0000 (19:13 +0000)]
* elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
dynamic section, if there is one.
* elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
(bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
(bfd_elf64_swap_dyn_in): Likewise.
* elfcode.h (elf_swap_dyn_in): Change type of second parameter to
PTR.
(NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.

28 years ago * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
Ian Lance Taylor [Fri, 12 Jan 1996 19:00:18 +0000 (19:00 +0000)]
* elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
DT_TEXTREL entry because of .rel.plt.  From Martin Pirker
<pirker@eiunix.tuwien.ac.at>.

28 years agoAdd support for .sdata2/.sbss2 and old 2.7.2 compiler; Make text start at 64k; make...
Michael Meissner [Fri, 12 Jan 1996 18:37:47 +0000 (18:37 +0000)]
Add support for .sdata2/.sbss2 and old 2.7.2 compiler; Make text start at 64k; make data follow on next 64k page after text

28 years ago * read.c (cons_worker): Only call mri_comment_end from flag_mri.
Ian Lance Taylor [Fri, 12 Jan 1996 17:10:24 +0000 (17:10 +0000)]
* read.c (cons_worker): Only call mri_comment_end from flag_mri.
From James Carlson <carlson@xylogics.com>.

28 years ago * expr.c (operand): Skip whitespace after a close parenthesis.
Ian Lance Taylor [Fri, 12 Jan 1996 17:07:04 +0000 (17:07 +0000)]
* expr.c (operand): Skip whitespace after a close parenthesis.
From James Carlson <carlson@xylogics.com>.

28 years ago * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
Fred Fish [Fri, 12 Jan 1996 16:01:29 +0000 (16:01 +0000)]
* lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
to get "struct core_fns" defined.
* Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
  Are dependant upon gdbcore_h.

28 years ago * symfile.c (decrement_reading_symtab): New function.
Per Bothner [Fri, 12 Jan 1996 07:16:20 +0000 (07:16 +0000)]
* symfile.c (decrement_reading_symtab):  New function.
* symfile.c, symtab.h (currently_reading_symtab):  New variable.
* symfile.c (psymtab_to_symtab):  Adjust currently_reading_symtab.
* gdbtypes.c (check_typedef):  Don't call lookup_symbol if
currently_reading_symtab (since that could infinitely recurse).
This fixes PR chill/8793.

28 years ago * stabsread.c (read_struct_type): Trivial simplification.
Per Bothner [Fri, 12 Jan 1996 07:12:42 +0000 (07:12 +0000)]
* stabsread.c (read_struct_type):  Trivial simplification.

* valops.c (call_function_by_hand):  Use invisible references
for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.

28 years ago * xcofflink.c (xcoff_link_add_symbols): Create the special
Ian Lance Taylor [Fri, 12 Jan 1996 04:29:59 +0000 (04:29 +0000)]
* xcofflink.c (xcoff_link_add_symbols): Create the special
sections if we see a DYNAMIC object, in case that is the only
XCOFF input object we see.
PR 8788.

28 years ago * Makefile.in (PROGS): Removed.
Per Bothner [Fri, 12 Jan 1996 01:37:28 +0000 (01:37 +0000)]
* Makefile.in (PROGS):  Removed.
(clean mostlyclean):  Remove *.exe rather than ${PROGS}.

28 years ago * pr-8742.ch, pr-8742.exp: New test case.
Per Bothner [Fri, 12 Jan 1996 01:35:30 +0000 (01:35 +0000)]
* pr-8742.ch, pr-8742.exp:  New test case.

28 years ago * stabsread.c (define-symbol): Use invisible references
Per Bothner [Fri, 12 Jan 1996 01:31:37 +0000 (01:31 +0000)]
* stabsread.c (define-symbol):  Use invisible references
for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
* eval.c (evaluate_subexp_standard):  When known, use the formal
parameter type as the expected type when evaluating arg expressions.
* ch-lang.c (evaluate_subexp_chill):  Likewise (for MULTI_SUBSCRIPT).
This (with a fix to gcc/config/sparc/sparc.h) fixes PR chill/8742.

28 years agoupdate copyright
Michael Meissner [Thu, 11 Jan 1996 22:50:52 +0000 (22:50 +0000)]
update copyright

28 years agoAdd support for SHT_ORDERED and SHF_EXCLUDE
Michael Meissner [Thu, 11 Jan 1996 22:47:04 +0000 (22:47 +0000)]
Add support for SHT_ORDERED and SHF_EXCLUDE

28 years agofix crinfo swapping
Ian Lance Taylor [Thu, 11 Jan 1996 21:42:22 +0000 (21:42 +0000)]
fix crinfo swapping

28 years agoAdd new V.4 flags
Michael Meissner [Thu, 11 Jan 1996 21:41:01 +0000 (21:41 +0000)]
Add new V.4 flags

28 years ago * elf32-mips.c: Extensive changes for a start at dynamic linking
Ian Lance Taylor [Thu, 11 Jan 1996 21:06:42 +0000 (21:06 +0000)]
* elf32-mips.c: Extensive changes for a start at dynamic linking
support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.

* elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
(struct elf_backend_data): Remove
elf_backend_create_program_headers field.  Add
elf_backend_additional_program_headers and
elf_backend_modify_segment_map fields.
* elfxx-target.h (elf_backend_type_change_ok): Define if not
defined.
(elf_backend_additional_program_headers): Likewise.
(elf_backend_modify_segment_map): Likewise.
(elf_backend_create_program_headers): Don't define.
(elfNN_bed): Change to account for field changes.
* elf.c (assign_file_positions_for_segments): Call new
modify_segment_map backend function.  Don't call old
create_program_headers backend function.
(get_program_header_size): Call additional_program_headers rather
than create_program_headers.
* elflink.h (elf_link_add_object_symbols): Initialize
type_change_ok from new backend field.
(elf_link_output_extsym): Don't warn if _rld_new_interface is
defined.
(elf_reloc_link_order): Treat a reloc against a defined symbol as
a reloc against the appropriate section.

28 years agoForget to add low-linux.c during recent checkins.
Fred Fish [Thu, 11 Jan 1996 20:10:24 +0000 (20:10 +0000)]
Forget to add low-linux.c during recent checkins.

28 years ago * coredep.c: Renamed to core-aout.c
Fred Fish [Thu, 11 Jan 1996 20:08:15 +0000 (20:08 +0000)]
* coredep.c: Renamed to core-aout.c
* core-svr4.c: Renamed to core-regset.c
* Makefile.in (ALLDEPFILES): Account for renamings.
* corelow.c (core_file_fns): Add, points to chain of structs.
(add_core_fns): New function to build chain of structs.
(get_core_registers): Modify to search core functions chain and call
  appropriate fetch_core_registers function based on core file flavour.
* gdbcore.h (fetch_core_registers):  Remove declaration.
(struct core_fns): Define struct for core function info.
* i386m3-nat.c: Update comment for filename change (coredep->core-aout)
* a68v-nat.c (fetch_core_registers): Remove stub, not needed now.
* alpha-nat.c (fetch_core_registers): Make static.
(alpha_core_fns, _initialize_core_alpha): New struct and func.
* core-aout.c (fetch_core_registers): Make static
(aout_core_fns, _initialize_core_aout): New struct and func.
* core-regset.c (fetch_core_registers): Make static.
(regset_core_fns, _initialize_core_regset): New struct and func.
* core-sol2.c (fetch_core_registers): Make static.
(solaris_core_fns, _initialize_core_solaris): New struct and func.
* hp300ux-nat.c (fetch_core_registers): Make static.
(hp300ux_core_fns, _initialize_core_hp300ux): New struct and func.
* i386aix-nat.c (fetch_core_registers): Make static.
(i386aix_core_fns, _initialize_core_i386aix): New struct and func.
* i386mach-nat.c (fetch_core_registers: Make static.
(i386mach_core_fns, _initialize_core_i386mach): New struct and func.
* irix4-nat.c (fetch_core_registers): Make static.
(irix4_core_fns, _initialize_core_irix4): New struct and func.
* irix5-nat.c (fetch_core_registers):
(irix5_core_fns, _initialize_core_irix5): New struct and func.
* lynx-nat.c (fetch_core_registers): Make static.
(lynx_core_fns, _initialize_core_lynx): New struct and func.
* mips-nat.c (fetch_core_registers): Make static.
(mips_core_fns, _initialize_core_mips): New struct and func.
* ns32km3-nat.c (fetch_core_registers): Remove stub.
* rs6000-nat.c (fetch_core_registers): Make static.
(rs6000_core_fns, _initialize_core_rs6000): New struct and func.
* sparc-nat.c (fetch_core_registers): Make static.
(sparc_core_fns, _initialize_core_sparc): New struct and func.
* sun3-nat.c (fetch_core_registers):
(sun3_core_fns, _initialize_core_sun3): New struct and func.
* sun386-nat.c (fetch_core_registers): Remove stub.
* ultra3-nat.c (fetch_core_registers): Make static.
(ultra3_core_fns, _initialize_core_ultra3): New struct and func.
* config/gould/pn.mh (XDEPFILES),
  config/i386/fbsd.mh (NATDEPFILES),
config/i386/i386bsd.mh (NATDEPFILES),
  config/i386/i386m3.mh (XDEPFILES),
config/i386/i386sco.mh (NATDEPFILES),
config/i386/i386sco4.mh (NATDEPFILES),
config/i386/i386v.mh (NATDEPFILES),
config/i386/i386v32.mh (NATDEPFILES),
config/i386/nbsd.mh (NATDEPFILES),
config/i386/ptx.mh (XDEPFILES),
config/i386/ptx4.mh (XDEPFILES),
config/i386/symmetry.mh (NATDEPFILES),
config/m68k/3b1.mh (XDEPFILES),
config/m68k/cisco.mt (TDEPFILES),
config/m68k/delta68.mh (NATDEPFILES),
config/m68k/dpx2.mh (NATDEPFILES),
config/m68k/hp300bsd.mh (NATDEPFILES),
config/m68k/hp300hpux.mh (NATDEPFILES),
config/m68k/isi.mh (XDEPFILES),
config/m68k/news.mh (NATDEPFILES),
config/m68k/news1000.mh (XDEPFILES),
config/m88k/cxux.mh (NATDEPFILES),
config/m88k/delta88.mh (NATDEPFILES),
config/mips/littlemips.mh (XDEPFILES),
config/mips/mipsm3.mh (XDEPFILES),
config/ns32k/merlin.mh (XDEPFILES),
config/ns32k/nbsd.mh (NATDEPFILES),
config/ns32k/ns32km3.mh (NATDEPFILES),
config/pa/hppabsd.mh (NATDEPFILES),
config/pa/hppahpux.mh (NATDEPFILES),
config/romp/rtbsd.mh (XDEPFILES),
config/tahoe/tahoe.mh (XDEPFILES),
config/vax/vaxbsd.mh (XDEPFILES),
config/vax/vaxult.mh (NATDEPFILES),
config/vax/vaxult2.mh (NATDEPFILES),
Account for coredep.o to core-aout.o name change.
* config/i386/i386dgux (NATDEPFILES),
config/i386/i386sol2.mh (NATDEPFILES),
config/i386/i386v4.mh (NATDEPFILES),
config/i386/linux.mh (NATDEPFILES),
config/i386/ncr3000.mh (NATDEPFILES),
config/m68k/m68kv4.mh (NATDEPFILES),
config/m88k/delta88v4.mh (NATDEPFILES),
config/mips/mipsv4.mh (NATDEPFILES),
Account for core-svr4.o to core-regset.o name change.

28 years agooops, forgot the sanitize files for the aix4* changes
Brendan Kehoe [Thu, 11 Jan 1996 18:07:03 +0000 (18:07 +0000)]
oops, forgot the sanitize files for the aix4* changes

28 years ago * objcopy.c (filter_symbols): NULL terminate the output symbols.
Ian Lance Taylor [Thu, 11 Jan 1996 17:34:12 +0000 (17:34 +0000)]
* objcopy.c (filter_symbols): NULL terminate the output symbols.
(copy_object): Allocate space for a possible extra NULL pointer.

28 years ago * ieee.c (ieee_enum_type): Handle an undefined enum.
Ian Lance Taylor [Thu, 11 Jan 1996 17:33:47 +0000 (17:33 +0000)]
* ieee.c (ieee_enum_type): Handle an undefined enum.

28 years ago * debug.c (debug_make_undefined_tagged_type): Make sure we are
Ian Lance Taylor [Thu, 11 Jan 1996 16:47:10 +0000 (16:47 +0000)]
* debug.c (debug_make_undefined_tagged_type): Make sure we are
given a kind of type we can handle.
(debug_write_type): Handle undefined enums and structs.
(debug_write_class_type): Handle undefined classes.
* prdbg.c (pr_enum_type): Handle an undefined enum.
Also comment changes to debug.h.

28 years ago * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
Ian Lance Taylor [Thu, 11 Jan 1996 16:27:24 +0000 (16:27 +0000)]
* elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
(struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
(elf_flags_init): Rename from elf_ppc_flags_init.
* elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
elf_ppc_flags_init.
(ppc_elf_copy_private_bfd_data): Likewise.
(ppc_elf_merge_private_bfd_data): Likewise.

28 years ago * elf32-m68k.c (howto_table): Change src_mask to 0 for all
Ian Lance Taylor [Thu, 11 Jan 1996 16:24:39 +0000 (16:24 +0000)]
* elf32-m68k.c (howto_table): Change src_mask to 0 for all
relocation entries.

28 years ago Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
Brendan Kehoe [Thu, 11 Jan 1996 00:16:56 +0000 (00:16 +0000)]
Wed Jan 10 16:08:49 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>

* configure.in, configure: Recognize rs6000-*-aix4*.
* config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
* config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
* config/rs6000/xm-aix4.h: New file.
* config/xm-aix4.h: New file.

 From the Mentor work...enable configure & build on rs6000-ibm-aix4.1.*.
Note this is an unbelievably buggy debugger on this host.

28 years ago * Makefile.in: (ALLOCA, MALLOC): Remove variables.
Ian Lance Taylor [Wed, 10 Jan 1996 20:43:39 +0000 (20:43 +0000)]
* Makefile.in: (ALLOCA, MALLOC): Remove variables.
(ADDL_LIBS): Remove $(MALLOC) from definition.
* alloca.c, gmalloc.c: Remove.

28 years agoLatest changes from Andrew
Michael Meissner [Wed, 10 Jan 1996 20:42:29 +0000 (20:42 +0000)]
Latest changes from Andrew

28 years ago * Makefile.in: Updated dependencies.
Ian Lance Taylor [Wed, 10 Jan 1996 20:33:36 +0000 (20:33 +0000)]
* Makefile.in: Updated dependencies.

28 years ago From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
Fred Fish [Wed, 10 Jan 1996 18:40:24 +0000 (18:40 +0000)]
From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
* gdbserver/low-linux.c: New file.
* remote.c (remote_read_bytes): Fix aborts on larger packets.

* config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
Define.
* stabsread.c (define_symbol): If register value is too large,
tell what it is and what max is.

28 years ago * gas/mips/*.d: Update for changes to disassembler.
Ian Lance Taylor [Wed, 10 Jan 1996 17:57:47 +0000 (17:57 +0000)]
* gas/mips/*.d: Update for changes to disassembler.

28 years ago * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
Ian Lance Taylor [Wed, 10 Jan 1996 17:37:58 +0000 (17:37 +0000)]
* mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
(_print_insn_mips): Change i from int to unsigned int.

28 years agoupdate copyrights
Ian Lance Taylor [Tue, 9 Jan 1996 20:53:33 +0000 (20:53 +0000)]
update copyrights

28 years ago * scripttempl/alpha.sc: Put .rconst right after .rdata.
Ian Lance Taylor [Tue, 9 Jan 1996 20:53:26 +0000 (20:53 +0000)]
* scripttempl/alpha.sc: Put .rconst right after .rdata.

28 years agoTue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
Ian Lance Taylor [Tue, 9 Jan 1996 20:40:39 +0000 (20:40 +0000)]
Tue Jan  9 15:22:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>

* coff-alpha.c (alpha_relocate_section): During final link, allow
  output .lita section to be bigger than 64k by adjusting gp value
  on a per-input section basis.
* libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
field.
(struct ecoff_section_tdata): Add gp field.

Tue Jan  9 12:00:36 1996  Ian Lance Taylor  <ian@cygnus.com>

Handle Alpha ECOFF changes in OSF/1 3.2.
* libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
field.
* coff-alpha.c: Include "aout/ar.h".
(alpha_ecoff_get_relocated_section_contents): Don't require an
ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
3.2 doesn't generate one.
(alpha_relocate_section): Likewise.
(alpha_ecoff_slurp_armap): Define.
(alpha_ecoff_slurp_extended_name_table): Define.
(alpha_ecoff_construct_extended_name_table): Define.
(alpha_ecoff_truncate_arname): Define.
(alpha_ecoff_write_armap): Define.
(alpha_ecoff_generic_stat_arch_elt): Define.
(alpha_ecoff_update_armap_timestamp): Define.
(ARFZMAG): Define.
(alpha_ecoff_read_ar_hdr): New static function.
(alpha_ecoff_get_elt_at_filepos): New static function.
(alpha_ecoff_openr_next_archived_file): New static function.
(alpha_ecoff_get_elt_at_index): New static function.
(alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
(ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
_bfd_ecoff to alpha_ecoff.
* ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
field from backend structure, rather than always calling
_bfd_get_elt_at_filepos.
* coff-mips.c (mips_ecoff_backend_data): Initialize
get_elt_at_filepos field.
* archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
from _bfd_generic_read_ar_hdr with minor changes.
(_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
* libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
* libbfd.h: Rebuild.

* bfd-in.h (BFD_IN_MEMORY): Define.
* libbfd-in.h (struct bfd_in_memory): Define.
* libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
(bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
(bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
(bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
* bfd.c (struct _bfd): Change iostream field from char * to PTR.
(bfd_get_size): Handle BFD_IN_MEMORY flag.
* cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
(bfd_open_file): Cast to PTR, not char *, when setting iostream.
(bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
* opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
iostream.
(bfd_openstreamr): Likewise.
* aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
BFD_IN_MEMORY is not set.
* riscix.c (riscix_some_aout_object_p): Likewise.
* bfd-in2.h, libbfd.h: Rebuild.

* targets.c (bfd_target): Add _bfd_get_elt_at_index field.
(BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
(bfd_get_elt_at_index): Define.
* archive.c (_bfd_generic_get_elt_at_index): Rename from
bfd_get_elt_at_index.  Change index parameter from int to
symindex.
* libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
(_bfd_noarchive_get_elt_at_index): Define.
(_bfd_archive_bsd_get_elt_at_index): Define.
(_bfd_archive_coff_get_elt_at_index): Define.
* bfd-in2.h, libbfd.h: Rebuild.
* aout-target.h (MY_get_elt_at_index): Define if not defined.
* coff-rs6000.c (xcoff_get_elt_at_index): Define.
* ieee.c (ieee_get_elt_at_index): Define.
* libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
* oasys.c (oasys_get_elt_at_index): Define.
* som.c (som_get_elt_at_index): Define.

28 years ago * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
Ian Lance Taylor [Tue, 9 Jan 1996 17:01:15 +0000 (17:01 +0000)]
* ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
numbers to the .text section.
PR 8767.

28 years ago * hpread.c (hpread_build_psymtabs): Finish Jan 4th
Jeff Law [Tue, 9 Jan 1996 16:35:32 +0000 (16:35 +0000)]
    * hpread.c (hpread_build_psymtabs): Finish Jan 4th
        enum namespace -> enum_namespace change.

28 years ago * misc.ch, misc.exp: Enhance test case.
Wilfried Moser [Tue, 9 Jan 1996 12:48:44 +0000 (12:48 +0000)]
    * misc.ch, misc.exp: Enhance test case.

28 years ago * ch-exp.c (parse_primval): in case ARRAY: Add missing FORWARD_TOKEN ().
Wilfried Moser [Tue, 9 Jan 1996 12:46:20 +0000 (12:46 +0000)]
    * ch-exp.c (parse_primval): in case ARRAY: Add missing FORWARD_TOKEN ().

28 years ago * remote-mips.c (mips_receive_header): Recognize \012 instead
Stan Shebs [Tue, 9 Jan 1996 00:37:35 +0000 (00:37 +0000)]
* remote-mips.c (mips_receive_header): Recognize \012 instead
of \n, but write \n when program sends a \012.
* ser-mac.c (mac_input_buffer): Increase size of buffer.

28 years ago * ieee.c: Add global function write_ieee_debugging_info and a
Ian Lance Taylor [Mon, 8 Jan 1996 23:20:00 +0000 (23:20 +0000)]
* ieee.c: Add global function write_ieee_debugging_info and a
bunch of static functions and structs used to write out IEEE
debugging information.
* budbg.h (write_ieee_debugging_info): Declare.

* ieee.c (struct ieee_type): Add pslot field.
(enum builtin_types): Define.
(ieee_builtin_type): For a pointer, return a pointer to the named
type.  Use enum values rather than numbers.
(ieee_alloc_type): New static function.
(ieee_read_type_index): Use ieee_alloc_type.
(parse_ieee_bb): Likewise.
(parse_ieee_ty): Likewise.  Use ieee_builtin_type for array range,
rather than making a new integer type.  Store the new type in the
slot, if there is one.
(parse_ieee_atn): Treat ATN10 as defining a register variable.
(ieee_regno_to_genreg): Rename from ieee_regno_to_gen.  Change all
callers.
(ieee_genreg_to_regno): New static function.

28 years ago * stabs.c (parse_stab_type): Add new typename parameter. Change
Ian Lance Taylor [Mon, 8 Jan 1996 23:19:17 +0000 (23:19 +0000)]
* stabs.c (parse_stab_type): Add new typename parameter.  Change
all callers.
(parse_stab_range_type): Add new typename parameter.  Change all
callers.

28 years ago * debug.h (struct debug_write_fns): Add tag parameter to
Ian Lance Taylor [Mon, 8 Jan 1996 23:18:51 +0000 (23:18 +0000)]
* debug.h (struct debug_write_fns): Add tag parameter to
enum_type, start_struct_type, and start_class_type.
* debug.c (debug_write_type): Pass any tag name to
start_struct_type, debug_write_class_type, and enum_type.  If
DEBUG_KIND_TAGGED, pass the name in the recursive call.
(debug_write_class_type): Accept a new tag parameter, and pass it
to start_class_type.
* prdbg.c (pop_type): Don't remove '+' character.
(pr_enum_type): Accept and use tag parameter.
(pr_start_struct_type): Likewise.
(pr_start_class_type): Likewise.
(pr_class_baseclass): Adjust algorithm used to find where to put
the baseclass name.
(pr_tag): Don't bother to insert the tag name.

28 years ago * objcopy.c: Include budbg.h.
Ian Lance Taylor [Mon, 8 Jan 1996 23:18:29 +0000 (23:18 +0000)]
* objcopy.c: Include budbg.h.
(convert_debugging): New static variable.
(OPTION_DEBUGGING): Define.
(copy_options): Add "debugging".
(copy_usage): Mention --debugging.
(is_strip_section): Skip debugging sections if convert_debugging.
(setup_section, copy_section): Likewise.
(filter_symbols): Skip debugging symbols if convert_debugging.
(copy_object): If convert_debugging, read and write debugging
information.
(write_debugging_info): New static function.
(copy_main): Handle --debugging.
* Makefile.in (DEBUG_OBJS): New variable.
($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
($(STRIP_PROG)): Likewise.
(OBJDUMP_OBJS): Remove variable.
($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
$(OBJDUMP_OBJS).
* binutils.texi, objcopy.1: Document --debugging.

28 years agoupdate copyright
Ian Lance Taylor [Mon, 8 Jan 1996 23:14:40 +0000 (23:14 +0000)]
update copyright

28 years ago * ieee.c (ieee_write_debug_part): Change return type to boolean.
Ian Lance Taylor [Mon, 8 Jan 1996 22:02:36 +0000 (22:02 +0000)]
* ieee.c (ieee_write_debug_part): Change return type to boolean.
If there is a SEC_DEBUGGING section, get the contents of the debug
information part from it.
(ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
section in memory.
(ieee_write_object_contents): Check ieee_write_debug_part return.

28 years ago * infptrace.c (initialize_infptrace): Move function out of
Jeff Law [Mon, 8 Jan 1996 19:02:08 +0000 (19:02 +0000)]
    * infptrace.c (initialize_infptrace): Move function out of
        #ifdef conditional; put code within the function inside an
        #ifdef conditional.

28 years agoLatest cagney update
Michael Meissner [Mon, 8 Jan 1996 18:01:17 +0000 (18:01 +0000)]
Latest cagney update

28 years ago * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
Jeff Law [Mon, 8 Jan 1996 17:55:25 +0000 (17:55 +0000)]
    * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
        arguments.  Sorting is now dependent on OBJF_REORDERED.  All
        callers/references changed.
        * dbxread.c (read_ofile_symtab): Correctly determine value for
        last_source_start_addr for reordered executables.
        (process_one_symbol): Handle N_FUN with no name as an end of
        function marker.
        * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
        is the high text address for a psymtab.
        (case N_SO): Likewise.
        (case N_FUN): Handle N_FUN with no name as an end of function
        marker.
        * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
        at the same address rather than a random subset of them.
        * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
        * elfread.c (elf_symfile_init): Similarly.
        * somread.c (som_symfile_init): Similarly.
        * xcoffread.c (xcoff_symfile_init): Similarly.

Support for debugging reordered executables.  Remaining mentor vm
changes.

28 years agoMake all-gdb include all-tcl/all-tk unless gdbtk is not built.
Michael Meissner [Sat, 6 Jan 1996 12:33:59 +0000 (12:33 +0000)]
Make all-gdb include all-tcl/all-tk unless gdbtk is not built.

28 years agoChange guile directory structure.
Gordon Irlam [Sat, 6 Jan 1996 03:43:59 +0000 (03:43 +0000)]
Change guile directory structure.

28 years ago * stack.c (print_stack_frame print_frame_info) symmisc.c
Stu Grossman [Sat, 6 Jan 1996 01:58:07 +0000 (01:58 +0000)]
* stack.c (print_stack_frame print_frame_info) symmisc.c
(dump_symtab):  Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
that catch_errors doesn't get blindsided by QUIT and lose the
cleanup chain.  This fixes a problem where ^C while in a
user-defined command sometimes leaves instream NULL and causes a
segfault in command_loop.

28 years ago * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
Steve Chamberlain [Fri, 5 Jan 1996 22:09:43 +0000 (22:09 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
sort using right pointer.

28 years ago * configure.in, configure: Add `-ldl -lw' for Solaris linking.
Brendan Kehoe [Fri, 5 Jan 1996 22:00:32 +0000 (22:00 +0000)]
* configure.in, configure: Add `-ldl -lw' for Solaris linking.

28 years ago * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
Steve Chamberlain [Fri, 5 Jan 1996 20:05:36 +0000 (20:05 +0000)]
* config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
srec.o renamed to dsrec.o.

28 years agoFix tlb for PowerPC
Michael Meissner [Fri, 5 Jan 1996 17:46:25 +0000 (17:46 +0000)]
Fix tlb for PowerPC

28 years agoMove creating section begin/end labels to compiler crt{i,n}.o
Michael Meissner [Fri, 5 Jan 1996 17:27:39 +0000 (17:27 +0000)]
Move creating section begin/end labels to compiler crt{i,n}.o

28 years agoUpdate copyrights. Add copyright notice to configure.in.
Stu Grossman [Fri, 5 Jan 1996 17:11:45 +0000 (17:11 +0000)]
Update copyrights.  Add copyright notice to configure.in.

28 years agoRemove the pile of "Update copyright to ..." that I'd put in, and
Fred Fish [Fri, 5 Jan 1996 15:20:05 +0000 (15:20 +0000)]
Remove the pile of "Update copyright to ..." that I'd put in, and
the one from sac.

28 years ago * config.bfd (i[345]86-*-freebsd*): Add target.
Fred Fish [Fri, 5 Jan 1996 05:44:27 +0000 (05:44 +0000)]
* config.bfd (i[345]86-*-freebsd*): Add target.
* configure.in (i386freebsd_vec): Add vec.
* configure: Regenerate.
* Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
(BFD32_BACKENDS_CFILES): Add i386freebsd.c.
Rebuild dependencies..
* freebsd.h: New file.
* i386freebsd.c: New file.
* targets.c (i386freebsd_vec): Declare.
(bfd_target_vector): Add i386freebsd_vec.
* i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
* i386netbsd.c (SEGMENT_SIZE):  Define as TARGET_PAGE_SIZE

28 years ago * ieee.h (enum ieee_record): Add ieee_asn_record_enum,
Ian Lance Taylor [Fri, 5 Jan 1996 05:02:15 +0000 (05:02 +0000)]
* ieee.h (enum ieee_record): Add ieee_asn_record_enum,
ieee_at_record_enum, ieee_ty_record_enum, ieee_atn_record_enum,
ieee_bb_record_enum, and ieee_be_record_enum.

28 years agoOops, forgot to sanitize the gdbtk enabling comment...
Stu Grossman [Fri, 5 Jan 1996 01:11:44 +0000 (01:11 +0000)]
Oops, forgot to sanitize the gdbtk enabling comment...

28 years ago * breakpoint.c (remove_breakpoint): Change error to warning so
Stu Grossman [Fri, 5 Jan 1996 00:42:36 +0000 (00:42 +0000)]
* breakpoint.c (remove_breakpoint):  Change error to warning so
that hardware watchpoint removal problems won't leave breakpoint
traps in the target.
* configure configure.in:  Make --enable-gdbtk be the default.
* remote-e7000.c (e7000_insert_breakpoint,
e7000_remove_breakpoint):  Use e7000 based breakpoints, not memory
breakpoints.
* (e7000_wait):  Adjust PC back by two when we see a breakpoint to
compensate for e7000 maladjustment.
* sparcl-tdep.c (sparclite_check_watch_resources):  Fix logic bug
which prevented hardware watchpoints from working.

28 years ago * configure.host: Change existing Linux HOSTING_CRT0 to be used
Ian Lance Taylor [Thu, 4 Jan 1996 22:10:00 +0000 (22:10 +0000)]
* configure.host: Change existing Linux HOSTING_CRT0 to be used
for a.out only, and put in appropriate HOSTING_CRT0 and
HOSTING_LIBS values for Linux ELF.

28 years ago * ieee.c: New file with code to read IEEE debugging information.
Ian Lance Taylor [Thu, 4 Jan 1996 21:35:04 +0000 (21:35 +0000)]
* ieee.c: New file with code to read IEEE debugging information.
* budbg.h (parse_ieee): Declare.
* rddbg.c (read_debugging_info): Handle IEEE flavour files.
(read_ieee_debugging_info): New static function.
* Makefile.in: Rebuild dependencies.
(CFILES): Add ieee.c.
(OBJDUMP_OBJS): Add ieee.o.

28 years ago * ieee.c (ieee_slurp_debug): New static function.
Ian Lance Taylor [Thu, 4 Jan 1996 21:30:09 +0000 (21:30 +0000)]
* ieee.c (ieee_slurp_debug): New static function.
(ieee_object_p): Call it.
(ieee_slurp_section_data): Skip debugging sections.
(ieee_get_reloc_upper_bound): Likewise.
(ieee_get_section_contents): Likewise.
(ieee_canonicalize_reloc): Likewise.
(ieee_write_section_part): Likewise.
(ieee_write_debug_part): Likewise.
(ieee_write_data_part): Likewise.
(init_for_output): Likewise.

28 years ago * gdb.base/corefile.exp: When generating a core, discard any
Fred Fish [Thu, 4 Jan 1996 21:12:12 +0000 (21:12 +0000)]
* gdb.base/corefile.exp: When generating a core, discard any
error messages about ulimit not found and the "core dumped"
message from the shell that runs the coredumper.