binutils-gdb.git
30 years ago Add support for ELF shared libraries. Loosely based on work by
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.

30 years agoChange INSTALL_LASTness.
Steve Chamberlain [Thu, 19 May 1994 16:31:33 +0000 (16:31 +0000)]
Change INSTALL_LASTness.

30 years agoThu May 19 09:29:12 1994 Steve Chamberlain (sac@cygnus.com)
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.

30 years ago * mh-hpux (CC): Add -Wp,-H256000 to avoid "too much defining"
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.

30 years ago * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
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.

30 years ago * interp.c (sim_*): Make result void where there isn't one.
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.

30 years ago * compile.c: #include "bfd.h".
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.

30 years ago * remote-sim.h (sim_verbose): Delete.
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.

30 years ago(decode_format): Allow TARGET_PTR_BIT to be non-constant.
David Edelsohn [Wed, 18 May 1994 20:04:23 +0000 (20:04 +0000)]
(decode_format): Allow TARGET_PTR_BIT to be non-constant.

30 years agoExpand my entry a bit.
Ian Lance Taylor [Wed, 18 May 1994 17:32:52 +0000 (17:32 +0000)]
Expand my entry a bit.

30 years ago * Makefile.in (install): Redirect output of ln to /dev/null.
Ian Lance Taylor [Wed, 18 May 1994 17:18:23 +0000 (17:18 +0000)]
* Makefile.in (install): Redirect output of ln to /dev/null.

30 years ago * Makefile.in (install): Redirect ln output to /dev/null. If ln
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.

30 years agoComment changes.
Ian Lance Taylor [Wed, 18 May 1994 16:59:26 +0000 (16:59 +0000)]
Comment changes.

30 years ago * som.c: Don't include <sys/dir.h> or <sys/user.h>.
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.

30 years ago * config/tc-hppa.c (pa_ip): Use R_HPPA_ABS_CALL, not R_HPPA for
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.

30 years ago * elf32-hppa.h (R_HPPA_ABS_CALL): Define.
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.

30 years agoTue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
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>.

30 years ago * breakpoint.c (breakpoint_1): Fix typo.
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.

30 years agomore cleanup
Karen Christiansen [Wed, 18 May 1994 00:03:28 +0000 (00:03 +0000)]
more cleanup

30 years agocleanup after 94q2 migration
Karen Christiansen [Tue, 17 May 1994 23:57:58 +0000 (23:57 +0000)]
cleanup after 94q2 migration

30 years ago* coff-i960.c (icoff_little_vec, icoff_big_vec): Indicate leading underscore,
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).

30 years ago * Makefile.in (.m.c:): Added .SUFFIXES : .m
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.

30 years ago * ld.bootstrap/bootstrap.exp, lib/ld.exp: Replace error proc
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.

30 years ago * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
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.

30 years ago * lib/gas-defs.exp: Replace error proc calls with perror calls.
Bill Cox [Tue, 17 May 1994 21:54:41 +0000 (21:54 +0000)]
* lib/gas-defs.exp: Replace error proc calls with perror calls.

30 years ago * config/default.exp, config/unix.exp: Replace error
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.

30 years ago * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
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.

30 years ago * config/tc-hppa.c (pa_parse_fp_cmp_cond): Report an error
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.

30 years agoFix a sanitization screwup.
Stan Shebs [Tue, 17 May 1994 16:59:33 +0000 (16:59 +0000)]
Fix a sanitization screwup.

30 years agoMon May 16 19:00:50 1994 Stan Shebs (shebs@andros.cygnus.com)
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.

30 years ago * emultempl/hppaelf.em: Change all references of
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.

30 years ago * bfd-in2.h: Rebuilt.
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.

30 years ago * config/tc-hppa.c: Change .hppa_unwind to .PARISC.unwind
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.

30 years ago * gas/hppa/reloc/reloc.exp: Tweak expected output to match new
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.

30 years ago * common.h (EM_HPPA): Delete.
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.

