binutils-gdb.git
29 years ago* as.h (flag_*): Added comments describing meanings of some of these variables.
Ken Raeburn [Sun, 28 Aug 1994 22:15:33 +0000 (22:15 +0000)]
* as.h (flag_*): Added comments describing meanings of some of these variables.
(struct frag): Add some comments about the ns32k-specific fields and why
they're here.
(SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int.
(flag_print_statistics): Declare.

* as.c (parse_args): Set flag_print_statistics instead of statistics_flag.
Options array is now const.  Added new option "dump-config"; if specified,
print TARGET_ALIAS, TARGET_CANONICAL, TARGET_CPU, TARGET_OBJ_FORMAT, and
TARGET_FORMAT, if defined.
(main): Change test to check flag_print_statistics.
(statistics_flag): Deleted.

29 years agoRemoved pcrel_adjust and bsr arguments from calling interface of
Ken Raeburn [Sun, 28 Aug 1994 22:01:11 +0000 (22:01 +0000)]
Removed pcrel_adjust and bsr arguments from calling interface of
frag_variant, since they're only used on one machine.  Let that machine
deal with them specially.

29 years agoMakefile.in (distclean, realclean): Remove new configure-generated files.
Ken Raeburn [Sun, 28 Aug 1994 20:26:27 +0000 (20:26 +0000)]
Makefile.in (distclean, realclean): Remove new configure-generated files.

29 years agokeep new autoconf-related files
Ken Raeburn [Sun, 28 Aug 1994 20:07:16 +0000 (20:07 +0000)]
keep new autoconf-related files

29 years ago * gdb.base/default.exp: Update expect pattern for load command
Peter Schauer [Sun, 28 Aug 1994 14:08:03 +0000 (14:08 +0000)]
* gdb.base/default.exp:  Update expect pattern for load command
without arguments.

29 years ago * symfile.c (symbol_file_add): Move reinit_frame_cache call to
Peter Schauer [Sun, 28 Aug 1994 13:57:48 +0000 (13:57 +0000)]
* symfile.c (symbol_file_add):  Move reinit_frame_cache call to
the callers of symbol_file_add. Gets rid of heuristic fence-post
warnings on mips and alpha targets when the PC resides in a shared
library which is not yet read in.
* coff-solib.c (coff_solib_add), cxux-nat.c (add_shared_symbol_files),
irix5-nat.c (solib_add), osfsolib.c (solib_add),
remote-vx.c (vx_open), solib.c (solib_add):
Add call to reinit_frame_cache after all shared libraries are read in.
* remote-udi.c (udi_load), remote-vx.c (vx_load_command),
symfile.c (symbol_file_command, add_symbol_file_command):
Add call to reinit_frame_cache after symbol_file_add.

29 years agoConversion to autoconf:
Ken Raeburn [Sun, 28 Aug 1994 07:59:06 +0000 (07:59 +0000)]
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf.  Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h.  Include signal.h after
as.h.
* as.h: Include alloca-conf.h first.  Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H).  Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first.  Include errno.h only if HAVE_ERRNO_H.  If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H.  Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.

29 years agoinput-file.c: Don't include assert.h here.
Ken Raeburn [Sun, 28 Aug 1994 04:06:36 +0000 (04:06 +0000)]
input-file.c: Don't include assert.h here.

