Ken Raeburn [Thu, 2 Jun 1994 16:03:41 +0000 (16:03 +0000)]
(.section): Document as unavailable for a.out type formats.
Ken Raeburn [Thu, 2 Jun 1994 16:01:18 +0000 (16:01 +0000)]
(install-info-gasp): Use $$dir when installing file.
Ian Lance Taylor [Thu, 2 Jun 1994 04:40:34 +0000 (04:40 +0000)]
* configure: If config.guess result is a prefix of the user
specified target, assume a native build and use the user specified
target as the host alias. Remove SunOS patch suffix removal hack.
* configure.in: Remove SunOS patch suffix removal hack.
Ian Lance Taylor [Thu, 2 Jun 1994 04:14:05 +0000 (04:14 +0000)]
* Makefile.in (CROSS_CHECK_MODULES): Remove check-flex, since it's
in NATIVE_CHECK_MODULES.
Jim Kingdon [Wed, 1 Jun 1994 23:14:45 +0000 (23:14 +0000)]
* stabs.texinfo (Statics): Value of xcoff C_BSTAT points to
another symbol, it is not the address itself.
Bill Cox [Wed, 1 Jun 1994 21:38:29 +0000 (21:38 +0000)]
* Makefile.in: Rename HOST_ONLY to NATIVE.
* configure: Delete SunOs patch suffix from host_canonical
and build_canonical variables that are prepended to Makefiles.
* configure.in: Add comments to patch suffix removal for easier
maintenance.
Rob Savoye [Wed, 1 Jun 1994 20:40:53 +0000 (20:40 +0000)]
Unneeded.
Rob Savoye [Wed, 1 Jun 1994 20:30:19 +0000 (20:30 +0000)]
Renamed.
Jim Kingdon [Wed, 1 Jun 1994 19:35:51 +0000 (19:35 +0000)]
* Makefile.in: Add all-libproc target similar to all-gui.
Jim Kingdon [Wed, 1 Jun 1994 19:28:24 +0000 (19:28 +0000)]
* inftarg.c (child_wait): Call proc_wait, not wait.
(child_mourn_inferior): Call proc_remove_foreign.
* main.c (gdb_init): Call init_proc.
* main.c: Provide dummy versions of init_proc, proc_wait, and
proc_remove_foreign for the gdb case (the libgdb case provides its
own versions of these functions).
* Makefile.in (libgdb-files): Add libproc.a.
Ian Lance Taylor [Wed, 1 Jun 1994 18:39:43 +0000 (18:39 +0000)]
* hosts/sun3.h: Don't declare qsort, malloc or realloc.
Ian Lance Taylor [Wed, 1 Jun 1994 18:28:26 +0000 (18:28 +0000)]
* ldlang.h (lang_input_statement_type): Remove fields subfiles,
total_size, superfile and chain.
* ldfile.c (open_a): Don't clear search_dirs_flag.
(ldfile_open_file): Don't try to open superfile. Assert that file
has not already been opened.
* ldlang.c (new_afile): Don't initialize superfile.
* ldmain.c (add_archive_element): Don't initialize subfiles or
chain or superfile. Initialize search_dirs_flag to false.
Stan Shebs [Wed, 1 Jun 1994 18:26:16 +0000 (18:26 +0000)]
Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
Hardware watchpoints for Linux, from Rick Sladkey
(jrs@world.std.com).
* infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
new hardware breakpoint recovery method.
* i386v-nat.c (i386_insert_watchpoint,
i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
New functions to support the 386 hardware debugging registers.
* config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
target_insert_watchpoint, target_remove_watchpoint): Define these
macros to use the hardware debugging functions in i386v-nat.c.
Ian Lance Taylor [Wed, 1 Jun 1994 14:56:21 +0000 (14:56 +0000)]
* config/tc-mips.c (mips_ip): Force floating point values to be
aligned correctly.
Thomas Lord [Wed, 1 Jun 1994 00:18:40 +0000 (00:18 +0000)]
Tue May 31 17:16:33 1994 Tom Lord (lord@cygnus.com)
* Makefile.in (CHECK_MODULES): split into
HOST_ONLY_CHECK_MODULES and CROSS_CHECK_MODULES.
Thomas Lord [Wed, 1 Jun 1994 00:16:26 +0000 (00:16 +0000)]
Don't check flex when cross building.
Per Bothner [Mon, 30 May 1994 05:34:32 +0000 (05:34 +0000)]
* Makefile.in: Fix bit-rot in definitions of CHILL,
CHILL_FOR_TARGET and Chill_LIB.
Ken Raeburn [Fri, 27 May 1994 17:06:21 +0000 (17:06 +0000)]
put current timestamp on merge log
Ken Raeburn [Fri, 27 May 1994 16:58:05 +0000 (16:58 +0000)]
changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)
Ian Lance Taylor [Fri, 27 May 1994 15:39:11 +0000 (15:39 +0000)]
* ldlang.c (entry_symbol): Make static.
(lang_add_entry): Add cmdline argument.
* ldlang.h (lang_add_entry): Change prototype.
* ldgram.y (statement_anywhere): Change lang_add_entry call.
* lexsup.c (parse_args): Likewise.
Ian Lance Taylor [Fri, 27 May 1994 05:09:31 +0000 (05:09 +0000)]
* ldlang.c (lang_add_entry): Only set the entry symbol if it has
not been set already.
Steve Chamberlain [Fri, 27 May 1994 02:06:14 +0000 (02:06 +0000)]
* interp.c (trap): Fix irix incompatibility.
* run.c (main): open without specifying file type.
Jim Kingdon [Thu, 26 May 1994 23:55:34 +0000 (23:55 +0000)]
* Makefile.in: Add all-gui target (but not yet build by "all").
Jim Kingdon [Thu, 26 May 1994 23:46:00 +0000 (23:46 +0000)]
* Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
build it.
Jeff Law [Thu, 26 May 1994 16:13:47 +0000 (16:13 +0000)]
* som.c (som_prep_headers): Do not set the system_id here, private
bfd data has not been copied yet.
(som_write_headers): Instead do it here.
Bill Cox [Thu, 26 May 1994 15:59:22 +0000 (15:59 +0000)]
* config.sub: Move deletion of patch suffix from here...
* configure.in: To here, at Ian's suggestion. The top-
level scripts might need to know of a patch level.
Per Bothner [Thu, 26 May 1994 00:12:21 +0000 (00:12 +0000)]
* Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax of
sanitize-chill comments.
Bill Cox [Wed, 25 May 1994 16:23:13 +0000 (16:23 +0000)]
* config.sub: Strip off patch suffix so rtl is recognized
as a sunos4.1.3 machine, even though it's been patched.
Thomas Lord [Wed, 25 May 1994 15:39:12 +0000 (15:39 +0000)]
Make all the libgdb objects even when building gdb. This is because
cyscm links against ../../gdb/{...}.o
Added a new target: libgdb-files. It creates a file of that name
containing a list of files for libgdb. If the variable LIBGDBPREFIX
is set, each file name has that prepended.
Jim Kingdon [Tue, 24 May 1994 23:56:30 +0000 (23:56 +0000)]
Mention gdb-testers-request as well as gdb-testers. (not in ChangeLog
because gdb distributions should not contain references to snapshots).
Ian Lance Taylor [Tue, 24 May 1994 20:44:50 +0000 (20:44 +0000)]
Make MIPS ELF use new ELF backend linker. No shared library
support yet.
* elf32-mips.c (bfd_mips_elf32_swap_gptab_in): New function.
(bfd_mips_elf32_swap_gptab_out): New function.
(mips_elf_object_p): If last symbol is LOCAL, set elf_bad_symtab.
(mips_elf_final_write_processing): Set sh_info field for .gptab.*
sections.
(mips_elf_fake_sections): Set sh_entsize for .gptab.* sections.
(mips_elf_read_ecoff_info): Read and free external symbols last,
not first, for clarity.
(struct mips_elf_link_hash_entry): Define new structure.
(struct mips_elf_link_hash_table): Define new structure.
(mips_elf_link_hash_lookup): Define new macro.
(mips_elf_link_hash_traverse): Define new macro.
(mips_elf_hash_table): Define new macro.
(mips_elf_link_hash_newfunc): New static function.
(mips_elf_link_hash_table_create): New static function.
(mips_elf_add_symbol_hook): New static function.
(struct extsym_info): Define new structure.
(mips_elf_get_extr, mips_elf_set_index): Remove.
(mips_elf_output_extsym): New static function.
(gptab_compare): New static function.
(mips_elf_final_link): Rewrite to use ELF backend linker, and to
merge gptab information in input files.
(mips_elf_relocate_hi16): New static function.
(mips_elf_relocate_section): New static function.
(bfd_elf32_bfd_link_hash_table_create): Define as macro before
including elf32-target.h.
(elf_backend_relocate_section): Likewise.
(elf_backend_add_symbol_hook): Likewise.
* elf.c (_bfd_elf_link_hash_newfunc): Rename from
elf_link_hash_newfunc and make globally visible. Change caller.
(_bfd_elf_link_hash_table_init): New function, broken out of
_bfd_elf_link_hash_table_create.
(_bfd_elf_link_hash_table_create): Use
_bfd_elf_link_hash_table_init.
* libelf.h (struct elf_obj_tdata): Add new field bad_symtab.
(elf_bad_symtab): Define new accessor macro.
(_bfd_elf_link_hash_newfunc): Declare.
(_bew_elf_link_hash_table_init): Declare.
* elfcode.h (elf_object_p): Call backend object_p hook after
swapping in all the section headers.
(map_program_segments): Correct typo: Internal for External.
(elf_link_add_object_symbols): If elf_bad_symtab is set, read all
the symbols. Skip STB_LOCAL symbols rather than giving an error.
(elf_bfd_final_link): If elf_bad_symtab is set, allocate space for
all symbols, not just locals.
(elf_link_output_extsym): Only skip a symbol not mentioned by a
regular file if it is mentioned by a dynamic object.
(elf_link_input_bfd): If elf_bad_symtab is set, read all the
symbols.
Ian Lance Taylor [Tue, 24 May 1994 20:21:27 +0000 (20:21 +0000)]
* emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
.reginfo an address.
(OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
(OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
* scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
Bill Cox [Sat, 21 May 1994 17:24:22 +0000 (17:24 +0000)]
* Revert the previous changes. Please see Rob's directory
/lisa/test/rob/progressive/gdb/testsuite for these fixes.
Ian Lance Taylor [Fri, 20 May 1994 22:02:39 +0000 (22:02 +0000)]
* as.h: Don't declare parameters for strstr.
Ian Lance Taylor [Fri, 20 May 1994 20:17:50 +0000 (20:17 +0000)]
* coff-mips.c (mips_relocate_section): Add MIPS_R_JMPADDR overflow
checking.
Jeff Law [Fri, 20 May 1994 19:43:18 +0000 (19:43 +0000)]
* som.c (som_set_reloc_info): Do not set any relocation info
for SOM fixups which are never passed to BFD.
Ian Lance Taylor [Fri, 20 May 1994 18:26:18 +0000 (18:26 +0000)]
Remove mention of keep-powerpc-netware: PowerPC NetWare is no longer
sanitized.
Ian Lance Taylor [Fri, 20 May 1994 18:25:30 +0000 (18:25 +0000)]
Remove sanitization of PowerPC NetWare
Ian Lance Taylor [Fri, 20 May 1994 18:25:02 +0000 (18:25 +0000)]
Remove sanitization of PowerPC NetWare.
Ian Lance Taylor [Fri, 20 May 1994 18:22:45 +0000 (18:22 +0000)]
Removed sanitization of PowerPC NetWare. Also rebuilt Makefile
dependencies.
Ian Lance Taylor [Fri, 20 May 1994 18:09:48 +0000 (18:09 +0000)]
Remove sanitization of PowerPC NetWare.
Ian Lance Taylor [Fri, 20 May 1994 16:14:35 +0000 (16:14 +0000)]
* elf32-i386.c (elf_i386_size_dynamic_sections): Add DT_DEBUG to
the dynamic linking information for the benefit of the debugger.
From Peter Schauer.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
Ian Lance Taylor [Fri, 20 May 1994 16:04:59 +0000 (16:04 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): New function, based on
code repeated three times in bfd_section_from_shdr in elfcode.h.
* libelf.h (_bfd_elf_make_section_from_shdr): Declare.
* elfcode.h (bfd_section_from_shdr): Use new function
_bfd_elf_make_section_from_shdr to create BFD sections. If a
reloc section does not use the main symbol table, or it is part of
the process image, treat it as a normal section, not relocs.
* elf32-mips.c (mips_elf_section_from_shdr): Use new function
_bfd_elf_make_section_from_shdr.
Steve Chamberlain [Fri, 20 May 1994 15:28:26 +0000 (15:28 +0000)]
Really fix INSTALL_LAST this time..
Jim Kingdon [Fri, 20 May 1994 03:43:39 +0000 (03:43 +0000)]
* target.c, target.h: New variables target_activity_function and
target_activity_fd.
* inflow.c, inferior.h: New functions set_sigio_trap and
clear_sigio_trap.
* inftarg.c (child_wait), procfs.c (wait_fd): Call them.
Ian Lance Taylor [Thu, 19 May 1994 21:58:45 +0000 (21:58 +0000)]
Make map_program_segments tend to call abort rather than trash the
stack in unhandled cases. Still covered by previous ChangeLog entry.
Ian Lance Taylor [Thu, 19 May 1994 21:39:15 +0000 (21:39 +0000)]
* elf32-target.h, elf64-target.h: Change ar_max_namelen value from
15 to 14 to match SVR4 ar.
Ian Lance Taylor [Thu, 19 May 1994 21:16:30 +0000 (21:16 +0000)]
* configure.in: Use ld for i[34]86-*-sysv4* and sparc-*-solaris2*.
Don't set use_gnu_ld to no for *-*-sysv4; that only controls
whether we pass down --with-gnu-ld anyhow.
Bill Cox [Thu, 19 May 1994 19:58:04 +0000 (19:58 +0000)]
* Makefile.in, configure.in, config/mips-gdb.exp,
config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing
changes from 94Q1.
Ian Lance Taylor [Thu, 19 May 1994 19:44:02 +0000 (19:44 +0000)]
* config/tc-sparc.c (md_section_align): Don't change the size if
OBJ_ELF.
Ian Lance Taylor [Thu, 19 May 1994 18:25:10 +0000 (18:25 +0000)]
Add support for ELF shared libraries.
* ld.h (ld_config_type): Add field dynamic_link.
* ldmain.c (main): Initialize config.dynamic_link to false. Warn
on attempts to use -r with -relax, -call_shared or -s.
* lexsup.c (longopts): Separate OPTION_CALL_SHARED from
OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
accordingly. Add "dy" and "non_shared" options. Change "Qy" to
OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
OPTION_NON_SHARED by setting dynamic_link field accordingly.
Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
-r and -Ur.
* ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
opening a file with a .so extension first.
* emultempl/elf32.em: New file.
* emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
(NONPAGED_TEXT_START_ADDR): Likewise.
(TEMPLATE_NAME): Define as elf32.
(DATA_PLT): Define.
* emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
* scripttempl/elf.sc: Add placement for new dynamic sections.
Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
outside of any section. Don't use ALIGN(8); just let one section
VMA follow another. Put .dynbss in .bss. Don't mention debugging
sections; they'll be handled correctly anyhow.
* Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
Ian Lance Taylor [Thu, 19 May 1994 18:23:40 +0000 (18:23 +0000)]
Add support for ELF shared libraries. Loosely based on work by
Eric Youngdale <ericy@cais.com>.
* libelf.h (struct elf_backend_data): Add new fields for dynamic
linking: elf_backend_create_dynamic_sections,
elf_backend_adjust_dynamic_symbol,
elf_backend_size_dynamic_sections,
elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections.
(struct elf_link_hash_entry): Change type of align field to
bfd_size_type. Add fields dynindx, dynstr_index, weakdef,
elf_link_hash_flags.
(struct elf_link_hash_table): Add fields dynobj, dynsymcount,
dynstr, bucketcount.
(bfd_elf32_swap_reloc_in, bfd_elf32_swap_reloc_out): Declare.
(bfd_elf32_swap_reloca_in, bfd_elf32_swap_reloca_out): Declare.
(bfd_elf32_swap_dyn_in, bfd_elf32_swap_dyn_out): Declare.
(bfd_elf32_add_dynamic_entry): Declare.
(bfd_elf64_swap_reloc_in, bfd_elf64_swap_reloc_out): Declare.
(bfd_elf64_swap_reloca_in, bfd_elf64_swap_reloca_out): Declare.
(bfd_elf64_swap_dyn_in, bfd_elf64_swap_dyn_out): Declare.
(bfd_elf64_add_dynamic_entry): Declare.
* elfcode.h (Elf_External_Dyn): Define.
(elf_swap_reloc_in): Define as macro using NAME. Make externally
visible.
(elf_swap_reloc_out): Likewise.
(elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
(elf_swap_dyn_in, elf_swap_dyn_out): Define as macro using NAME
and as new externally visible function.
(elf_fake_sections): Set section type of dynamic sections based on
section names.
(elf_write_phdrs): Remove.
(assign_file_position_for_section): Add new align argument.
Change all callers.
(get_program_header_size): New static function.
(struct seg_info): Remove.
(map_program_segments): Completely rewrite.
(assign_file_positions_except_relocs): Completely rewrite.
(assign_file_positions_for_relocs): Don't set a file position for
sections which already have one. Don't bother to align the file
position here.
(section_from_elf_index): Handle SHT_HASH and SHT_DYNAMIC
section types.
(elf_section_from_bfd_section): Likewise.
(elf_slurp_symbol_table): If section_from_elf_index fails, just
use bfd_abs_section rather than returning an error.
(elf_sizeof_headers): Make useful.
(elf_link_record_dynamic_symbol): New static function.
(elf_link_add_object_symbols): Handle dynamic objects.
(elf_link_create_dynamic_sections): New static function.
(elf_add_dynamic_entry): Define as macro using NAME and as new
externally visible function.
(NAME(bfd_elf,record_link_assignment)): New function.
(elf_buckets): New static variable.
(NAME(bfd_elf,size_dynamic_sections)): New function.
(struct elf_final_link_info): Add dynsym_sec and hash_sec fields.
(elf_bfd_final_link): Handle dynamic linking. Create a section
symbol for all ELF sections, not all BFD sections. Store section
symbol index in target_index field, not index field. Traverse
over global symbols even if stripping.
(elf_link_output_extsym): Output dynamic symbols. Mark symbols
defined by dynamic objects as undefined.
(elf_link_input_bfd): Ignore dynamic objects. Use target_index
field for section relocs, and make sure it is set.
(elf_reloc_link_order): Use target_index field for section relocs,
and make sure it is set.
* elf.c (elf_link_hash_newfunc): Initialize dynindx, dynstr_index,
weakdef and elf_link_hash_flags fields.
(_bfd_elf_link_hash_table_create): Initialize dynobj, dynsymcount,
dynstr and bucketcount fields.
* elf32-target.h: Initialize new dynamic linking fields.
* elf64-target.h: Likewise.
* elf32-i386.c: New functions for dynamic linking support.
* elf32-sparc.c: Likewise.
* bfd-in.h (bfd_elf32_record_link_assignment): Declare.
(bfd_elf64_record_link_assignment): Declare.
(bfd_elf32_size_dynamic_sections): Declare.
(bfd_elf64_size_dynamic_sections): Declare.
* bfd-in2.h: Rebuilt.
Steve Chamberlain [Thu, 19 May 1994 16:31:33 +0000 (16:31 +0000)]
Change INSTALL_LASTness.
Steve Chamberlain [Thu, 19 May 1994 16:31:06 +0000 (16:31 +0000)]
Thu May 19 09:29:12 1994 Steve Chamberlain (sac@cygnus.com)
* Makefile.in (INSTALL_LAST): Change operation so it works
on more flavors of make.
* configure.in (go32): Don't build libg++ or libio.
Jeff Law [Thu, 19 May 1994 06:35:55 +0000 (06:35 +0000)]
* mh-hpux (CC): Add -Wp,-H256000 to avoid "too much defining"
errors from the HPUX 8 compilers.
Bill Cox [Thu, 19 May 1994 00:06:29 +0000 (00:06 +0000)]
* config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
config/mt-slite, config/mt-unix, config/mt-vxworks: Add
Rob's new testing fragments.
David Edelsohn [Wed, 18 May 1994 21:37:08 +0000 (21:37 +0000)]
* interp.c (sim_*): Make result void where there isn't one.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn arg, all callers changed.
Call printf_filtered instead.
(sim_close): New function.
(sim_load): New function.
(sim_create_inferior): Renamed from sim_set_args, all callers changed.
* run.c: #include <varargs.h>, "remote-sim.h".
(printf_filtered): New function.
David Edelsohn [Wed, 18 May 1994 20:55:12 +0000 (20:55 +0000)]
* compile.c: #include "bfd.h".
(sim_*): Set result type to void where there isn't one.
(sim_resume, default case): Set cpu.exception to SIGILL.
(sim_trace): Delete.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn arg, all callers changed.
Call printf_filtered.
(set_h8300h): New arg `flag', all callers changed.
(sim_close): New function.
(sim_load): New function.
(sim_create_inferior): Renamed from sim_set_args, all callers changed.
* run.c: #include <varargs.h>, "remote-sim.h".
(printf_filtered): New function.
David Edelsohn [Wed, 18 May 1994 20:42:06 +0000 (20:42 +0000)]
* remote-sim.h (sim_verbose): Delete.
Document callbacks needed.
(sim_*): Change result to void where there isn't one.
(sim_open): Clarify argument and error response.
(sim_close): Declare.
(sim_load): Change bfd_handle argument to file name. Clarify result.
(sim_create_inferior): Renamed from sim_set_args.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn argument.
* remote-sim.c (gdbsim_kill): Add comment describing purpose.
(gdbsim_load): Try sim_load first.
(gdbsim_create_inferior): Call sim_create_inferior.
(gdbsim_open): Handle args == NULL. Update call to sim_open.
(gdbsim_close): Call sim_close.
(gdbsim_files_info): Update call to sim_info.
(gdbsim_ops): Realign comments.
David Edelsohn [Wed, 18 May 1994 20:04:23 +0000 (20:04 +0000)]
(decode_format): Allow TARGET_PTR_BIT to be non-constant.
Ian Lance Taylor [Wed, 18 May 1994 17:32:52 +0000 (17:32 +0000)]
Expand my entry a bit.
Ian Lance Taylor [Wed, 18 May 1994 17:18:23 +0000 (17:18 +0000)]
* Makefile.in (install): Redirect output of ln to /dev/null.
Ian Lance Taylor [Wed, 18 May 1994 17:11:19 +0000 (17:11 +0000)]
* Makefile.in (install): Redirect ln output to /dev/null. If ln
fails on gasp, install gasp.new, not gasp.
Ian Lance Taylor [Wed, 18 May 1994 16:59:26 +0000 (16:59 +0000)]
Comment changes.
Ian Lance Taylor [Wed, 18 May 1994 15:32:15 +0000 (15:32 +0000)]
* som.c: Don't include <sys/dir.h> or <sys/user.h>.
(som_reloc_queue_find): Call memcmp instead of bcmp.
(som_bfd_reloc_type_lookup): Change first argument to bfd *.
(compare_syms): Change types of arguments to const void *.
(bfd_section_from_som_symbol): Removed unused local found.
(som_write_armap): Add elength, map, orl_count and int arguments.
(som_write_armap): Use %ld and cast to long for getuid result.
Jeff Law [Wed, 18 May 1994 15:18:23 +0000 (15:18 +0000)]
* config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for
absolute calls.
Jeff Law [Wed, 18 May 1994 15:13:27 +0000 (15:13 +0000)]
* elf32-hppa.h (R_HPPA_ABS_CALL): Define.
* elf32-hppa.c (hppa_elf_gen_reloc_type): Handle absolute calls.
* som.h (R_HPPA_ABS_CALL): Define.
* som.c (hppa_som_gen_reloc_type): Delete complex relocation types.
Stan Shebs [Wed, 18 May 1994 03:13:09 +0000 (03:13 +0000)]
Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
* xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
the auxent if the symbol's name is ".file". From David Edelsohn
<c1dje@watson.ibm.com>.
Jim Kingdon [Wed, 18 May 1994 00:59:15 +0000 (00:59 +0000)]
* breakpoint.c (breakpoint_1): Fix typo.
* annotate.c (annotate_field_end): Fix typo.
* Makefile.in: Move annotate.o from COMMON_OBS to OBS.
* Makefile.in (TSSTART): Remove; no longer used.
Karen Christiansen [Wed, 18 May 1994 00:03:28 +0000 (00:03 +0000)]
more cleanup
Karen Christiansen [Tue, 17 May 1994 23:57:58 +0000 (23:57 +0000)]
cleanup after 94q2 migration
Ken Raeburn [Tue, 17 May 1994 23:43:48 +0000 (23:43 +0000)]
* coff-i960.c (icoff_little_vec, icoff_big_vec): Indicate leading underscore,
for compatibility with Intel tool chain (gnu960v2).
Bill Cox [Tue, 17 May 1994 22:56:13 +0000 (22:56 +0000)]
* Makefile.in (.m.c:): Added .SUFFIXES : .m
so flat_bl.c would make from flat_bl.m file.
Bill Cox [Tue, 17 May 1994 22:40:29 +0000 (22:40 +0000)]
* ld.bootstrap/bootstrap.exp, lib/ld.exp: Replace error proc
calls with perror calls.
Bill Cox [Tue, 17 May 1994 22:06:15 +0000 (22:06 +0000)]
* config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
lib/gdb.exp: Replace error proc calls with perror.
Bill Cox [Tue, 17 May 1994 21:54:41 +0000 (21:54 +0000)]
* lib/gas-defs.exp: Replace error proc calls with perror calls.
Bill Cox [Tue, 17 May 1994 21:06:39 +0000 (21:06 +0000)]
* config/default.exp, config/unix.exp: Replace error
proc calls with perror.
Jim Kingdon [Tue, 17 May 1994 20:13:50 +0000 (20:13 +0000)]
* utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
fputs_unfiltered and exit directly, rather than fatal. The latter
calls vfprintf_unfiltered!
* gdbtypes.h, gdbtypes.c (can_dereference): New function.
* value.h, printcmd.c (print_value_flags): Move from here...
* annotate.c: ...to here, and make it use can_dereference.
Jeff Law [Tue, 17 May 1994 18:54:50 +0000 (18:54 +0000)]
* config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
on a partial completer match.
Stan Shebs [Tue, 17 May 1994 16:59:33 +0000 (16:59 +0000)]
Fix a sanitization screwup.
Stan Shebs [Tue, 17 May 1994 02:10:17 +0000 (02:10 +0000)]
Mon May 16 19:00:50 1994 Stan Shebs (shebs@andros.cygnus.com)
* gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
version also, match on casted version strings, and match on
gdb startup case where the line numbers might be messed up.
Jeff Law [Mon, 16 May 1994 19:38:39 +0000 (19:38 +0000)]
* emultempl/hppaelf.em: Change all references of
.hppa_linker_stubs to .PARISC.stubs.
* scripttempl/hppaelf.sc: Likewise.
Jeff Law [Mon, 16 May 1994 19:34:13 +0000 (19:34 +0000)]
* bfd-in2.h: Rebuilt.
* elf32-hppa.c: Change .hppa_linker_stubs to .PARISC.stubs,
likewise for other PA specific sections.
(hppa_elf_relocate_unwind_table): Delete unused
function.
(elf_hppa_howto_table): Completely new table based on 94-02-02
draft PA ELF spec. Change relocation tags appropriately
throughout elf32-hppa.c
(hppa_elf_gen_reloc_type): Rewrite and simplify based on 94-02-02
spec.
(hppa_elf_reloc): Likewise.
(hppa_look_for_stubs_in_section): Likewise
(ELF_MACHINE_CODE): Change to EM_PARISC.
* elf32-hppa.h: Include "elf/hppa.h". Change relocation tags
appropriately throughout elf32-hppa.h.
(elf32_hppa_reloc_type): New table based on 94-02-02 draft PA ELF
spec.
(R_HPPA_ABS_CALL, R_HPPA_COMPLEX*, R_HPPA_UNWIND): Delete definitions.
* elfcode.h (prep_headers): Use EM_PARISC instead of EM_HPPA.
* reloc.c (bfd_reloc_code_real): Delete unused HPPA relocations.
* som.h (R_HPPA_ABS_CALL, R_HPPA_COMPLEX): Delete definitions.
* libhppa.h (hppa_field_adjust): Avoid adding constant_value into
the final value twice for LR and RR field selectors.
Jeff Law [Mon, 16 May 1994 19:29:56 +0000 (19:29 +0000)]
* config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
throughout code.
(is_complex): Delete definition and support for complex relocation
types.
(tc_gen_reloc): Delete special unwind crud for ELF. Simplify and
rewrite ELF code based on 94-02-02 PA ELF draft spec.
(pa_build_unwind_subspace): Use standard PARISC_DIR32 relocs for
the unwind descriptors.
Jeff Law [Mon, 16 May 1994 19:25:51 +0000 (19:25 +0000)]
* gas/hppa/reloc/reloc.exp: Tweak expected output to match new
ELF code.
* gas/hppa/reloc/roundmode.s: Avoid "S" and "D" modes, ELF does
not support them.
* gas/hppa/unsorted/unsorted.exp: Tweak expected output to match
new ELF code.
Jeff Law [Mon, 16 May 1994 19:23:59 +0000 (19:23 +0000)]
* common.h (EM_HPPA): Delete.
(EM_PARISC): Add.
* hppa.h: New file.
Jeff Law [Mon, 16 May 1994 16:35:36 +0000 (16:35 +0000)]
Fix typo in last check-in.
Jeff Law [Mon, 16 May 1994 16:13:34 +0000 (16:13 +0000)]
* libhppa.h (hppa_field_adjust): Avoid adding constant_value into
the final value twice for LR and RR field selectors.
Stan Shebs [Sat, 14 May 1994 23:12:29 +0000 (23:12 +0000)]
Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
* inflow.c (job_control, attach_flag, generic_mourn_inferior):
Remove, needed for both native and cross.
* target.c (attach_flag, generic_mourn_inferior): Put here.
* utils.c (job_control): Put here.
(terminal.h): Don't include anymore.
Jim Kingdon [Sat, 14 May 1994 19:37:57 +0000 (19:37 +0000)]
* source.c (find_source_lines): Always use code that was #ifdef
BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
leaving it on the chain. Reindent much of this function.
* config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
config/ns32k/xm-ns32km3.h: Remove all references to
BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
* main.c, fork-child.c, many config files: Remove all
SET_STACK_LIMIT_HUGE code; with the above changes it should no
longer be needed.
* symtab.c (lookup_partial_symbol): Use if and abort, not assert.
This avoids __eprintf troubles.
* main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
initialization code which needs to be called even if we bypass the
command line stuff into gdb_init.
* utils.c (fputs_unfiltered): Surround in #ifndef
FPUTS_UNFILTERED_OVERRIDE.
* Makefile.in (libgdb.a): New target.
* utils.c: Rearrange I/O stuff a bit so that all output goes
through fputs_unfiltered. Use vasprintf; removes arbitrary limit
which made %s not work with arbitrarily large strings.
* printcmd.c (printf_command): Use printf_filtered, not
printf_unfiltered and printf, now that arbitrary limit is gone.
Jim Kingdon [Sat, 14 May 1994 16:19:58 +0000 (16:19 +0000)]
* aoutx.h (add_to_stringtab): Use BFD_ASSERT not assert. This
avoids __eprintf troubles.
Ian Lance Taylor [Sat, 14 May 1994 03:26:26 +0000 (03:26 +0000)]
* bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
Ian Lance Taylor [Sat, 14 May 1994 03:16:13 +0000 (03:16 +0000)]
* bout.c (b_out_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR.
David Edelsohn [Sat, 14 May 1994 01:36:52 +0000 (01:36 +0000)]
* compile.c (decode): Fix typo (16 bit branches).
(*): Some white space clean up.
Bill Cox [Sat, 14 May 1994 01:09:17 +0000 (01:09 +0000)]
* config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
(CFLAGS): Delete it from here.
Steve Chamberlain [Fri, 13 May 1994 20:30:54 +0000 (20:30 +0000)]
Passdown -S to linker.
Steve Chamberlain [Fri, 13 May 1994 20:29:48 +0000 (20:29 +0000)]
* Makefile.in (Move HOST_PREFIX_1 and friends up so
they can be overriden by templates.
Ian Lance Taylor [Fri, 13 May 1994 18:51:52 +0000 (18:51 +0000)]
Rewrite history.
Jim Kingdon [Fri, 13 May 1994 18:47:34 +0000 (18:47 +0000)]
Fix typo in last entry
Jim Kingdon [Fri, 13 May 1994 18:18:57 +0000 (18:18 +0000)]
gcc -Wall lint:
* breakpoint.c (watchpoint_check): Remove unused variable b.
* stack.c (print_frame_info): Move sp and buf inside #if.
* eval.c (evaluate_subexp): Remove unused variables pp,
mangle_ptr, ptr, and mangle_tstr.
* valarith.c (value_x_binop): Remove unused variables mangle_tstr
and mangle_ptr.
* symtab.c (lookup_symtab): Put variable copy inside #if.
(decode_line_1): Put variable q1 inside #if 0.
* target.h: Declare target_link.
* infrun.c (wait_for_inferior): Remove unused variables signame.
* remote.c (remote_resume): Remove unused variable name.
* c-exp.y (parse_number): Parenthesize operand of shift.
* dbxread.c (record_minimal_symbol): Parenthesize operand of &&
(this is a semantic change, the warning seems to have detected a bug).
* dbxread.c (end_psymtab): Move variable p1 inside #if.
* coffread.c: Move variable temptype inside #if.
* ch-typeprint.c (chill_type_print_base): Remove unused variable
name.
* ch-valprint.c: #include typeprint.h and ch-lang.h.
(chill_val_print): Remove unused variable in_range.
(chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
(chill_val_print): Add default case for switch.
* stabsread.h: Declare stabsect_build_psymtabs.
* os9kread.c (read_minimal_symbols): Make this return void.
(os9k_symfile_read): Remove unused variables stb_exist and val.
(os9k_symfile_init): Remove unused variable val.
(fill_sym): Remove unused variable id.
(read_os9k_psymtab): Put variable back_to inside #if 0. Remove
unused variable nsl.
Remove unused variable symfile_bfd.
#if 0 unused variables lbrac_unmatched_complaint and
lbrac_mismatch_complaint.
Remove declaration for non-existent function os9k_next_symbol_text.
* annotate.c, annotate.h: New files, containing a function for
each annotation which outputs it.
* Move breakpoints_changed from breakpoint.c to annotate.c.
* breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
printcmd.c, source.c, stack.c, utils.c, valprint.c:
Use annotate.c functions to output annotations.
* Makefile.in (OBS): Add annotate.o.