binutils-gdb.git
30 years ago * config/a29k/{a29k-kern.mt,a29k-udi.mt,a29k.mt,ultra3.mh,
Stan Shebs [Tue, 23 Aug 1994 00:52:23 +0000 (00:52 +0000)]
* config/a29k/{a29k-kern.mt,a29k-udi.mt,a29k.mt,ultra3.mh,
ultra3.mt}: Clean up, remove no-longer-used definitions.

30 years ago * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add _update_armap_timestamp.
Ian Lance Taylor [Mon, 22 Aug 1994 21:20:12 +0000 (21:20 +0000)]
* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add _update_armap_timestamp.
(bfd_target): Add field _bfd_update_armap_timestamp.
* bfd.c (bfd_update_armap_timestamp): Define.
* bfd-in2.h: Rebuilt.
* libbfd-in.h (_bfd_noarchive_update_armap_timestamp): Define.
(_bfd_archive_bsd_update_armap_timestamp): Declare.
(_bfd_archive_coff_update_armap_timestamp): Define.
* libbfd.h: Rebuilt.
* archive.c (_bfd_write_archive_contents): Call
bfd_update_armap_timestamp instead of checking for a BSD archive
and calling bsd_update_armap_timestamp.
(_bfd_archive_bsd_update_armap_timestamp): Rename from
_bsd_update_armap_timestamp.  Don't assume that armap_datepos is
already set.
* aout-target.h (MY_update_armap_timestamp): Define if not already
defined.
* coff-rs6000.c (rs6000coff_update_armap_timestamp): Define.
* ieee.c (ieee_update_armap_timestamp): Define.
* libecoff.h (_bfd_ecoff_update_armap_timestamp): Define.
* oasys.c (oasys_update_armap_timestamp): Define.
* som.c (som_update_armap_timestamp): Define.

30 years ago * ar.c: Include libiberty.h.
Ian Lance Taylor [Mon, 22 Aug 1994 21:14:43 +0000 (21:14 +0000)]
* ar.c: Include libiberty.h.
(inarch): Remove variable.
(map_over_members): Make static.  Add arch argument, and use it
instead of inarch.  Change all callers.
(main): Treat --version as -v.  Accept -t argument.  Accept any
number of archive arguments.  Catch and use open_inarch return
value, rather than using inarch.
(open_inarch): Return newly opened BFD, rather than using inarch.
(do_quick_append): Make archive_filename const.
(write_archive): Add iarch argument, and use it instead of inarch.
Change all callers.
(delete_members, move_members, replace_members): Likewise.
(ranlib_only): Don't exit on success.  Catch and use open_inarch
return value.
(ranlib_touch): New function.
* arsup.h (map_over_members): Don't declare.
(ar_end, ar_extract): Declare.
(open_inarch): Change return value in declaration to bfd *.
* arsup.c (map_over_list): Make static. Always pass two arguments
to function.  Add arch argument, and use it instead of inarch.
Change all callers.
(ar_directory_doer): Make static.  Add ignored second argument.
Change all callers.
(ar_directory): Use open_inarch return value rather than inarch.
(ar_addlib_doer): Make static.
(ar_addlib): Use open_inarch return value rather than inarch.
(ar_extract): Remove unused local variable abfd.

30 years ago * rs6000-nat.c: Include libbfd.h again, needed until reference
Stan Shebs [Mon, 22 Aug 1994 19:48:31 +0000 (19:48 +0000)]
* rs6000-nat.c: Include libbfd.h again, needed until reference
to bfd_cache_lookup is cleaned out.

30 years ago * config/i386/linux.mh (XM_CLIBS): Add -lm.
Stan Shebs [Mon, 22 Aug 1994 18:49:23 +0000 (18:49 +0000)]
* config/i386/linux.mh (XM_CLIBS): Add -lm.

30 years ago Work to reduce the interrupts-off duration when running in DOS.
Steve Chamberlain [Mon, 22 Aug 1994 17:58:47 +0000 (17:58 +0000)]
Work to reduce the interrupts-off duration when running in DOS.
* ser-go32.c:  (dos_async_ready): See if anything is in the buffer.
(dos_async_rx): rewrite to unpack as many characters from the
asynctsr as possible into a local buffer.

30 years ago * hash.c: Copy string hash functions from aoutx.h.
Ian Lance Taylor [Mon, 22 Aug 1994 16:36:52 +0000 (16:36 +0000)]
* hash.c: Copy string hash functions from aoutx.h.
* aoutx.h: String hash functions moved to hash.c.  Retain
simplified versions of add_to_stringtab and emit_stringtab.
Change all callers to use new function and structure names.
* libbfd-in.h (_bfd_stringtab_init, _bfd_stringtab_free): Declare.
(_bfd_stringtab_size, _bfd_stringtab_add): Declare.
(_bfd_stringtab_emit): Declare.
* libbfd.h: Rebuilt.

30 years ago * configure (version): A few more tweaks to help message.
Ian Lance Taylor [Mon, 22 Aug 1994 15:04:04 +0000 (15:04 +0000)]
* configure (version): A few more tweaks to help message.

30 years agoMon Aug 22 10:49:37 1994 Eric Youngdale (ericy@cais.cais.com)
Ian Lance Taylor [Mon, 22 Aug 1994 15:00:26 +0000 (15:00 +0000)]
Mon Aug 22 10:49:37 1994  Eric Youngdale  (ericy@cais.cais.com)

* i386linux.c (linux_add_one_symbol): Create a fixup for any
defined absolute symbol, not just GOT or PLT symbols.
(linux_tally_symbols): Correct handling of references to defined
symbols.

30 years ago * mpw-init.c (initialize_all_files): Remove inits of utils and
Stan Shebs [Fri, 19 Aug 1994 22:25:43 +0000 (22:25 +0000)]
* mpw-init.c (initialize_all_files): Remove inits of utils and
targets.

30 years agoKeep new Fortran files.
Stan Shebs [Fri, 19 Aug 1994 22:01:24 +0000 (22:01 +0000)]
Keep new Fortran files.

30 years ago Initial Fortran language support, adapted from work by Farooq Butt
Stan Shebs [Fri, 19 Aug 1994 21:59:05 +0000 (21:59 +0000)]
Initial Fortran language support, adapted from work by Farooq Butt
(fmbutt@engage.sps.mot.com).
* Makefile.in: Add Fortran-related files and dependencies.
* defs.h (language_fortran): New language enum.
* language.h (_LANG_fortran): Define.
(MAX_FORTRAN_DIMS): Define.
* expression.h: Reformat to standard.
(MULTI_F77_SUBSCRIPT, OP_F77_UNDETERMINED_ARGLIST,
OP_F77_LITERAL_COMPLEX, OP_F77_SUBSTR): New expression opcodes.
* gdbtypes.h (TYPE_CODE_COMPLEX, TYPE_CODE_LITERAL_COMPLEX,
TYPE_CODE_LITERAL_STRING): New type codes.
(type): New fields upper_bound_type and lower_bound_type.
(TYPE_ARRAY_UPPER_BOUND_TYPE, TYPE_ARRAY_LOWER_BOUND_TYPE,
TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): New
macros.
(builtin_type_f_character, etc): Declare.
* value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_START): Define.
* f-exp.y: New file, Fortran expression grammar.
* f-lang.c: New file, Fortran language support functions.
* f-lang.h: New file, Fortran language support declarations.
* f-typeprint.c: New file, Fortran type printing.
* f-valprint.c: New file, Fortran value printing.
* eval.c (evaluate_subexp): Add code for new expression opcodes,
fix wording of error message.
* gdbtypes.c (f77_create_literal_complex_type,
f77_create_literal_string_type): New functions.
* language.c (set_language_command): Add Fortran info.
(calc_f77_array_dims): New function.
* parse.c (length_of_subexp, prefixify_subexp): Add cases for new
expression opcodes.
* symfile.c (deduce_language_from_filename): Recognize .f and .F
as Fortran source files.
* valops.c (f77_value_literal_string, f77_value_substring,
f77_value_literal_complex): New functions.