30 years agoFix typo in last check-in.
Jeff Law [Mon, 16 May 1994 16:35:36 +0000 (16:35 +0000)]
Fix typo in last check-in.

30 years ago * libhppa.h (hppa_field_adjust): Avoid adding constant_value into
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.

30 years agoSat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
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.

30 years ago * source.c (find_source_lines): Always use code that was #ifdef
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.

30 years ago * aoutx.h (add_to_stringtab): Use BFD_ASSERT not assert. This
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.

30 years ago * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
Ian Lance Taylor [Sat, 14 May 1994 03:26:26 +0000 (03:26 +0000)]
* bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.

30 years ago * bout.c (b_out_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR.
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.

30 years ago * compile.c (decode): Fix typo (16 bit branches).
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.

30 years ago * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
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.

30 years agoPassdown -S to linker.
Steve Chamberlain [Fri, 13 May 1994 20:30:54 +0000 (20:30 +0000)]
Passdown -S to linker.

30 years ago * Makefile.in (Move HOST_PREFIX_1 and friends up so
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.

30 years agoRewrite history.
Ian Lance Taylor [Fri, 13 May 1994 18:51:52 +0000 (18:51 +0000)]
Rewrite history.

30 years agoFix typo in last entry
Jim Kingdon [Fri, 13 May 1994 18:47:34 +0000 (18:47 +0000)]
Fix typo in last entry

30 years ago gcc -Wall lint:
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.

30 years ago * Makefile.in (sysdep.h): Copy Ian's version of this from
Bill Cox [Fri, 13 May 1994 18:15:46 +0000 (18:15 +0000)]
* Makefile.in (sysdep.h): Copy Ian's version of this from
  progressive/bfd/Makefile.in.

30 years ago * ldlang.c (print_output_section_statement): Change ``no attached
Ian Lance Taylor [Fri, 13 May 1994 18:01:59 +0000 (18:01 +0000)]
* ldlang.c (print_output_section_statement): Change ``no attached
output section'' message slightly.
(lang_do_assignments): Don't recurse down if there is no real
section.

30 years ago * Makefile.in (stmp-bfd.h): Add an 'if' to mask a harmless
Bill Cox [Fri, 13 May 1994 17:52:46 +0000 (17:52 +0000)]
* Makefile.in (stmp-bfd.h): Add an 'if' to mask a harmless
  grep error.  Already in progressive/bfd/Makefile.in.

30 years ago * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
Ian Lance Taylor [Fri, 13 May 1994 17:06:49 +0000 (17:06 +0000)]
* config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
match corresponding change in emulation templates.
* config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
* config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.

30 years ago * config/mipsbelf.mt (SELECT_VECS): Add ecoff_big_vec and
Ian Lance Taylor [Fri, 13 May 1994 14:53:07 +0000 (14:53 +0000)]
* config/mipsbelf.mt (SELECT_VECS): Add ecoff_big_vec and
ecoff_little_vec since Irix 5 supports ECOFF executables.

30 years agoChanges for MacGDB:
Stan Shebs [Fri, 13 May 1994 00:31:31 +0000 (00:31 +0000)]
Changes for MacGDB:

Thu May 12 17:04:58 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
(READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
(TSOBS): Don't compile inflow.c.
(all, install): Add MacGDB.
* main.c (main): Do Mac-specific init and command loop if a
standalone app, skip full option help message if compiling
with MPW C.
(gdb_readline): If MPW, add a newline after the (gdb) prompt.
* utils.c (_initialize_utils): If MPW, don't try to use termcap to
compute the window size.
* config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
fflush): Define as macros that expand into hacked_... versions.
(StandAlone, mac_app): Declare.
* macgdb.r (SIZE): Set the default partition to 4000K.
* mac-xdep.c (readline.h, history.h): Include.
(terminal.h): Don't include.
(mac_app): Define.
(gdb_has_a_terminal): Define Mac-specific version.
(do_keyboard_command): Simplify search for command string.
(readline): Define as gdb_readline.
Add other history/readline stubs to make main gdb link.
(hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
hacked_fputc, hacked_fflush): New functions, intercept output to
stdout and stderr, send to console window.

30 years ago * config/makefile.rel.in: : Add comment lines
Bill Cox [Thu, 12 May 1994 21:16:41 +0000 (21:16 +0000)]
* config/makefile.rel.in: : Add comment lines
          to Sanitize out CHILL references unless keep-chill
          was specified.

30 years ago * .Sanitize: Drop the gdb.t30 and gdb.t31 directories
Bill Cox [Thu, 12 May 1994 21:08:47 +0000 (21:08 +0000)]
* .Sanitize: Drop the gdb.t30 and gdb.t31 directories
  unless keep-chill was specified on the command line.
* Makefile.in: Add comment lines to Sanitize out CHILL
  references unless keep-chill was specified.

30 years agoRemove CVS conflict markers from file
Jim Kingdon [Thu, 12 May 1994 18:13:17 +0000 (18:13 +0000)]
Remove CVS conflict markers from file

30 years ago * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
Jeff Law [Thu, 12 May 1994 18:02:27 +0000 (18:02 +0000)]
* hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
elf_unwind_entries are always initialized.

30 years ago * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
Jeff Law [Thu, 12 May 1994 16:50:43 +0000 (16:50 +0000)]
    * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
        stubs which return directly to the caller rather than to the stub
        itself.

30 years agoWed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Thu, 12 May 1994 03:21:48 +0000 (03:21 +0000)]
Wed May 11 20:11:51 1994  Stan Shebs  (shebs@andros.cygnus.com)

* c-exp.y (yyerror): Display a more informative error message.
* ch-exp.y (yyerror): Ditto, don't use global yychar.
* m2-exp.y (yyerror): Ditto.

30 years agonote name change of cdtest-bar.cc
Ken Raeburn [Wed, 11 May 1994 23:49:35 +0000 (23:49 +0000)]
note name change of cdtest-bar.cc

30 years ago8.3 name fixes: ld.cdtest/cdtest-func.cc -> cdtest-bar.cc
Ken Raeburn [Wed, 11 May 1994 23:49:21 +0000 (23:49 +0000)]
8.3 name fixes: ld.cdtest/cdtest-func.cc -> cdtest-bar.cc

30 years ago* ldver.c (ldversion): Updated version number.
Ken Raeburn [Wed, 11 May 1994 23:10:34 +0000 (23:10 +0000)]
* ldver.c (ldversion): Updated version number.

* cdtest-foo.cc: Use explicit "#pragma implementation".
* cdtest-bar.cc: Renamed from cdtest-func.cc.
* Makefile.in: References to cdtest-func.o changed to cdtest-bar.o.

30 years ago Don't create unnecessary output sections.
Ian Lance Taylor [Wed, 11 May 1994 20:29:21 +0000 (20:29 +0000)]
Don't create unnecessary output sections.
* ldlang.c (out_bfd_get_section_by_name): Remove.
(wild_section): Call bfd_get_section_by_name rather than
our_bfd_get_section_by_name.  Don't call wild_doit if there is no
section.
(lang_create_output_section_statements): Remove.
(map_input_to_output_sections): For several cases, call init_os if
it has not already been called.
(lang_size_sections): If output section was not created, skip it.
(lang_process): Don't call lan_create_output_section_statements.
(lang_place_orphans): Skip files with just_syms_flags set to true.
* ld.texinfo: Document change.

30 years ago * ecoff.c (ecoff_find_nearest_line): Handle fdr.adr != pdr.adr
Ian Lance Taylor [Wed, 11 May 1994 16:46:04 +0000 (16:46 +0000)]
* ecoff.c (ecoff_find_nearest_line): Handle fdr.adr != pdr.adr
correctly.

30 years agoChange kill-region to delete-region
Jim Kingdon [Wed, 11 May 1994 15:03:35 +0000 (15:03 +0000)]
Change kill-region to delete-region

30 years ago * Makefile.in (stmp-bfd.h): Use || instead of ; to force SunOS
Ian Lance Taylor [Wed, 11 May 1994 04:32:52 +0000 (04:32 +0000)]
* Makefile.in (stmp-bfd.h): Use || instead of ; to force SunOS
make to invoke the shell.

30 years agoTue May 10 18:22:06 1994 Jason Molenda (crash@sendai.cygnus.com)
Jason Molenda [Wed, 11 May 1994 01:28:18 +0000 (01:28 +0000)]
Tue May 10 18:22:06 1994  Jason Molenda    (crash@sendai.cygnus.com)

        * objcopy.c (copy_section): Set section size correctly if using
        interleave.

30 years agoTrivial change to prepare for a real one
Stan Shebs [Tue, 10 May 1994 19:01:48 +0000 (19:01 +0000)]
Trivial change to prepare for a real one

30 years ago * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
Ian Lance Taylor [Tue, 10 May 1994 18:43:51 +0000 (18:43 +0000)]
* maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.

30 years ago * ldlang.c (wild_doit): Don't bother initializing the vma and
Ian Lance Taylor [Tue, 10 May 1994 18:33:44 +0000 (18:33 +0000)]
* ldlang.c (wild_doit): Don't bother initializing the vma and
section size.  Don't special case SEC_SHARED_LIBRARY.
(lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
specially.

30 years ago * section.c (SEC_COFF_SHARED_LIBRARY): Renamed from
Ian Lance Taylor [Tue, 10 May 1994 18:29:19 +0000 (18:29 +0000)]
* section.c (SEC_COFF_SHARED_LIBRARY): Renamed from
SEC_SHARED_LIBRARY for clarity.  Changed all uses.
* bfd-in2.h: Rebuilt.
* coffcode.h (sec_to_styp_flags): If SEC_COFF_SHARED_LIBRARY is
set, set STYP_NOLOAD.
* coffgen.c (coff_section_from_bfd_index): Don't get an assertion
failure because of a bad shared library.

30 years agoTue May 10 11:20:54 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 10 May 1994 18:26:39 +0000 (18:26 +0000)]
Tue May 10 11:20:54 1994  Stan Shebs  (shebs@andros.cygnus.com)

* configure.in (sparclite): Match on sparclite*-*-*.

30 years agoTypo.
Ian Lance Taylor [Tue, 10 May 1994 02:04:58 +0000 (02:04 +0000)]
Typo.

30 years ago * linker.c: Add missing comment terminator.
Bill Cox [Tue, 10 May 1994 01:58:35 +0000 (01:58 +0000)]
* linker.c: Add missing comment terminator.

30 years ago * linker.c (_bfd_generic_link_add_one_symbol): If hashp and *hashp
Ian Lance Taylor [Mon, 9 May 1994 23:22:00 +0000 (23:22 +0000)]
* linker.c (_bfd_generic_link_add_one_symbol): If hashp and *hashp
are not NULL, assume the caller has already looked up the symbol
in the hash table and has stored the entry in *hashp.
(generic_link_add_symbol_list): Set h to NULL before calling
_bfd_generic_link_add_one_symbol.
* ecoff.c (ecoff_link_add_externals): Likewise.

30 years ago * readline.c (_rl_set_screen_size): Don't compile if __GO32__ is
Ian Lance Taylor [Mon, 9 May 1994 23:01:56 +0000 (23:01 +0000)]
* readline.c (_rl_set_screen_size): Don't compile if __GO32__ is
defined.
* rltty.c (control_meta_key): Likewise.
* parens.c: If __GO32__ is defined, undefine FD_SET.
* signals.c: Include SIGWINCH handling in the set of things which
is not done if HANDLE_SIGNALS is not set.

30 years ago * display.c: If __GO32__ is defined, include <sys/pc.h>.
Ian Lance Taylor [Mon, 9 May 1994 22:36:24 +0000 (22:36 +0000)]
* display.c: If __GO32__ is defined, include <sys/pc.h>.

30 years ago * readline.c (readline_default_bindings): Don't compile if
Ian Lance Taylor [Mon, 9 May 1994 22:31:26 +0000 (22:31 +0000)]
* readline.c (readline_default_bindings): Don't compile if
__GO32__ is defined.
* rltty.c (rltty_set_default_bindings): Likewise.

30 years ago * elfcode.h: Include bfdlink.h. Added several new functions to do
Ian Lance Taylor [Mon, 9 May 1994 16:58:36 +0000 (16:58 +0000)]
* elfcode.h: Include bfdlink.h.  Added several new functions to do
linking.
(ELF_R_TYPE): Define.
(bfd_add_to_strtab): Return unsigned long.  Change check for
realloc failure.
(elf_fake_sections): Check return value of bfd_add_to_strtab.
(elf_compute_section_file_positions): Add link_info argument.
Call elf_backend_begin_write_processing hook and prep_headers
here.  Only call swap_out_syms if link_info is NULL.  Set up
.shstrtab section here.  Pass dosyms argument to
assign_file_positions_except_relocs.  Set output_has_begun flag.
(assign_file_positions_for_symtab_and_strtabs): Add dosyms
argument, and use it to control setting .symtab and .strtab file
positions.
(assign_file_positions_except_relocs): Add dosyms argument, and
pass it on.
(prep_headers): Check return value of bfd_add_to_strtab.
(swap_out_syms): Likewise.  Also, don't set up .shstrtab here.
(NAME(bfd_elf,write_object_contents)): Some calls moved into
elf_compute_section_file_positions.
(elf_set_section_contents): Likewise.
(elf_slurp_symbol_table): SHN_LORESERV corrected to SHN_LORESERVE.
* libelf.h: Include bfdlink.h.
(struct elf_backend_data): Add fields collect,
elf_add_symbol_hook, elf_backend_relocate_section.
(struct bfd_elf_section_data): Add field rel_hashes.
(struct elf_obj_tdata): Remove fields internal_syms and symbols.
Add field sym_hashes.
(obj_symbols, obj_internal_syms): Remove definitions.
(elf_sym_hashes): Define.
(struct elf_link_hash_entry): Define.
(struct elf_link_hash_table): Define.
(elf_link_hash_lookup): Define.
(elf_link_hash_traverse): Define.
(elf_hash_table): Define.
(_bfd_elf_link_hash_table_create): Declare.
(bfd_elf32_bfd_link_add_symbols): Declare.
(bfd_elf32_bfd_final_link): Declare.
(bfd_elf64_bfd_link_add_symbols): Declare.
(bfd_elf64_bfd_final_link): Declare.
* elf.c: Include bfdlink.h.
(elf_link_hash_newfunc): New function.
(_bfd_elf_link_hash_table_create): New function.
* elf32-target.h (elf_backend_relocate_section): If not defined,
define as 0 and use generic linker.  Otherwise, use ELF backend
linker.
(elf_backend_collect): If not defined, define as false.
(elf_backend_add_symbol_hook): If not defined, define as 0.
(elf32_bed): Initialize new fields.
* elf64-target.h: Same changes as elf32-target.h.
* elf32-i386.c: Include bfdlink.h.
(elf_i386_relocate_section): New function.
(elf_backend_relocate_section): Define.
* elf32-sparc.c: Include bfdlink.h.
(elf_info_to_howto): Change type of dst from Elf32_Internal_Rela
to Elf_Internal_Rela (they're the same type anyhow).
(elf_sparc_relocate_section): New function.
(elf_backend_relocate_section): Define.
* elf32-mips.c (elf_backend_collect): Define.

30 years agoRemove Delta68 support. Could not get copyright assignment for it.
Ian Lance Taylor [Mon, 9 May 1994 16:36:38 +0000 (16:36 +0000)]
Remove Delta68 support.  Could not get copyright assignment for it.
From now on, I'll get that first.

30 years agoFix typo in last change.
Steve Chamberlain [Mon, 9 May 1994 16:10:34 +0000 (16:10 +0000)]
Fix typo in last change.

30 years agoRemove debugging code.
Jim Kingdon [Sun, 8 May 1994 15:22:51 +0000 (15:22 +0000)]
Remove debugging code.

30 years agokeep gld960c.em
Ken Raeburn [Sun, 8 May 1994 05:38:24 +0000 (05:38 +0000)]
keep gld960c.em

30 years agokeep gld960coff.sh
Ken Raeburn [Sun, 8 May 1994 05:37:58 +0000 (05:37 +0000)]
keep gld960coff.sh

30 years agodeal with file renaming, new files
Ken Raeburn [Sun, 8 May 1994 05:37:17 +0000 (05:37 +0000)]
deal with file renaming, new files

30 years agoremove unneeded files
Ken Raeburn [Sun, 8 May 1994 05:21:37 +0000 (05:21 +0000)]
remove unneeded files

30 years agonote file renaming
Ken Raeburn [Sun, 8 May 1994 05:21:18 +0000 (05:21 +0000)]
note file renaming

30 years agoAdd a major mode for the breakpoints window.
Jim Kingdon [Sun, 8 May 1994 01:59:01 +0000 (01:59 +0000)]
Add a major mode for the breakpoints window.

30 years agoFix typo in gdb-goto-first-gdb-instance.
Jim Kingdon [Sun, 8 May 1994 01:21:24 +0000 (01:21 +0000)]
Fix typo in gdb-goto-first-gdb-instance.

Re-write gdb-look-for-tagged-buffer to avoid recursion (I was getting
errors because of too much nesting, obviously elisp lacks tail
recursion optimization)

Fix toggle-bp-this-line for new ways of communicating with gdb and
rename to gdb-toggle-bp-this-line.

30 years ago * a29k-dis.c (print_insn): Print 'x' type operand in hex.
Steve Chamberlain [Sun, 8 May 1994 00:19:06 +0000 (00:19 +0000)]
* a29k-dis.c (print_insn): Print 'x' type operand in hex.
* h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
* sh-dis.c (print_insn_sh): Don't recur endlessly if delay
slot insn is in a delay slot.
* z8k-opc.h: (resflg): Fix patterns.
* h8500-opc.h Fix CR insn patterns.

30 years agoDisable single quote strings.
Steve Chamberlain [Sat, 7 May 1994 23:51:30 +0000 (23:51 +0000)]
Disable single quote strings.

30 years agoDie.
Steve Chamberlain [Sat, 7 May 1994 23:48:50 +0000 (23:48 +0000)]
Die.

30 years ago * configure.in (target==go32): Don't build gdb.
Steve Chamberlain [Sat, 7 May 1994 23:48:27 +0000 (23:48 +0000)]
* configure.in (target==go32): Don't build gdb.
* dosrel: New directory.

30 years agoRestore changelog entries clobbered by last checkin.
Stan Shebs [Sat, 7 May 1994 20:11:44 +0000 (20:11 +0000)]
Restore changelog entries clobbered by last checkin.

30 years agoRestore changes clobbered by last check in.
Ian Lance Taylor [Sat, 7 May 1994 05:01:09 +0000 (05:01 +0000)]
Restore changes clobbered by last check in.

30 years agoIt's mh-lynxrs6k, not mh-lynxosrs6k.
Ian Lance Taylor [Sat, 7 May 1994 04:58:52 +0000 (04:58 +0000)]
It's mh-lynxrs6k, not mh-lynxosrs6k.

30 years agoNo, this file really should have been removed, not recreated.
Ian Lance Taylor [Sat, 7 May 1994 04:57:38 +0000 (04:57 +0000)]
No, this file really should have been removed, not recreated.

30 years agovarious changes for lynx.rs, ericsson, BNR.
David Henkel-Wallace [Sat, 7 May 1994 00:34:19 +0000 (00:34 +0000)]
various changes for lynx.rs, ericsson, BNR.