binutils-gdb.git
27 years ago * obstack.h: Update to current FSF version.
Ian Lance Taylor [Sun, 16 Mar 1997 00:00:59 +0000 (00:00 +0000)]
* obstack.h: Update to current FSF version.

27 years agoSat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Sat, 15 Mar 1997 23:17:46 +0000 (23:17 +0000)]
Sat Mar 15 18:10:38 1997  H.J. Lu  <hjl@lucon.org>

* ldemul.h (ldemul_list_emulations): Use full prototype.
* ldlang.c (print_one_symbol): Add declaration.
* ldlang.h (dprint_statements): Declare.
* ldmain.c (remove_output): Declare.
* ldmisc.c (vfinfo): Declare.
* ldwrite.c (clone_section): Declare.
(split_sections): Make static.  Declare.
* mri.c: Include libiberty.h.
(strdup): Don't declare.
(mri_alias): Use xstrdup rather than strdup.

27 years ago * arm-dis.c (print_insn_arm): Don't print instruction bytes.
Ian Lance Taylor [Sat, 15 Mar 1997 22:15:00 +0000 (22:15 +0000)]
* arm-dis.c (print_insn_arm): Don't print instruction bytes.
(print_insn_big_arm): Set bytes_per_chunk and display_endian.
(print_insn_little_arm): Likewise.

27 years ago Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
Ian Lance Taylor [Sat, 15 Mar 1997 21:50:56 +0000 (21:50 +0000)]
Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
* objdump.c: Include "demangle.h".
(do_demangle): New static variable.
(usage): Mention -C/--demangle.
(long_options): Add "demangle".
(objdump_print_symname): New static function.
(objdump_print_addr_with_sym): Use objdump_print_symname.
(disassemble_bytes): Likewise.
(dump_reloc_set): Likewise.
(dump_symbols): Demangle symbol name.
(main): Handle -C.
* binutils.texi, objdump.1: Document -C/--demangle.

27 years ago * objdump.c (usage): Mention --no-show-raw-insn.
Ian Lance Taylor [Sat, 15 Mar 1997 20:37:45 +0000 (20:37 +0000)]
* objdump.c (usage): Mention --no-show-raw-insn.
(long_options): Add "no-show-raw-insn".
(disassemble_bytes): Handle --no-show-raw-insn.
* binutils.texi, objdump.1: Document --no-show-raw-insn.

27 years ago * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
Ian Lance Taylor [Sat, 15 Mar 1997 20:27:16 +0000 (20:27 +0000)]
* elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
ELF local label syntax as well.

27 years ago * config.bfd (powerpc-*-beos*): New target.
Fred Fish [Sat, 15 Mar 1997 17:27:45 +0000 (17:27 +0000)]
* config.bfd (powerpc-*-beos*): New target.
* configure.in (powerpc-*-beos*): Add case that explicitly
does not set COREFILE for now.  A future BeOS version is
expected to support core files.
* configure: Regenerate with autoconf.