30 years ago * c-typeprint.c (c_print_type): Assume demangled arguments
Peter Schauer [Fri, 19 Aug 1994 20:44:18 +0000 (20:44 +0000)]
* c-typeprint.c (c_print_type):  Assume demangled arguments
if a '(' is found in varstring, Looking for ')' at the end of
varstring did fail with demangled const member functions, which
have a trailing `const'.
* remote.c (get_offsets, putpkt):  Change to `char' buffers,
to avoid errors when compiling with DEC c89.
(remote_wait):  Cast to `char *' before passing buffer to
fputs_filtered, to avoid errors when compiling with DEC c89.
(remote_wait):  Do not return inferior_pid by default, this
statement is never reached, which causes warnings from some
compilers.
* stabsread.c (scan_file_globals):  Ignore static minimal symbols.
* symfile.c (load_command):  If called with no argument, try
to get the filename from the executable file.
(generic_load):  Remove check for NULL filename, it is done
in load_command now.

30 years ago * Makefile.in: Remove (for now) librx as a host library,
Per Bothner [Fri, 19 Aug 1994 19:58:27 +0000 (19:58 +0000)]
* Makefile.in:  Remove (for now) librx as a host library,
now that we're building it for target.

30 years agoAdd remote-pa.c.
Rob Savoye [Fri, 19 Aug 1994 16:54:14 +0000 (16:54 +0000)]
Add remote-pa.c.

30 years ago * Makefile.in (ALLDEPFILES): Add hpread.c.
Jeff Law [Fri, 19 Aug 1994 16:48:51 +0000 (16:48 +0000)]
    * Makefile.in (ALLDEPFILES): Add hpread.c.
        (hpread.o): Add dependencies.

        * somread.c: Do not include "aout/aout64.h".  SOM has nothing to
        do with a.out.
        (BYTES_IN_WORD): Delete.
        (som_symfile_read): Call hpread_build_psymtabs to build any
        minimal symbols based on the HP C native debug symbols.
        (som_symfile_finish): Call hpread_symfile_finish.
        (som_symfile_init): Call hpread_symfile_init.
        * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define.
        * hppa-tdep.c (hpread_adjust_stack_address): New function.

        * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o
        * config/pa/hppahpux.mh (NATDEPFILES): Likewise.
        * hpread.c: New file.

30 years ago * hpux-symtab.h: New file describing the debug symbols emitted by
Jeff Law [Fri, 19 Aug 1994 16:04:42 +0000 (16:04 +0000)]
    * hpux-symtab.h: New file describing the debug symbols emitted by
        the HP C compilers.

30 years ago * configure: Fix up help message; from karl@owl.hq.ileaf.com
Ian Lance Taylor [Fri, 19 Aug 1994 14:50:50 +0000 (14:50 +0000)]
* configure: Fix up help message; from karl@owl.hq.ileaf.com
(Karl Berry).

30 years ago * hppa-tdep.c (skip_trampoline_code): Revert incorrect change
Jeff Law [Fri, 19 Aug 1994 06:57:06 +0000 (06:57 +0000)]
* hppa-tdep.c (skip_trampoline_code): Revert incorrect change
from June 2, 1994 (what was I thinking?!?).  Fix it right this
time.

30 years ago* nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.
J.T. Conklin [Fri, 19 Aug 1994 00:06:47 +0000 (00:06 +0000)]
* nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.

30 years ago Get ld -x -r to handle a.out set symbols correctly.
Ian Lance Taylor [Thu, 18 Aug 1994 21:48:23 +0000 (21:48 +0000)]
Get ld -x -r to handle a.out set symbols correctly.
* aoutx.h (adjust_o_magic): If the .bss VMA was set outside of
BFD, pad the .data section up to the VMA of the .bss section.
(aout_link_add_symbols): If a set symbol does not get modified,
treat it as a local symbol.
(aout_link_write_symbols): Set the value of set symbols
correctly.  Don't discard set symbols even if discarding local
symbols.
(aout_link_write_other_symbol): Don't abort on bfd_link_hash_new,
since it can now happen for set symbols.

30 years ago * README: Grammar improvements, clarifications, updates.
Stan Shebs [Thu, 18 Aug 1994 21:46:06 +0000 (21:46 +0000)]
* README: Grammar improvements, clarifications, updates.

30 years ago * elfcode.h (elf_fake_sections): Just check for ".rela" and
Ian Lance Taylor [Thu, 18 Aug 1994 21:33:07 +0000 (21:33 +0000)]
* elfcode.h (elf_fake_sections): Just check for ".rela" and
".rel", not ".rela." and ".rel."; make this work by checking
use_rela_p.
* elf32-i386.c (elf_i386_check_relocs): Just check for ".rel", not
".rel."
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_check_relocs): Just check for
".rela", not ".rela."
(elf32_sparc_size_dynamic_sections): Likewise.
(elf32_sparc_relocate_section): Likewise.

30 years ago Make the ELF linker handle orphaned sections reasonably. Also,
Ian Lance Taylor [Thu, 18 Aug 1994 20:10:54 +0000 (20:10 +0000)]
Make the ELF linker handle orphaned sections reasonably.  Also,
define __start_SECNAME and __stop_SECNAME around sections whose
names can be represented in C, for the benefit of symbol sets in
glibc.
* ldemul.h (ldemul_place_orphan): Declare.
(ld_emulation_xfer_type): Add place_orphan field.
* ldemul.c (ldemul_place_orphan): New function.
* ldlang.h (wild_doit): Declare.
* ldlang.c (wild_doit): Make nonstatic.
(lang_place_orphans): Call ldemul_place_orphan.
* emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
(hold_section, hold_use, hold_text, hold_data, hold_bss): New
static variables.
(gld${EMULATION_NAME}_place_orphan): New static function.
(gld${EMULATION_NAME}_place_section): New static function.
(ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.

30 years agoSupport both the generic remote protocol and the one for HP-PRO targets.
Rob Savoye [Thu, 18 Aug 1994 17:06:26 +0000 (17:06 +0000)]
Support both the generic remote protocol and the one for HP-PRO targets.

30 years agoMake a unique remote target "hppro", rather than use generic remote.
Rob Savoye [Thu, 18 Aug 1994 17:05:07 +0000 (17:05 +0000)]
Make a unique remote target "hppro", rather than use generic remote.

30 years ago * Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
Stu Grossman [Thu, 18 Aug 1994 06:43:56 +0000 (06:43 +0000)]
* Makefile.in (TARGET_FLAGS_TO_PASS):  Pass down LD_FOR_TARGET and
NLMCONV_FOR_TARGET.  (SUBDIRS):  Add nlm target.
* configure.in (powerpc-*-netware*):  Automatically configure nlm
subdir.
* nlm/Makefile.in:  Add {CC NLMCONV LD}_FOR_TARGET.  Remove alpha
specific stuff.  Make things more configurable.
* nlm/configure.in:  Add powerpc-*-netware* target.  Use
gdbserve.mt/cpu.c/cpu.h for target stuff.  Get rid of tm/xm/nm.h
files.
* nlm/gdbserve.c:  Move Alpha specific stuff into other files.
Remove lots of architecture-specific stuff.
* nlm/gdbserve.def:  Add new imports.
* nlm/ppc.c, nlm/ppc.h:  New files that contain PowerPC specific code.
* nlm/prelude.c:  Don't include libhooks.h, get rid of call to
register library.
* nlm/prelude.o:  What was this doing here?
* config/alpha/gdbserve.mt:  Defs for alpha nlm stub.
* config/powerpc/gdbserve.mt: Defs for PowerPC nlm stub.
* config/powerpc/ppc-nw.mt:  Defs for PowerPC target for GDB.
* config/powerpc/tm-ppc-nw.h:  Ditto.

* nlmstub.def:  New file, contains imports for 386 nlm stub.

30 years ago * Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
Stu Grossman [Thu, 18 Aug 1994 06:32:55 +0000 (06:32 +0000)]
* Makefile.in (TARGET_FLAGS_TO_PASS):  Pass down LD_FOR_TARGET and
NLMCONV_FOR_TARGET.  (SUBDIRS):  Add nlm target.
* configure.in (powerpc-*-netware*):  Automatically configure nlm
subdir.
* nlm/Makefile.in:  Add {CC NLMCONV LD}_FOR_TARGET.  Remove alpha
specific stuff.  Make things more configurable.
* nlm/configure.in:  Add powerpc-*-netware* target.  Use
gdbserve.mt/cpu.c/cpu.h for target stuff.  Get rid of tm/xm/nm.h
files.
* nlm/gdbserve.c:  Move Alpha specific stuff into other files.
Remove lots of architecture-specific stuff.
* nlm/gdbserve.def:  Add new imports.
* nlm/ppc.c, nlm/ppc.h:  New files that contain PowerPC specific code.
* nlm/prelude.c:  Don't include libhooks.h, get rid of call to
register library.
* nlm/prelude.o:  What was this doing here?

30 years ago * remote-pa.c: New file for HPPA embedded support. Currently it's
Rob Savoye [Thu, 18 Aug 1994 05:20:23 +0000 (05:20 +0000)]
* remote-pa.c: New file for HPPA embedded support. Currently it's
a copy of remote.c.
* config/pa/hppabsd.mt,hppahpux.mt,hppaosf.mt: User remote-pa.c.

30 years agoUse new remote-pa, rather than the generic one.
Rob Savoye [Thu, 18 Aug 1994 05:16:52 +0000 (05:16 +0000)]
Use new remote-pa, rather than the generic one.

30 years agoNew file for remote protocol to embedded HPPA targets.
Rob Savoye [Thu, 18 Aug 1994 05:16:12 +0000 (05:16 +0000)]
New file for remote protocol to embedded HPPA targets.

30 years ago * linker.c (_bfd_generic_link_add_archive_symbols): Initialize
Ian Lance Taylor [Wed, 17 Aug 1994 20:58:47 +0000 (20:58 +0000)]
* linker.c (_bfd_generic_link_add_archive_symbols): Initialize
PASS to the old value + 1.

30 years ago * config/m68k/tm-delta68.h (EXTRACT_RETURN_VALUE,
Stan Shebs [Wed, 17 Aug 1994 20:27:17 +0000 (20:27 +0000)]
* config/m68k/tm-delta68.h (EXTRACT_RETURN_VALUE,
STORE_RETURN_VALUE): Define to use %a0 for pointers.

30 years agoAdd serial tcp support for HPPA hosts and targets.
Rob Savoye [Wed, 17 Aug 1994 19:41:22 +0000 (19:41 +0000)]
Add serial tcp support for HPPA hosts and targets.

30 years ago * coffgen.c (coff_get_normalized_symtab): If a C_FILE symbol has
Ian Lance Taylor [Wed, 17 Aug 1994 17:44:17 +0000 (17:44 +0000)]
* coffgen.c (coff_get_normalized_symtab): If a C_FILE symbol has
no aux entries, use the symbol name as the file name.
(coff_find_nearest_line): Look for the right C_FILE symbol, rather
than always using the first one.  If there is a debugging symbol
after a function symbol, skip it.  Add the section VMA to the line
offset, since it was subtracted out in coff_slurp_line_table.
PR 5010.

30 years ago * remote-mips.c: Remove unused declaration of mips_load.
Jim Kingdon [Wed, 17 Aug 1994 14:46:57 +0000 (14:46 +0000)]
* remote-mips.c: Remove unused declaration of mips_load.

30 years ago * coffread.c: General cleanup, and support for section offsets.
Stan Shebs [Wed, 17 Aug 1994 00:15:28 +0000 (00:15 +0000)]
* coffread.c: General cleanup, and support for section offsets.
(time.h, sys/types.h, libbfd.h): Don't include.
(cur_src_start_addr, cur_src_end_addr): Rename to
current_source_start_addr, current_source_end_addr.
(nlist_stream_global): Remove.
(nlist_bfd_global): New global variable.
(coff_symfile_read): Remove code that gets and uses fileno()
directly.
(read_coff_symtab, enter_linenos, process_coff_symbol): Add
section_offsets parameter, add text/data section offset to
appropriate symbols' values.
(read_one_sym): Use bfd_read instead of fread.
(init_stringtab, init_lineno): Change first parameter to a bfd,
use bfd routines instead of raw I/O.

30 years ago * symtab.c (decode_line_1): If funfirstline and we get a
Jim Kingdon [Wed, 17 Aug 1994 00:07:12 +0000 (00:07 +0000)]
* symtab.c (decode_line_1): If funfirstline and we get a
non-LOC_BLOCK symbol (e.g. variable or type), then error().

30 years ago * Makefile.in (TARFILES, NONSRC, SFILES_STAND, SFILES_KGDB):
Jim Kingdon [Tue, 16 Aug 1994 23:22:45 +0000 (23:22 +0000)]
* Makefile.in (TARFILES, NONSRC, SFILES_STAND, SFILES_KGDB):
Remove; unused.
(TAGFILES_NO_SRCDIR): Remove ALLPARAM.
(HFILES_NO_SRCDIR): Remove all files in config sub-directory.
(TAGS): Also pass result of find on config sub-directory to etags.
(ALLPARAM): Remove; now unused.

30 years ago * som.c (som_prep_headers): If writing some form of an executable,
Jeff Law [Tue, 16 Aug 1994 23:11:59 +0000 (23:11 +0000)]
* som.c (som_prep_headers): If writing some form of an executable,
allocate and attach an exec header to the BFD private data.
(som_begin_writing): Don't fill fields of the exec header based
on BFD private data here (like the exec flags).  Do not write
the exec header here.
(som_write_headers): Instead do it here.
* som.h (struct somdata): New field "exec_hdr" for the executable
file header.
(obj_som_exec_hdr): New accessor macro.

30 years ago * configure.in: Also configure librx.
Per Bothner [Tue, 16 Aug 1994 23:11:16 +0000 (23:11 +0000)]
* configure.in:  Also configure librx.

30 years ago * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
Stan Shebs [Tue, 16 Aug 1994 23:05:00 +0000 (23:05 +0000)]
* gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
2417; old bug has been fixed.

30 years agoAdd librx.
Per Bothner [Tue, 16 Aug 1994 21:12:12 +0000 (21:12 +0000)]
Add librx.

30 years ago * gas/config/tc-hppa.c (pa_comm): Set sy_frag for the common
Jeff Law [Tue, 16 Aug 1994 18:28:12 +0000 (18:28 +0000)]
    * gas/config/tc-hppa.c (pa_comm): Set sy_frag for the common
        symbol to the zero address frag.

30 years ago * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
Jeff Law [Tue, 16 Aug 1994 07:54:06 +0000 (07:54 +0000)]
    * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
        symbol.

30 years ago * scripttempl/aout.sc: Add .linux-dynamic after .data.
Ian Lance Taylor [Tue, 16 Aug 1994 04:19:32 +0000 (04:19 +0000)]
* scripttempl/aout.sc: Add .linux-dynamic after .data.

30 years ago * i386linux.c (linux_link_create_dynamic_sections): Create section
Ian Lance Taylor [Tue, 16 Aug 1994 04:15:50 +0000 (04:15 +0000)]
* i386linux.c (linux_link_create_dynamic_sections): Create section
named .linux-dynamic, not .dynamic.
(linux_add_one_symbol): Use .linux-dynamic, not .dynamic.
(bfd_linux_size_dynamic_sections): Likewise.
(linux_finish_dynamic_link): Likewise.

30 years ago * Treat --dll-verbose as --version, for Linux compatibility. From
Ian Lance Taylor [Tue, 16 Aug 1994 04:10:03 +0000 (04:10 +0000)]
* Treat --dll-verbose as --version, for Linux compatibility.  From
hjl@nynexst.com (H.J. Lu).

30 years ago * Makefile.in: Update various rules to reflect that librx
Per Bothner [Mon, 15 Aug 1994 23:51:58 +0000 (23:51 +0000)]
* Makefile.in:  Update various rules to reflect that librx
is now needed for libg++.

30 years ago * coffgen.c (STRING_SIZE_SIZE): Define.
Ian Lance Taylor [Mon, 15 Aug 1994 22:07:29 +0000 (22:07 +0000)]
* coffgen.c (STRING_SIZE_SIZE): Define.
(coff_fix_symbol_name): Use STRING_SIZE_SIZE, not 4.
(coff_write_symbols, build_string_table): Likewise.
(coff_get_normalized_symtab): Likewise.

30 years ago * ldexp.h (exp_get_abs_int): Declare.
Ian Lance Taylor [Mon, 15 Aug 1994 21:18:48 +0000 (21:18 +0000)]
* ldexp.h (exp_get_abs_int): Declare.

30 years ago * libcoff-in.h (obj_symbol_slew): Don't define.
Ian Lance Taylor [Mon, 15 Aug 1994 21:02:05 +0000 (21:02 +0000)]
* libcoff-in.h (obj_symbol_slew): Don't define.
(struct coff_tdata): Remove unused fields index_slew, raw_linenos,
and flags.
* libcoff.h: Rebuilt.
* coffcode.h (coff_mkobject): Don't initialize raw_linenos.
(coff_mkobject_hook): Don't initialize flags.

30 years ago * aout-target.h (MY_zmagic_contiguous): Define as 0 if not already
Ian Lance Taylor [Mon, 15 Aug 1994 18:12:05 +0000 (18:12 +0000)]
* aout-target.h (MY_zmagic_contiguous): Define as 0 if not already
defined.
(MY(backend_data)): Use MY_zmagic_contiguous, not hardcoded 0.
* i386linux.c (MY_zmagic_contiguous): Define.

30 years ago * elfcode.h (bfd_section_from_shdr): If a SHT_SYMTAB section in a
Ian Lance Taylor [Mon, 15 Aug 1994 18:08:13 +0000 (18:08 +0000)]
* elfcode.h (bfd_section_from_shdr): If a SHT_SYMTAB section in a
shared object has SHF_ALLOC set, create a BFD section for it.
(elf_section_from_bfd_section): There may be a BFD section for a
SHT_SYMTAB section.

30 years ago * coffcode.h (styp_to_sec_flags): Add name argument. If no flags
Ian Lance Taylor [Mon, 15 Aug 1994 16:26:06 +0000 (16:26 +0000)]
* coffcode.h (styp_to_sec_flags): Add name argument.  If no flags
are recognized, chose section flags based on the name.
(bfd_coff_backend_data): _bfd_styp_to_sec_flags_hook field: Add
name argument.
(bfd_coff_styp_to_sec_flags_hook): Add name argument.
(coff_compute_section_file_positions): Don't adjust the section
position by COFF_PAGE_SIZE unless SEC_ALLOC is set.
* libcoff.h: Rebuilt.
* coffgen.c (make_a_section_from_file): Pass section name to
bfd_coff_styp_to_sec_flags_hook.
* ecoff.c (_bfd_ecoff_styp_to_sec_flags): Add unused name
argument.
* libecoff.h (_bfd_ecoff_styp_to_sec_flags): Add name argument to
prototype.

30 years ago * Makefile.in (VERSION): Bump to 4.13.1
Fred Fish [Sun, 14 Aug 1994 20:13:01 +0000 (20:13 +0000)]
* Makefile.in (VERSION):  Bump to 4.13.1
* NEWS, README:  Update to match gdb 4.13 release version.

30 years ago Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
Fred Fish [Sat, 13 Aug 1994 16:17:45 +0000 (16:17 +0000)]
Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
* cxux-nat.c:  Remove dangling #else block.
((m88k_harris_core_register_addr):  New function.

30 years ago * environ.c (init_environ): If no environment, do nothing.
Fred Fish [Sat, 13 Aug 1994 15:28:24 +0000 (15:28 +0000)]
* environ.c (init_environ):  If no environment, do nothing.

30 years ago * gdb.base/interrupt.exp: When trying to wake up the inferior,
Jeff Law [Sat, 13 Aug 1994 02:12:03 +0000 (02:12 +0000)]
* gdb.base/interrupt.exp: When trying to wake up the inferior,
send the newline ourselves instead of assuming gdb_test will do
so when passed an empty input string.

30 years ago * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
Jeff Law [Sat, 13 Aug 1994 01:38:55 +0000 (01:38 +0000)]
* gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
stabs testcode.

30 years ago * elfcode.h (section_from_elf_index): Correct check for invalid
Ian Lance Taylor [Fri, 12 Aug 1994 23:25:23 +0000 (23:25 +0000)]
* elfcode.h (section_from_elf_index): Correct check for invalid
section index.

30 years ago * remote.c (remote_wait): Return inferior_pid instead of 0 for
Stu Grossman [Fri, 12 Aug 1994 22:54:53 +0000 (22:54 +0000)]
* remote.c (remote_wait):  Return inferior_pid instead of 0 for
`W` message.

30 years ago * config.sub: Accept mips64orion and mips64orionel as a CPU name.
Ian Lance Taylor [Fri, 12 Aug 1994 22:09:18 +0000 (22:09 +0000)]
* config.sub: Accept mips64orion and mips64orionel as a CPU name.

30 years ago * config/tc-mips.c (md_begin): Drop "el" from the end of
Ian Lance Taylor [Fri, 12 Aug 1994 21:55:42 +0000 (21:55 +0000)]
* config/tc-mips.c (md_begin): Drop "el" from the end of
TARGET_CPU.  Check for mips64orion.

30 years ago* sparclite/aload.c (sys_error, error): Use vfprintf to variable
J.T. Conklin [Fri, 12 Aug 1994 18:50:26 +0000 (18:50 +0000)]
* sparclite/aload.c (sys_error, error): Use vfprintf to variable
  argument lists.

30 years ago * elfcode.h (elf_link_add_object_symbols): If there is no symbol
Ian Lance Taylor [Fri, 12 Aug 1994 15:51:09 +0000 (15:51 +0000)]
* elfcode.h (elf_link_add_object_symbols): If there is no symbol
table, try using the dynamic symbol table.  From Eric Youngdale
<ericy@cais.cais.com>.

30 years ago * configure.host (sparc-*-solaris2*): Use solaris2, not sysv4.
Ian Lance Taylor [Fri, 12 Aug 1994 15:28:19 +0000 (15:28 +0000)]
* configure.host (sparc-*-solaris2*): Use solaris2, not sysv4.
The linker depends upon configuring for solaris2.
* hosts/solaris2.h: New file; include hosts/sysv4.h.
* config/solaris2.mh: New file; copy of config/sysv4.mh.

30 years ago Add support for removing named sections to objcopy and strip.
Ian Lance Taylor [Thu, 11 Aug 1994 19:00:26 +0000 (19:00 +0000)]
Add support for removing named sections to objcopy and strip.
* objcopy.c (struct section_list): Define.
(remove_sections): New static variable.
(strip_options, copy_options): Add remove-section.
(copy_usage, strip_usage): Mention -R and --remove-section.
(setup_section): If section is in remove_sections list, ignore it.
(copy_section): Likewise.
(strip_main, copy_main): Handle -R.
* binutils.texi, objcopy.1, strip.1: Document new options.

30 years ago(concat, basename, buildargv, freeargv, strerrno, strsigno,
David Edelsohn [Thu, 11 Aug 1994 11:09:54 +0000 (11:09 +0000)]
(concat, basename, buildargv, freeargv, strerrno, strsigno,
errno_max, signo_max, strtoerrno, strtosigno):  Delete.
Include "libiberty.h" instead.

30 years agoRemove aout-ns32k.h.
Ian Lance Taylor [Thu, 11 Aug 1994 04:39:16 +0000 (04:39 +0000)]
Remove aout-ns32k.h.

30 years ago * i386v-nat.c (i386_insert_nonaligned_watchpoint):
Fred Fish [Thu, 11 Aug 1994 00:04:03 +0000 (00:04 +0000)]
* i386v-nat.c (i386_insert_nonaligned_watchpoint):
add additional argument specifying raw address to permit
proper release of debug registers.
(i386_insert_watchpoint, i386_insert_aligned_watchpoint):
change all callers.

30 years ago * defs.h, top.c: Use `extern' in declarations of GUI hooks, and
Stu Grossman [Wed, 10 Aug 1994 23:16:40 +0000 (23:16 +0000)]
* defs.h, top.c:  Use `extern' in declarations of GUI hooks, and
define them in top.c.  Add comments to the hooks.

30 years ago(gdbsim_ops): Set `to_insert_breakpoint' and `to_remove_breakpoint' fields.
David Edelsohn [Wed, 10 Aug 1994 23:06:39 +0000 (23:06 +0000)]
(gdbsim_ops): Set `to_insert_breakpoint' and `to_remove_breakpoint' fields.