29 years ago* config/tc-alpha.c: Added various prototypes for static functions.
Ken Raeburn [Sun, 28 Aug 1994 03:35:40 +0000 (03:35 +0000)]
* config/tc-alpha.c: Added various prototypes for static functions.
(in_range): New function, tests whether a value can fit in an N-bit field.
(build_mem, build_operate_n): New functions for constructing opcode values.
(emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New functions for
emitting single instructions, no longer requiring a recursive call to
md_assemble.
(emit_add64): New function for expanding a REG:=REG+CONST operation into
one or more instructions, to handle wide constants.
(clear_insn): New variable.
(md_begin): Fill it in with zeros and BFD_RELOC_NONE values.
(alpha_ip): Use it to initialize local variable insns.
(alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64 for
calculations.

29 years ago * config.guess: Fix i486-ncr-sysv43 -> i486-ncr-sysv4.3.
Per Bothner [Sat, 27 Aug 1994 22:08:32 +0000 (22:08 +0000)]
* config.guess:  Fix i486-ncr-sysv43 -> i486-ncr-sysv4.3.
Fix type: *-next-neststep -> *-next-nextstep.

* config.guess:  Merge from FSF:

Fri Aug 26 18:45:25 1994  Philippe De Muyter (phdm@info.ucl.ac.be)

* config.guess: Recognize powerpc-ibm-aix3.2.5.

Wed Apr 20 06:36:32 1994  Philippe De Muyter  (phdm@info.ucl.ac.be)

* config.guess: Recognize UnixWare 1.1 (UNAME_SYSTEM is SYSTEM_V
instead of UNIX_SV for UnixWare 1.0).

29 years ago * Makefile.in (all-gdb): Add dependencies on all-gcc and all-ld
Stu Grossman [Sat, 27 Aug 1994 08:58:25 +0000 (08:58 +0000)]
* Makefile.in (all-gdb):  Add dependencies on all-gcc and all-ld
to make gdb/nlm/* build after the compiler and linker.

29 years ago * config.guess (netbsd, freebsd, linux): Accept any machine,
Per Bothner [Fri, 26 Aug 1994 23:14:50 +0000 (23:14 +0000)]
* config.guess (netbsd, freebsd, linux):  Accept any machine,
not just i[34]86.
(m68k-atari-sysv4):  Relocate to match FSF version.

29 years agoRemove RCS ID's
J.T. Conklin [Fri, 26 Aug 1994 22:00:50 +0000 (22:00 +0000)]
Remove RCS ID's

29 years agowrite.c(write_contents): always enable BFD_FAST_SECTION_FILL code
Ken Raeburn [Fri, 26 Aug 1994 21:53:59 +0000 (21:53 +0000)]
write.c(write_contents): always enable BFD_FAST_SECTION_FILL code

29 years agosubsegs.c: fix EMIT_SECTION_SYMBOLS handling
Ken Raeburn [Fri, 26 Aug 1994 21:49:10 +0000 (21:49 +0000)]
subsegs.c: fix EMIT_SECTION_SYMBOLS handling

29 years ago * config.guess: More merges from the FSF.
Per Bothner [Fri, 26 Aug 1994 21:38:29 +0000 (21:38 +0000)]
* config.guess:  More merges from the FSF.

29 years agoMore merges from FSF.
Per Bothner [Fri, 26 Aug 1994 21:10:36 +0000 (21:10 +0000)]
More merges from FSF.

29 years agoconfigure: Accept and ignore --cache*, for compat w/autoconf 2.
Ken Raeburn [Fri, 26 Aug 1994 20:46:31 +0000 (20:46 +0000)]
configure: Accept and ignore --cache*, for compat w/autoconf 2.

29 years ago * (config.guess): Merge from FSF.
Per Bothner [Fri, 26 Aug 1994 20:24:35 +0000 (20:24 +0000)]
* (config.guess):  Merge from FSF.

29 years ago * coffgen.c (coff_real_object_p): Set obj_raw_syment_count.
Ian Lance Taylor [Fri, 26 Aug 1994 20:01:21 +0000 (20:01 +0000)]
* coffgen.c (coff_real_object_p): Set obj_raw_syment_count.
(coff_get_normalized_symtab): Verify obj_raw_syment_count, rather
than setting it.

29 years ago * configure.in: Recognize --with-headers and --with-libs.
Ian Lance Taylor [Fri, 26 Aug 1994 19:05:59 +0000 (19:05 +0000)]
* configure.in: Recognize --with-headers and --with-libs.
* Makefile.in (all-xiberty): Depend upon all-ld.

29 years ago* sparcnbsd.mh,sparcnbsd.mt: New files, support for NetBSD/sparc.
J.T. Conklin [Fri, 26 Aug 1994 18:10:49 +0000 (18:10 +0000)]
* sparcnbsd.mh,sparcnbsd.mt: New files, support for NetBSD/sparc.

29 years ago * configure.in: Recognize --without-newlib.
Ian Lance Taylor [Fri, 26 Aug 1994 15:19:54 +0000 (15:19 +0000)]
* configure.in: Recognize --without-newlib.

29 years ago * archive.c (bsd_write_armap): Remove host dependencies.
Ian Lance Taylor [Thu, 25 Aug 1994 19:50:26 +0000 (19:50 +0000)]
* archive.c (bsd_write_armap): Remove host dependencies.

29 years ago * aoutx.h (add_to_stringtab): Check for _bfd_stringtab_add error
Ian Lance Taylor [Thu, 25 Aug 1994 18:56:11 +0000 (18:56 +0000)]
* aoutx.h (add_to_stringtab): Check for _bfd_stringtab_add error
before adding BYTES_IN_WORD.

29 years ago * coffgen.c (coff_find_nearest_line): Look for the best C_FILE,
Ian Lance Taylor [Thu, 25 Aug 1994 15:58:43 +0000 (15:58 +0000)]
* coffgen.c (coff_find_nearest_line): Look for the best C_FILE,
not merely the first.

29 years ago * coffgen.c (coff_write_alien_symbol): If we are not using the
Ian Lance Taylor [Thu, 25 Aug 1994 14:46:10 +0000 (14:46 +0000)]
* coffgen.c (coff_write_alien_symbol): If we are not using the
symbol, clear the name so that it is not put in the string table.
From Antti.Miettinen@ntc.nokia.com.

29 years agofix typo
J.T. Conklin [Thu, 25 Aug 1994 00:58:14 +0000 (00:58 +0000)]
fix typo

29 years ago* config/xm-nbsd.h: New file, support for all NetBSD ports.
J.T. Conklin [Thu, 25 Aug 1994 00:55:39 +0000 (00:55 +0000)]
* config/xm-nbsd.h: New file, support for all NetBSD ports.
* config/sparc/{nm-sparcnbsd.h,tm-sparcnbsd.h,xm-sparcnbsd.h}: New files,
  support for NetBSD/sparc.
* configure.in: Add sparc-*-netbsd target.

29 years ago* config/xm-nbsd.h: New file, support for all NetBSD ports.
J.T. Conklin [Thu, 25 Aug 1994 00:54:50 +0000 (00:54 +0000)]
* config/xm-nbsd.h: New file, support for all NetBSD ports.
* config/sparc/{nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}: New files, support
  for NetBSD/sparc.
* configure.in: Add sparc-*-netbsd target.

29 years ago * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility
Ian Lance Taylor [Wed, 24 Aug 1994 23:46:53 +0000 (23:46 +0000)]
* config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibility
with native MIPS assembler.
* configure.in (mips-*-irix*): Don't set emulation.
* config/te-irix.h: Remove.
With these changes, gas works with mips-tfile.

29 years ago * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we
Ian Lance Taylor [Wed, 24 Aug 1994 22:10:14 +0000 (22:10 +0000)]
* ecoff.c (ecoff_symbol_new_hook): Don't add a new file if we
haven't seen any input files yet.
* config/tc-alpha.c (md_begin): Just call symbol_create, rather
than calling symbol_new and then removing the symbol from the
list.
With these changes, Alpha gas will work with mips-tfile.

29 years agogcc lint.
Ian Lance Taylor [Wed, 24 Aug 1994 21:48:18 +0000 (21:48 +0000)]
gcc lint.
* as.c (main): Move a inside the #if 0 block which uses it.
* ecoff.c (current_stabs_filename): Make const.
* frags.h (frag_align_pattern): Declare.
* gasp.c (new_file): Cast isp to long, and use %ld to print it.
* config/tc-alpha.h (md_operand): Add cast to void.
(alpha_do_align): Declare argument types.
(tc_get_register): Declare.
(alpha_frob_ecoff_data): Declare.
* config/tc-alpha.c: Include <ctype.h>.
(s_mask): Don't declare; does not exist.
(line_comment_chars): Remove /* from descriptive comment.
(tc_get_register): Remove unused local reg.
(tc_gen_reloc): Don't bother to compare unsigned to zero.
(s_base): Correct warning to actually print register number.
(md_begin): Remove unused locals retval, lose, and i.
(alpha_fix_adjustable): Move default case inside switch to avoid
warning.
(load_symbol_address): Remove unused locals reloc_addr, p, sym,
and addend.
(emit_byte_manip_r): Declare types for all arguments.
(emit_extract_r, emit_insert_r, emit_mask_r): Likewise.
(emit_sign_extend, emit_bis_r, s_proc): Likewise.
(alpha_ip): Use sprint_value to print offsetT value.  Remove
unused local size.  Remove unused label get_macro.
(alpha_do_align): Make fill const.
(md_apply_fix): Remove unused label check_zov.

29 years ago * coffgen.c (coff_print_symbol): Cast pointer different to long
Ian Lance Taylor [Wed, 24 Aug 1994 21:17:40 +0000 (21:17 +0000)]
* coffgen.c (coff_print_symbol): Cast pointer different to long
and use %ld to print it.
* osf-core.c (osf_core_core_file_p): Remove unused variable
dseccnt.
* ecoffswap.h (ecoff_swap_ext_out): If ECOFF_64, clear remaining
bytes in bits2.

29 years ago * remote-vx.c (vx_attach): Interpret the command argument as an
Stan Shebs [Wed, 24 Aug 1994 20:22:25 +0000 (20:22 +0000)]
* remote-vx.c (vx_attach): Interpret the command argument as an
unsigned long.

29 years ago * configure.in: Change i386 to i[345]86.
Ian Lance Taylor [Wed, 24 Aug 1994 17:18:05 +0000 (17:18 +0000)]
* configure.in: Change i386 to i[345]86.
* gdb.base/configure.in: Likewise.
* gdb.c++/configure.in: Likewise.
* gdb.chill/configure.in: Likewise.

29 years ago * configure.in: Change i[34]86 to i[345]86.
Ian Lance Taylor [Wed, 24 Aug 1994 17:12:57 +0000 (17:12 +0000)]
* configure.in: Change i[34]86 to i[345]86.
* nlm/configure.in: Likewise.
* gdbserver/configure.in: Likewise.

29 years ago * configure.in: Change i[34]86 to i[345]86.
Ian Lance Taylor [Wed, 24 Aug 1994 17:05:33 +0000 (17:05 +0000)]
* configure.in: Change i[34]86 to i[345]86.

29 years ago * configure.in: Change i[34]86 to i[345]86.
Ian Lance Taylor [Wed, 24 Aug 1994 16:53:39 +0000 (16:53 +0000)]
* configure.in: Change i[34]86 to i[345]86.

29 years ago * configure.in: Change i386-*-* to i[345]86-*-*.
Ian Lance Taylor [Wed, 24 Aug 1994 16:50:03 +0000 (16:50 +0000)]
* configure.in: Change i386-*-* to i[345]86-*-*.

29 years ago * configure.in: Recognize i586 as a synonym for i[34]86.
Ian Lance Taylor [Wed, 24 Aug 1994 16:48:38 +0000 (16:48 +0000)]
* configure.in: Recognize i586 as a synonym for i[34]86.

29 years ago * configure.in, binutils.all/configure.in: Change i386 to
Ian Lance Taylor [Wed, 24 Aug 1994 16:43:54 +0000 (16:43 +0000)]
* configure.in, binutils.all/configure.in: Change i386 to
i[345]86.

29 years ago* configure.in (i386-*-netware): Automatically configure nlm
J.T. Conklin [Wed, 24 Aug 1994 16:43:18 +0000 (16:43 +0000)]
* configure.in (i386-*-netware): Automatically configure nlm
  subdir.

29 years ago * configure.host, config.bfd: Change i[34]86 to i[345]86.
Ian Lance Taylor [Wed, 24 Aug 1994 16:41:48 +0000 (16:41 +0000)]
* configure.host, config.bfd: Change i[34]86 to i[345]86.

29 years ago * configure.in: Change i[34]86 to i[345]86.
Ian Lance Taylor [Wed, 24 Aug 1994 16:37:58 +0000 (16:37 +0000)]
* configure.in: Change i[34]86 to i[345]86.

29 years ago * coffgen.c (coff_real_object_p): Set obj_conv_table_size here,
Ian Lance Taylor [Wed, 24 Aug 1994 16:32:40 +0000 (16:32 +0000)]
* coffgen.c (coff_real_object_p): Set obj_conv_table_size here,
rather than waiting until coff_slurp_symbol_table.
(coff_write_alien_symbol): Just ignore BSF_DEBUGGING symbols.
From Antti.Miettinen@ntc.nokia.com.

29 years ago * section.c (bfd_make_section_anyway): Fix failure check of
Ian Lance Taylor [Wed, 24 Aug 1994 16:29:17 +0000 (16:29 +0000)]
* section.c (bfd_make_section_anyway): Fix failure check of
bfd_make_empty_symbol.  From Antti.Miettinen@ntc.nokia.com.

29 years ago * aoutx.h (translate_to_native_sym_flags): Use the output_section
Ian Lance Taylor [Wed, 24 Aug 1994 15:59:40 +0000 (15:59 +0000)]
* aoutx.h (translate_to_native_sym_flags): Use the output_section
(and output_offset) if there is one.

* aoutx.h (aout_link_check_archive_element): Discard the symbols
if the archive element was not needed.

* aoutx.h (aout_get_external_symbols): Ensure that a zero string
index yields an empty string.
(aout_link_write_symbols): If info->keep_memory is false, use name
from original hash table entry, not from entry in *sym_hash.

* aoutx.h (struct aout_final_link_info): Add fields contents,
relocs, symbol_map and output_syms.
(NAME(aout,final_link)): Work out the largest section size, reloc
size, and number of symbols.  Use them to preallocate buffers that
are large enough for all cases.
(aout_link_input_bfd): Use preallocated symbol_map.
(aout_link_write_symbols): Remove symbol_map argument; use
preallocated symbol_map instead.  Change all callers.  Use
preallocated output_syms.
(aout_link_input_section): Remove symbol_map argument.  Change all
callers.  Use preallocated contents and relocs.
(aout_link_input_section_std): Remove symbol_map argument; use
preallocated symbol_map instead.  Change all callers.
(aout_link_input_section_ext): Likewise.

29 years ago * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
Stan Shebs [Wed, 24 Aug 1994 02:21:37 +0000 (02:21 +0000)]
* lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
patterns, since that is not a valid context for comments.

29 years ago* nlm/gdbserve.c: conditionalize header file inclusion for either
J.T. Conklin [Wed, 24 Aug 1994 00:58:42 +0000 (00:58 +0000)]
* nlm/gdbserve.c: conditionalize header file inclusion for either
  NetWare 4.0 or PIN targets.
* nlm/i386.c: include appropriate header files.
* nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
  targets.

29 years ago* gdbserve.c: conditionalize header file inclusion for either
J.T. Conklin [Wed, 24 Aug 1994 00:57:17 +0000 (00:57 +0000)]
* gdbserve.c: conditionalize header file inclusion for either
  NetWare 4.0 or PIN targets.
* nlm/i386.c: include appropriate header files.
* nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
  targets.

29 years ago * nlm/ppc.c (set_step_traps clear_step_traps): Cleanups.
Stu Grossman [Wed, 24 Aug 1994 00:27:38 +0000 (00:27 +0000)]
* nlm/ppc.c (set_step_traps clear_step_traps):  Cleanups.
* nlm/gdbserve.def:  Autoload clib.

29 years ago * gdbtypes.h: Declare f77_create_literal_string_type and
Jim Kingdon [Tue, 23 Aug 1994 21:39:50 +0000 (21:39 +0000)]
* gdbtypes.h: Declare f77_create_literal_string_type and
f77_create_literal_complex_type.
* valops.c (f77_value_literal_string, f77_value_substring,
f77_value_literal_complex): Use xmalloc not malloc.
* valops.c (f77_value_literal_string, f77_value_substring):
Make addr char * not CORE_ADDR.
* value.h (struct value): Add new field literal_data of aligner union.
(VALUE_LITERAL_DATA): Use it.
* f-lang.h: Declare find_common_for_function.
* value.h, valops.c: Split VALUE_SUBSTRING_START into memaddr and
myaddr fields of a union.  Don't overload it with the frame field
(not sure this is necessary; I'm not sure what lval_* codes
VALUE_SUBSTRING_* can be used with).

29 years agoCommand loop sort-of works, stopeed core dumping.
Rob Savoye [Tue, 23 Aug 1994 01:22:56 +0000 (01:22 +0000)]
Command loop sort-of works, stopeed core dumping.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

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

29 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.

29 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.

29 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.

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

29 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.

29 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.

29 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).

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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?

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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.

29 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().

29 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.

29 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.

29 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.

29 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.

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

29 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.

29 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.

29 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.