27 years ago * breakpoint.c (insert_breakpoints, watchpoint_check,
Peter Schauer [Sat, 15 Mar 1997 08:53:41 +0000 (08:53 +0000)]
* breakpoint.c (insert_breakpoints, watchpoint_check,
bpstat_stop_status):  Do not disable watchpoints going out of scope.
(insert_breakpoints):  Make sure that the current frame is valid
before calling find_frame_addr_in_frame_chain.

* top.c (setup_user_args):  Handle quotes and backslashes.
(print_gdb_version):  Update copyright year.

27 years ago * scripttempl/elfmips.sc: Change handling of data area when
Ian Lance Taylor [Sat, 15 Mar 1997 02:31:01 +0000 (02:31 +0000)]
* scripttempl/elfmips.sc: Change handling of data area when
generating a shared library to not skip a large block of memory.
From Per Fogelstrom <pefo@cvs.openbsd.org>.

27 years ago * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
Ian Lance Taylor [Sat, 15 Mar 1997 02:16:30 +0000 (02:16 +0000)]
* elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
  seen with a local symbol, rather than crashing.

27 years ago * config/tc-mips.c (md_estimate_size_before_relax): Handle the
Ian Lance Taylor [Sat, 15 Mar 1997 02:14:44 +0000 (02:14 +0000)]
* config/tc-mips.c (md_estimate_size_before_relax): Handle the
case of a symbol equated to another symbol when using SVR4_PIC.

27 years ago * elfcode.h (elf_slurp_symbol_table): Don't try to read the
Ian Lance Taylor [Fri, 14 Mar 1997 21:46:39 +0000 (21:46 +0000)]
* elfcode.h (elf_slurp_symbol_table): Don't try to read the
version symbols if there aren't any.

27 years ago * Makefile.in (elfread.o): Depend upon elf-bfd.h and elf/mips.h.
Ian Lance Taylor [Fri, 14 Mar 1997 20:44:51 +0000 (20:44 +0000)]
* Makefile.in (elfread.o): Depend upon elf-bfd.h and elf/mips.h.

27 years ago * Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h.
Ian Lance Taylor [Fri, 14 Mar 1997 20:34:08 +0000 (20:34 +0000)]
* Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h.

27 years ago * sparc.h: Include <ansidecl.h>. Update function declarations to
Ian Lance Taylor [Fri, 14 Mar 1997 20:22:46 +0000 (20:22 +0000)]
* sparc.h: Include <ansidecl.h>.  Update function declarations to
use prototypes, and to use const when appropriate.

27 years ago Based on patches from H.J. Lu <hjl@lucon.org>:
Ian Lance Taylor [Fri, 14 Mar 1997 20:21:19 +0000 (20:21 +0000)]
Based on patches from H.J. Lu <hjl@lucon.org>:
* i386-dis.c (fetch_data): Add prototype.
* m68k-dis.c (fetch_data): Add prototype.
(dummy_print_address): Add prototype.  Make static.
* ppc-opc.c (valid_bo): Add prototype.
* sparc-dis.c (build_hash_table): Add prototype.
(is_delayed_branch, compute_arch_mask): Add prototypes.
(print_insn_sparc): Make several local variables const.
(compare_opcodes): Change arguments to const PTR.  Add prototype.
* sparc-opc.c (arg): Change name field to be const.
(lookup_name, lookup_value): Add prototypes.  Change table and
name parameters to be const.
(sparc_encode_asi): Change name parameter to be const.
(sparc_encode_membar, sparc_encode_prefetch): Likewise.
(sparc_encode_sparclet_cpreg): Likewise.
(sparc_decode_asi): Change return type to be const.
(sparc_decode_membar, sparc_decode_prefetch): Likewise.
(sparc_decode_sparclet_cpreg): Likewise.

27 years ago * configure: Regenerated.
Tom Tromey [Fri, 14 Mar 1997 17:16:43 +0000 (17:16 +0000)]
    * configure: Regenerated.
        * configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.

27 years agoUpdate names
Andrew Cagney [Fri, 14 Mar 1997 16:51:21 +0000 (16:51 +0000)]
Update names

27 years agoForgot to update *-n.h to sim-n*.h
Andrew Cagney [Fri, 14 Mar 1997 16:48:11 +0000 (16:48 +0000)]
Forgot to update *-n.h to sim-n*.h

27 years agoAdd comment to changelog
Michael Meissner [Fri, 14 Mar 1997 16:24:02 +0000 (16:24 +0000)]
Add comment to changelog

27 years agoRegenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the system...
Michael Meissner [Fri, 14 Mar 1997 16:21:57 +0000 (16:21 +0000)]
Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the system call trap, keeping 0 temporarily

27 years agoAdd a number of per-simulator options: hostendian, endian, inline, warnings.
Andrew Cagney [Fri, 14 Mar 1997 15:13:58 +0000 (15:13 +0000)]
Add a number of per-simulator options: hostendian, endian, inline, warnings.
Rename *-n.h files to be dos compatible

27 years ago * utils.c(pollquit, notice_quit): If _WIN32, limit test for cntl-C
Dawn Perchik [Fri, 14 Mar 1997 06:05:04 +0000 (06:05 +0000)]
* utils.c(pollquit, notice_quit): If _WIN32, limit test for cntl-C
to wingdb.
(initialize_utils): If _WIN32, don't call ScreenRows and ScreenCols
except under wingdb.  (Contributed by Martin Hunt).

27 years ago* ld-insn.c (parse_insn_format): Accept '*' as an alternative of
Andrew Cagney [Fri, 14 Mar 1997 02:00:07 +0000 (02:00 +0000)]
* ld-insn.c (parse_insn_format): Accept '*' as an alternative of
`/' in bit fields.  `/' denotes a wild bit.

27 years ago * coff-tic80.c (coff_rtype_to_howto): Define
Fred Fish [Thu, 13 Mar 1997 23:40:30 +0000 (23:40 +0000)]
* coff-tic80.c (coff_rtype_to_howto): Define
(coff_tic80_rtype_to_howto): Clone generic coff version and
add code to handle the funky TI "internal relocations".

27 years agoAdd some more comments.
David Edelsohn [Thu, 13 Mar 1997 21:12:22 +0000 (21:12 +0000)]
Add some more comments.

27 years ago * interp.c (sim_open): New SIM_DESC result. Argument is now
David Edelsohn [Thu, 13 Mar 1997 21:01:38 +0000 (21:01 +0000)]
* interp.c (sim_open): New SIM_DESC result.  Argument is now
in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
David Edelsohn [Thu, 13 Mar 1997 20:59:29 +0000 (20:59 +0000)]
* sim_calls.c (sim_open): New SIM_DESC result.  Argument is now
in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * interp.c (sim_open): New SIM_DESC result. Argument is now
David Edelsohn [Thu, 13 Mar 1997 20:55:26 +0000 (20:55 +0000)]
* interp.c (sim_open): New SIM_DESC result.  Argument is now
in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * compile.c (sim_open): New SIM_DESC result. Argument is now in
David Edelsohn [Thu, 13 Mar 1997 20:49:39 +0000 (20:49 +0000)]
* compile.c (sim_open): New SIM_DESC result.  Argument is now in
argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * interf.c (sim_open): New SIM_DESC result. Argument is now in
David Edelsohn [Thu, 13 Mar 1997 20:47:43 +0000 (20:47 +0000)]
* interf.c (sim_open): New SIM_DESC result.  Argument is now in
argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * interp.c: Delete redundant prototypes of sim_foo fns.
David Edelsohn [Thu, 13 Mar 1997 20:44:07 +0000 (20:44 +0000)]
* interp.c: Delete redundant prototypes of sim_foo fns.
(sim_open): New SIM_DESC result.  Argument is now in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * wrapper.c (sim_open): Has result now.
David Edelsohn [Thu, 13 Mar 1997 20:40:53 +0000 (20:40 +0000)]
* wrapper.c (sim_open): Has result now.
(sim_*): New SIM_DESC argument.

27 years ago * configure: Regenerated.
Tom Tromey [Thu, 13 Mar 1997 20:39:56 +0000 (20:39 +0000)]
* configure: Regenerated.
* configure.in: Run AC_CONFIG_AUX_DIR before AC_CANONICAL_SYSTEM.

* config.in: Regenerated.

* acconfig.h (START_INFERIOR_TRAPS_EXPECTED, sys_quotactl,
HAVE_HPUX_THREAD_SUPPORT): Define.

* gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
TCL_ALL_EVENTS.

* configure: Regenerated.
* configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
LIBS.

27 years ago * run.c: #include "libiberty.h".
David Edelsohn [Thu, 13 Mar 1997 20:37:15 +0000 (20:37 +0000)]
* run.c: #include "libiberty.h".
(main): New locals sd,no_args,sim_argv.
Run buildargv on -a option.  Pass argv to sim_open, argv[0]
is program name.  Update call to sim_set_callbacks.
Record result of sim_open, pass to other sim_foo routines.

27 years agoFix problems in setting the carry bit
Michael Meissner [Thu, 13 Mar 1997 20:30:50 +0000 (20:30 +0000)]
Fix problems in setting the carry bit

27 years ago * remote-sim.h (sim_state, SIM_DESC): New types.
David Edelsohn [Thu, 13 Mar 1997 20:28:26 +0000 (20:28 +0000)]
* remote-sim.h (sim_state, SIM_DESC): New types.
(sim_open): Return a `descriptor' as result.
(*): New argument of descriptor result from sim_open.
* remote-sim.c (gdbsim_desc): Renamed from gdbsim_open_p.
(gdbsim_open): Record result of sim_open in gdbsim_desc.
Pass argv list to sim_open, argv[0] = pseudo program name.
(*): Pass gdbsim_desc to sim_foo fns.

27 years ago * read.c (read_a_source_file): Call LISTING_NEWLINE before
Ian Lance Taylor [Thu, 13 Mar 1997 20:19:43 +0000 (20:19 +0000)]
* read.c (read_a_source_file): Call LISTING_NEWLINE before
HANDLE_CONDITIONAL_ASSEMBLY when handling an MRI line label.
PR 11746.

27 years ago * elflink.h (elf_link_add_object_symbols): Don't warn about type
Ian Lance Taylor [Thu, 13 Mar 1997 19:24:20 +0000 (19:24 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't warn about type
or size changes because of a weak symbol.
PR 11827.

27 years ago * cisco-core.c (SIGEMT): Define if not defined.
Ian Lance Taylor [Thu, 13 Mar 1997 19:11:06 +0000 (19:11 +0000)]
* cisco-core.c (SIGEMT): Define if not defined.

27 years agoAdd copyright, tweak some comments.
David Edelsohn [Thu, 13 Mar 1997 17:13:15 +0000 (17:13 +0000)]
Add copyright, tweak some comments.

27 years ago * config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
Ian Lance Taylor [Thu, 13 Mar 1997 16:21:34 +0000 (16:21 +0000)]
* config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
and md_elf_section_change_hook if they are defined.
(obj_elf_text, obj_elf_previous): Likewise.

27 years agoFix os_printf_filtered; Flush stdout after calling printf_filtered
Michael Meissner [Thu, 13 Mar 1997 16:04:50 +0000 (16:04 +0000)]
Fix os_printf_filtered; Flush stdout after calling printf_filtered

27 years agoNew directory, devo/sim/testsuite - loose (sanitize) it for the moment.
Andrew Cagney [Thu, 13 Mar 1997 04:22:38 +0000 (04:22 +0000)]
New directory, devo/sim/testsuite - loose (sanitize) it for the moment.

27 years agoWed Mar 12 21:44:19 1997 Eric Youngdale <eric@andante.jic.com>
Ian Lance Taylor [Thu, 13 Mar 1997 02:46:09 +0000 (02:46 +0000)]
Wed Mar 12 21:44:19 1997  Eric Youngdale  <eric@andante.jic.com>

* ld-elfvers/vers.exp, *: New tests for symbol versioning.
* config/default.exp: Set ar and strip.

27 years ago * elflink.h (elf_link_add_object_symbols): Use extsymoff when
Ian Lance Taylor [Thu, 13 Mar 1997 02:41:44 +0000 (02:41 +0000)]
* elflink.h (elf_link_add_object_symbols): Use extsymoff when
setting ever.  Sanity check the version number.  Sort out copying
flags and other information when adding an indirect symbol.
(NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
symbols added by the backend.  Clear the entire contents of the
versym section.
(elf_export_symbol): Ignore indirect symbols.
(elf_link_output_extsym): Accept a section without an owner in an
assert.
* elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
version count.  Correct the allocation of x_versymp.

27 years ago * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
Ian Lance Taylor [Thu, 13 Mar 1997 02:41:08 +0000 (02:41 +0000)]
* elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
Don't return bfd_und_section_ptr when info->shared.
(mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
(mips_elf_create_dynamic_sections): Correct type: ^= for &=.
(mips_elf_check_relocs): Resolve an indirect symbol in
sym_hashes.
(mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
SHN_MIPS_TEXT or SHN_MIPS_DATA.

27 years ago * ldmain.c (multiple_definition): Only skip the warning if the
Ian Lance Taylor [Thu, 13 Mar 1997 02:34:33 +0000 (02:34 +0000)]
* ldmain.c (multiple_definition): Only skip the warning if the
output section is absolute when the input section is not
absolute.

* ldlex.l: Accept whitespace in VERS_START state.  Warn about
invalid characters in VERS_* states.

27 years ago * simops.c: Fix carry bit computation for "add" instructions.
Jeff Law [Wed, 12 Mar 1997 22:20:13 +0000 (22:20 +0000)]
    * simops.c: Fix carry bit computation for "add" instructions.
More bugs exposed by new mn10300 compiler optimizations.

27 years ago * simops.c: Fix typos in bset insns. Fix arguments to store_mem
Jeff Law [Wed, 12 Mar 1997 22:05:49 +0000 (22:05 +0000)]
    * simops.c: Fix typos in bset insns.  Fix arguments to store_mem
        for bset imm8,(d8,an) and bclr imm8,(d8,an).
Bugs exposed by new compiler optimizations.

27 years ago * doc/as.texinfo (bss): Improve description of .bss section. In
Ian Lance Taylor [Wed, 12 Mar 1997 16:41:26 +0000 (16:41 +0000)]
* doc/as.texinfo (bss): Improve description of .bss section.  In
ELF or COFF, you are permitted to switch into the section.
(Comm): Rewrite description of common symbols.
(Lcomm): Mention that some targets permit a third argument.

27 years agoExtend callback interface to support vprintf, flush and error printing.
Andrew Cagney [Wed, 12 Mar 1997 12:27:30 +0000 (12:27 +0000)]
Extend callback interface to support vprintf, flush and error printing.
Corresponding change for gdb directory can be checked in later.

27 years ago * config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
Ian Lance Taylor [Wed, 12 Mar 1997 01:39:00 +0000 (01:39 +0000)]
* config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
PR 11847.

27 years ago * symbols.c (colon): Change type of local to int. From Alan Modra
Ian Lance Taylor [Tue, 11 Mar 1997 20:12:37 +0000 (20:12 +0000)]
* symbols.c (colon): Change type of local to int.  From Alan Modra
<alan@spri.levels.unisa.edu.au>.

27 years ago * config/tc-m88k.c (m88k_do_align): Don't use a special nop
Ian Lance Taylor [Tue, 11 Mar 1997 20:10:20 +0000 (20:10 +0000)]
* config/tc-m88k.c (m88k_do_align): Don't use a special nop
alignment if a zero fill pattern was explicitly specified.
* config/tc-sh.c (sh_do_align): Likewise.

27 years ago Removed, no longer used.
Bob Manson [Tue, 11 Mar 1997 19:45:29 +0000 (19:45 +0000)]
Removed, no longer used.

27 years ago * config/monitor.exp: Make sure we disconnect from the target.
Bob Manson [Tue, 11 Mar 1997 19:45:02 +0000 (19:45 +0000)]
* config/monitor.exp: Make sure we disconnect from the target.
Also, try a reboot/reload cycle instead of failing if the
load fails.

27 years ago * read.c (equals): Always permit register names to be redefined.
Ian Lance Taylor [Tue, 11 Mar 1997 18:30:11 +0000 (18:30 +0000)]
* read.c (equals): Always permit register names to be redefined.
PR 11787.

27 years ago * config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
Ian Lance Taylor [Tue, 11 Mar 1997 18:16:59 +0000 (18:16 +0000)]
* config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
mips16 symbol to be adjusted if a symbol is being subtracted from
it.

27 years agoFirst cut at supporting simulators in gdbserver:
Mark Alexander [Tue, 11 Mar 1997 15:49:20 +0000 (15:49 +0000)]
First cut at supporting simulators in gdbserver:

* configure, configure.in: Allow gdbserver to be configured
for cross-target environments.
* gdbserver/Makefile.in: Add simulator support.
* gdbserver/configure.in: Eliminate assumption that host == target.
Simplify using gdb/configure.tgt and gdb/configure.host.
Fix other minor configuration errors.
* gdbserver/low-sparc.c: Fix compile error.
* gdbserver/remote-utils.c: Eliminate assumption that registers
and addresses are four bytes.  Fix minor compile errors and warnings.
* gdbserver/server.c: Rewrite numerous instances of identical code
for starting inferior processes to call new function start_inferior.
Eliminate assumption that registers and addresses are four bytes.
* gdbserver/server.h: Add missing prototypes to eliminate compiler
warnings.
* gdbserver/low-sim.c: New file to mate gdbserver with simulators.
* config/mips/vr5000.mt: Add Vr5000 simulator support to gdbserver.
* config/i386/linux.mh: Eliminate gdbserver support as a first step
in moving such support from host to target makefile fragments.
* config/i386/linux.mt: Move gdbserver support here from linux.mh.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Tue, 11 Mar 1997 06:46:46 +0000 (06:46 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
* elf.c (bfd_elf_print_symbol): Correct errors in last change.
* elflink.h (elf_link_add_object_symbols): Handle cases in which a
versioned symbol appears in both a regular and a shared object.
(elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
appropriate.  Improve error message.
(struct elf_outext_info): Rename from elf_finfo_failed.  Change
all uses.  Add localsyms field.
(elf_bfd_final_link): When generating a shared library, call
elf_link_output_extsym to output all local symbols.
(elf_link_output_extsym): Handle symbols which were forced to
become local.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Tue, 11 Mar 1997 06:14:44 +0000 (06:14 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.c (obj_elf_symver): Check for duplicate or
illegal symbol version names.
(elf_frob_symbol): Check for external default versions.

27 years ago * Makefile.in (CHECK_X11_MODULES): Don't run check-tk.
Tom Tromey [Mon, 10 Mar 1997 20:41:04 +0000 (20:41 +0000)]
* Makefile.in (CHECK_X11_MODULES): Don't run check-tk.

27 years agoMon Mar 10 12:27:47 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Mon, 10 Mar 1997 20:33:35 +0000 (20:33 +0000)]
Mon Mar 10 12:27:47 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>

* symtab.h (INIT_SAL): New macro to initialize symtab_and_line,
to insure consistant initialization of unused fields to zero.
* symtab.c: replace initializations of sals with new macro INIT_SAL.
* breakpoint.c: ditto.
* infrun.c: ditto.
* infcmd.c: ditto.
* source.c: add call to INIT_SAL macro.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Mon, 10 Mar 1997 04:53:55 +0000 (04:53 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.h (struct elf_obj_sy): Define.
(OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct.  Change all
users.
* config/obj-elf.c (obj_elf_symver): Just record the name.
(obj_symbol_new_hook): Initialized versioned_name field.
(elf_frob_symbol): If there is a versioned_name, either rename the
symbol, or add an alias with that name.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Mon, 10 Mar 1997 04:43:42 +0000 (04:43 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* elf-bfd.h (elf_symbol_type): Add version field.
* elfcode.h (elf_slurp_symbol_table): Set version field.
* elflink.h (elf_link_add_object_symbols): When creating an
  indirect symbol for a default version symbol, set DEF_DYNAMIC if
  appropriate.  Set up an indirection from the nondefault version of
the symbol as well.
(NAME(bfd_elf,size_dynamic_sections)): Call
elf_link_assign_sym_version before checking whether there are any
versions.  Always record the version name as a dynamic symbol.
Initialize counters.
(elf_link_assign_sym_version): After finding a version, see if a
symbol should be forced to local scope.  Create a new version
definition if appropriate.
(elf_link_output_extsym): Correct indirect symbol handling.
* elf.c (bfd_elf_print_symbol): Print version information.
(bfd_section_from_shdr): Turn version sections into BFD sections.
(elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
if sh_info is not already set.
(_bfd_elf_copy_private_section_data): Copy sh_info for version
sections.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
_bfd_stringtab_add to copy the name into permanent memory if
appropriate.

27 years agoSun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
Ian Lance Taylor [Mon, 10 Mar 1997 04:07:24 +0000 (04:07 +0000)]
Sun Mar  9 23:06:35 1997  Eric Youngdale  <eric@andante.jic.com>

* ldgram.y (vers_node): Correct typo of '('  for '{'.

27 years ago * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
Fred Fish [Sat, 8 Mar 1997 16:23:57 +0000 (16:23 +0000)]
* scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
rather than _start.
(__edata): Define this rather than "edata".
(__end): Define this rather than "end".

27 years ago * sparc-tdep.c (isbranch): Always handle v9 branch instructions,
Peter Schauer [Sat, 8 Mar 1997 08:18:02 +0000 (08:18 +0000)]
* sparc-tdep.c (isbranch):  Always handle v9 branch instructions,
they might get used on 32 bit targets as well.

27 years ago * gdb.base/default.exp: Don't set match_max.
Bob Manson [Fri, 7 Mar 1997 22:00:02 +0000 (22:00 +0000)]
* gdb.base/default.exp: Don't set match_max.
* gdb.base/help.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/signals.exp: Ditto.

* config/monitor.exp(gdb_load): If gdb,use_standard_load is
set, use remote_ld to download the testcase instead of
the GDB loader.

27 years ago * coffcode.h (bfd_coff_backend_data): Change
Ian Lance Taylor [Fri, 7 Mar 1997 17:45:43 +0000 (17:45 +0000)]
* coffcode.h (bfd_coff_backend_data): Change
_bfd_coff_compute_section_file_positions to return a boolean
value.  Change all callers.
(coff_compute_section_file_positions): Change return type to
boolean.  If the size of the last section changed, then output a
zero byte at the end of the file.
* libcoff.h: Rebuild.
PR 11806.

27 years agoFri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Fri, 7 Mar 1997 16:57:21 +0000 (16:57 +0000)]
Fri Mar  7 11:55:31 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.

27 years ago * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
Ian Lance Taylor [Fri, 7 Mar 1997 16:50:22 +0000 (16:50 +0000)]
* xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
for at least 6 output symbols.
(xcoff_write_global_symbol): When emitting TOC entry relocs, also
emit a TC csect to represent the space they take up.  For an XO
symbol, just emit a reference, not a csect.
PR 11793.

27 years agoUpdate copyrights.
Jeff Law [Fri, 7 Mar 1997 16:11:48 +0000 (16:11 +0000)]
Update copyrights.

27 years agox
Ian Lance Taylor [Fri, 7 Mar 1997 15:51:28 +0000 (15:51 +0000)]
x

27 years ago * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
Ian Lance Taylor [Fri, 7 Mar 1997 15:50:33 +0000 (15:50 +0000)]
* Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
Solaris doesn't like the combined options, and the -f is
unnecessary.

27 years ago * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
Ian Lance Taylor [Fri, 7 Mar 1997 15:38:12 +0000 (15:38 +0000)]
* elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
handling when little endian.

27 years agoNew files:
Andrew Cagney [Fri, 7 Mar 1997 09:15:56 +0000 (09:15 +0000)]
New files:
sim-io - interface to external IO
sim-events - event queue management
sim-core - hardware memory model (device
support optional but comming
soon).

27 years agoExtend bit and endian operators.
Andrew Cagney [Fri, 7 Mar 1997 09:08:07 +0000 (09:08 +0000)]
Extend bit and endian operators.

27 years agoClean up.
Andrew Cagney [Fri, 7 Mar 1997 08:57:02 +0000 (08:57 +0000)]
Clean up.

27 years agoLoose the bugs file.
Andrew Cagney [Fri, 7 Mar 1997 07:34:19 +0000 (07:34 +0000)]
Loose the bugs file.

27 years agoupdate copyrights.
Jeff Law [Fri, 7 Mar 1997 01:20:29 +0000 (01:20 +0000)]
update copyrights.

27 years ago * config/tc-mn10300.c (md_relax_table): Define.
Jeff Law [Fri, 7 Mar 1997 01:16:33 +0000 (01:16 +0000)]
    * config/tc-mn10300.c (md_relax_table): Define.
        (md_convert_frag): Implement.
        (md_assemble): Handle relaxable operands/instructions correctly.
        (md_estimate_size_before_relax): Implement.
        * config/tc-mn10300.h (TC_GENERIC_RELAX_TABLE): Define.
Branch relaxing for the mn10300.  Reduces the code size of our libraries by
about 11%.

27 years ago * config/tc-mn10200.c (md_relax_table): Fix typos.
Jeff Law [Fri, 7 Mar 1997 00:04:57 +0000 (00:04 +0000)]
    * config/tc-mn10200.c (md_relax_table): Fix typos.
Somthing I noticed while working on mn10300 relaxing code.

27 years agoUpdate copyright dates.
Jeff Law [Fri, 7 Mar 1997 00:00:09 +0000 (00:00 +0000)]
Update copyright dates.

27 years ago * mn10300-opc.c (IMM16_PCREL, SD8N_PCREL, D16_SHIFT): Mark these
Jeff Law [Thu, 6 Mar 1997 23:52:48 +0000 (23:52 +0000)]
    * mn10300-opc.c (IMM16_PCREL, SD8N_PCREL, D16_SHIFT): Mark these
        as relaxable.
For the relaxing assembler.

27 years agoFix typo in last change.
Jeff Law [Thu, 6 Mar 1997 23:13:31 +0000 (23:13 +0000)]
Fix typo in last change.

27 years ago Added and updated copyright notices to testsuite expect
Bob Manson [Thu, 6 Mar 1997 22:32:25 +0000 (22:32 +0000)]
Added and updated copyright notices to testsuite expect
scripts.

27 years ago * mn10300.h (MN10300_OPERAND_RELAX): Define.
Jeff Law [Thu, 6 Mar 1997 21:19:51 +0000 (21:19 +0000)]
    * mn10300.h (MN10300_OPERAND_RELAX): Define.
Bringing over changes from the mn10200 port.  Getting ready to start on
the relaxing assembler.

27 years ago * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
Jeff Law [Thu, 6 Mar 1997 21:17:49 +0000 (21:17 +0000)]
    * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
        (mn10300_elf_relocate_section): Likewise.
        (elf_backend_relocate_section): Define.
New style linker for the mn10300.

27 years ago * config/tc-mn10300.c (md_assemble): Don't use any MN10300 specific
Jeff Law [Thu, 6 Mar 1997 20:58:22 +0000 (20:58 +0000)]
    * config/tc-mn10300.c (md_assemble): Don't use any MN10300 specific
        relocs anymore.  Tweak fx_offset for pc-relative relocs.
Cleanup/simplification of mn10300 port.  Bring over changes from mn10200 port.

27 years ago * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
Jeff Law [Thu, 6 Mar 1997 20:55:44 +0000 (20:55 +0000)]
    * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
        relocs.  Replace them with generic PCREL_{8,16,32} relocs.
        (elf32_mn10300_howto_table): Likewise.
        (elf32_mn10300_reloc_map): Likewise.
        (bfd_elf32_mn10300_reloc): Delete unused function.
Simplify the mn10300 port.  Stuff I noticed while working on the mn10200.

27 years agoAdd d30v to cpus.
Martin Hunt [Thu, 6 Mar 1997 19:58:37 +0000 (19:58 +0000)]
Add d30v to cpus.

27 years agostart-sanitize-tic80
Fred Fish [Thu, 6 Mar 1997 19:53:29 +0000 (19:53 +0000)]
start-sanitize-tic80
* coff-tic80.c (rtype2howto): If passed a relocation type we don't
understand, just set the howto field to NULL, and the caller will
print an appropriate error message.
end-sanitize-tic80
* coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
block.  Use NULL for initializations of "ptr" rather than bare 0.
* coff-h8300.c: Fix typo in comment.
* coff-h8500.c: Ditto.
* coff-w65.c: Ditto
* coff-z8k.c: Ditto.

27 years ago More .Sanitize.
Bob Manson [Thu, 6 Mar 1997 07:29:40 +0000 (07:29 +0000)]
More .Sanitize.

27 years ago * config/vr5000.exp: New file.
Bob Manson [Thu, 6 Mar 1997 07:12:21 +0000 (07:12 +0000)]
* config/vr5000.exp: New file.

27 years ago * config/monitor.exp(gdb_target_monitor): Add pattern for
Bob Manson [Thu, 6 Mar 1997 05:30:54 +0000 (05:30 +0000)]
* config/monitor.exp(gdb_target_monitor): Add pattern for
"Ending remote" to detect errors in connecting.

* gdb.base/setshow.exp: Add .* within auto language test.

27 years ago * remote-mips.c (mips_exit_debug): Some IDT boards don't
Bob Manson [Thu, 6 Mar 1997 03:36:05 +0000 (03:36 +0000)]
* remote-mips.c (mips_exit_debug): Some IDT boards don't
send the full exit string.

Fixes a bug when trying to load to our mips IDT boards.

27 years ago * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
Bob Manson [Thu, 6 Mar 1997 01:51:44 +0000 (01:51 +0000)]
* lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
target feature.

27 years ago * cond.c (s_ifc): Call mri_comment_field and mri_comment_end when
Ian Lance Taylor [Wed, 5 Mar 1997 23:48:08 +0000 (23:48 +0000)]
* cond.c (s_ifc): Call mri_comment_field and mri_comment_end when
in MRI mode.
PR 11788