30 years ago * infcmd.c (run_command): Remove comment suggesting using
Jim Kingdon [Wed, 10 Aug 1994 22:49:42 +0000 (22:49 +0000)]
* infcmd.c (run_command): Remove comment suggesting using
target_has_execution instead of inferior_pid.

30 years agoModified Files:
Kung Hsu [Wed, 10 Aug 1994 17:37:56 +0000 (17:37 +0000)]
Modified Files:
ChangeLog remote-mips.c

        * remote-mips.c (mips_open): add code to handle baud rate.

30 years ago * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
Stan Shebs [Wed, 10 Aug 1994 17:24:10 +0000 (17:24 +0000)]
* nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
so as not to conflict with the symvalue typedef in bfd.h.

30 years ago * aoutx.h (adjust_z_magic): Make sure data section is padded to
Ian Lance Taylor [Wed, 10 Aug 1994 17:15:05 +0000 (17:15 +0000)]
* aoutx.h (adjust_z_magic): Make sure data section is padded to
page boundary when the VMA is set by the calling program.  From
Eric Youngdale <ericy@cais.cais.com>.

30 years ago * configure.in: Recognize ppc-*-netware.
Stu Grossman [Wed, 10 Aug 1994 02:47:48 +0000 (02:47 +0000)]
* configure.in:  Recognize ppc-*-netware.
* config/te-ppcnw.h:  New file to support Power-PC/Netware
configurations.  Currently, it just enables the use of backslash
escapes in string directives.

30 years ago * .Sanitize: Keep emacs19 around.
Bill Cox [Tue, 9 Aug 1994 22:14:59 +0000 (22:14 +0000)]
* .Sanitize: Keep emacs19 around.

30 years ago * config/tc-ppc.c (ppc_stabx): Call expression directly, rather
Ian Lance Taylor [Tue, 9 Aug 1994 20:06:58 +0000 (20:06 +0000)]
* config/tc-ppc.c (ppc_stabx): Call expression directly, rather
than via pseudo_set.  If expression is a symbol, move stab symbol
to just after symbol from expression.

30 years ago * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be
Ian Lance Taylor [Tue, 9 Aug 1994 18:11:30 +0000 (18:11 +0000)]
* ecoff.c (ecoff_build_procs): Don't force adr of first fdr to be
zero.  Undoes change of June 4, 1993.

30 years ago * infrun.c (wait_for_inferior): Call target_resume() upon
Stu Grossman [Tue, 9 Aug 1994 17:27:01 +0000 (17:27 +0000)]
* infrun.c (wait_for_inferior):  Call target_resume() upon
detection of new processes.

* procfs.c (create_procinfo):  Return pointer to new procinfo
structure.
* (do_detach):  Spacing & formatting cleanup.
* (procfs_wait):  Move wait_again label to ensure that we really
wait again.  On exit from fork, release new child from gdbs'
clutches.
* (procfs_set_sproc_trap):  Enable trapping of fork and vfork.

30 years ago * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and
Ian Lance Taylor [Tue, 9 Aug 1994 15:18:26 +0000 (15:18 +0000)]
* config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, and
orion.

30 years agoAlways keep examples
Stan Shebs [Tue, 9 Aug 1994 01:10:39 +0000 (01:10 +0000)]
Always keep examples

30 years ago Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
Stan Shebs [Tue, 9 Aug 1994 01:06:29 +0000 (01:06 +0000)]
Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
* aout-ns32k.c: Add declarations that were in aout-ns32k.h, change
declarations to traditional form.
(MY_reloc_howto, MY_put_reloc): Change from macro to function.
(ns32k_relocate_contents): New function.
* aout-ns32k.h: Remove.
* cpu-ns32k.c: Add declarations that were in aout-ns32k.h, change
declarations to traditional form.
(ns32k_final_link_relocate): Call ns32k_relocate_contents.
* netbsd532.c: Reformat to standards, add copyright notice.
(ARCH): Don't define.
(aout-ns32k.h): Don't include.
* pc532-mach.c: Ditto.

30 years agoFix copyright.
Steve Chamberlain [Mon, 8 Aug 1994 23:37:38 +0000 (23:37 +0000)]
Fix copyright.

30 years ago* i386-nlmstub.c (handle_exception): Wait until the thread has
J.T. Conklin [Mon, 8 Aug 1994 22:14:06 +0000 (22:14 +0000)]
* i386-nlmstub.c (handle_exception): Wait until the thread has
  been started before killing the NLM by pointing the PC at
  _exit().

30 years ago * configure.in: Configure the examples directory.
Stan Shebs [Mon, 8 Aug 1994 18:41:58 +0000 (18:41 +0000)]
* configure.in: Configure the examples directory.

30 years ago * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant
Jeff Law [Mon, 8 Aug 1994 18:10:36 +0000 (18:10 +0000)]
    * gas/config/tc-hppa.c (md_pseudo_table): Delete redundant
        upper-case versions of the pseudo-ops.

30 years ago * config/tc-sparc.c (md_apply_fix): If we are going to generate a
Ian Lance Taylor [Mon, 8 Aug 1994 17:46:00 +0000 (17:46 +0000)]
* config/tc-sparc.c (md_apply_fix): If we are going to generate a
non PC relative reloc, don't put the addend in the object file.

30 years ago * config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
Peter Schauer [Sun, 7 Aug 1994 13:34:39 +0000 (13:34 +0000)]
* config/mips/tm-irix5.h (IN_SIGTRAMP):  Redefine for Irix 5,
Irix 5 has a standard _sigtramp signal handler.

30 years ago * config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
Peter Schauer [Sun, 7 Aug 1994 13:33:45 +0000 (13:33 +0000)]
* config/mips/tm-irix5.h (IN_SIGTRAMP):  Redefine for Irix 5,
Irix 5 has a standard _sigtramp signal handler.
* irix5-nat.c (solib_add):  Get rid of sigtramp_address handling,
it is not needed for a standard _sigtramp signal handler.
Add shared library sections to the section table of the target
before adding the symbols.
* mips-tdep.c (mips_skip_prologue):  Do not skip load immediate
instructions that do not prepare a stack adjustment.
* regex.c (SIGN_EXTEND_CHAR):  Update to emacs-19.25 definition,
which does the right thing on machines where `char' is unsigned.

30 years ago * irix-core.c (irix_core_core_file_p): Ignore sections that
Peter Schauer [Sun, 7 Aug 1994 13:26:46 +0000 (13:26 +0000)]
* irix-core.c (irix_core_core_file_p):  Ignore sections that
are not contained in the core file.

30 years agoSat Aug 6 01:15:02 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Sat, 6 Aug 1994 08:23:09 +0000 (08:23 +0000)]
Sat Aug  6 01:15:02 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* as.h: If FOPEN_WB is not defined, do the right thing in a go32
environment.

Mon Jul 11 11:34:52 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* config/tc-h8300.c (pint): New function for handling varying
size of int pseudo op.
* doc/as.texinfo: Fix typo describing .h8300h pseduop.

30 years agoFri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
Jason Molenda [Sat, 6 Aug 1994 03:57:19 +0000 (03:57 +0000)]
Fri Aug  5 20:55:55 1994  Jason Molenda (crash@phydeaux.cygnus.com)

        * configure.in: add i960-nindy-coff support.

30 years ago * remote.c (remote_open): Move setting of inferior_pid prior to
Stu Grossman [Sat, 6 Aug 1994 00:55:08 +0000 (00:55 +0000)]
* remote.c (remote_open):  Move setting of inferior_pid prior to
call to remote_start_remote.  Also use unique value for pid to
avoid confusion with read_register_pid & friends.
* (remote_wait):  Return inferior_pid instead of 0 in all cases.

30 years ago * dwarfread.c (bfd.h): Don't include.
Stan Shebs [Fri, 5 Aug 1994 20:19:00 +0000 (20:19 +0000)]
* dwarfread.c (bfd.h): Don't include.

30 years agoDon't dereference invalid pointers in procfs_mourn_inferior
Thomas Lord [Fri, 5 Aug 1994 17:55:46 +0000 (17:55 +0000)]
Don't dereference invalid pointers in procfs_mourn_inferior

30 years ago* i386-nlmstub.c (handle_exception): Point the PC at _exit() to
J.T. Conklin [Fri, 5 Aug 1994 16:14:03 +0000 (16:14 +0000)]
* i386-nlmstub.c (handle_exception): Point the PC at _exit() to
  kill the program being debugged.  KillMe(), the undocumented
  call intended for this purpose, causes the server to hang.

30 years ago * remote.c (read_frame): Calculate run length encoded checksum correctly.
Steve Chamberlain [Fri, 5 Aug 1994 00:14:05 +0000 (00:14 +0000)]
  * remote.c (read_frame): Calculate run length encoded checksum correctly.
  * config/sh/stub.c: New file.