external/binutils.git
30 years ago* configure.in: Use mh-posix for sunos4.1*.
Jim Kingdon [Wed, 20 Apr 1994 17:46:13 +0000 (17:46 +0000)]
* configure.in: Use mh-posix for sunos4.1*.

30 years ago * xcoffread.c (xcoff_next_symbol_text): Don't return before
Jim Kingdon [Wed, 20 Apr 1994 17:07:11 +0000 (17:07 +0000)]
* xcoffread.c (xcoff_next_symbol_text): Don't return before
updating raw_symbol and symnum.  Return a value in the case where
we complained.

30 years ago * parse.c: Don't define block_found; it is defined in symtab.c.
Jim Kingdon [Wed, 20 Apr 1994 15:48:08 +0000 (15:48 +0000)]
* parse.c: Don't define block_found; it is defined in symtab.c.
* parser-defs.h: Add comment regarding block_found.

30 years ago * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
Jim Kingdon [Wed, 20 Apr 1994 15:39:20 +0000 (15:39 +0000)]
* dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
takes care of it.

30 years agoAdd missing #endif.
Jeff Law [Wed, 20 Apr 1994 06:01:44 +0000 (06:01 +0000)]
Add missing #endif.

30 years ago * configure.in: Add recognition of i[34]86-*-bsd386.
Bill Cox [Tue, 19 Apr 1994 19:14:15 +0000 (19:14 +0000)]
* configure.in: Add recognition of i[34]86-*-bsd386.

30 years ago * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
Jeff Law [Tue, 19 Apr 1994 16:47:30 +0000 (16:47 +0000)]
    * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
        argument.

30 years agodoc, obj-vms.c, ho-sysv.h changes
Ken Raeburn [Tue, 19 Apr 1994 01:21:07 +0000 (01:21 +0000)]
doc, obj-vms.c, ho-sysv.h changes

30 years agoadded info on warning functions &c
Ken Raeburn [Tue, 19 Apr 1994 01:20:04 +0000 (01:20 +0000)]
added info on warning functions &c

30 years ago* Makefile.in, as.texinfo: Renamed asdoc-config.texi to asconfig.texi.
Ken Raeburn [Tue, 19 Apr 1994 01:18:54 +0000 (01:18 +0000)]
* Makefile.in, as.texinfo: Renamed asdoc-config.texi to asconfig.texi.

* Makefile.in (install-info-as, install-info-gasp): Get file
names from source directory without pathname.

30 years ago(VMS_write_object_file): While looking for register mask, skip empty fill frags
Ken Raeburn [Tue, 19 Apr 1994 01:12:48 +0000 (01:12 +0000)]
(VMS_write_object_file): While looking for register mask, skip empty fill frags
caused by enabling listing output.

30 years agoInclude string.h.
Ken Raeburn [Tue, 19 Apr 1994 01:08:38 +0000 (01:08 +0000)]
Include string.h.

30 years ago * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
Jeff Law [Mon, 18 Apr 1994 21:29:28 +0000 (21:29 +0000)]
    * config/tc-hppa.c (pa_parse_space_stmt): Use the built-in
        defaults for defined, private, and spnum fields for the
        $TEXT$ and $PRIVATE$ spaces.  Do not clobber spnum.  Do
        not reset the segment if just updating a space.
        (pa_spaces_begin): Set BFD section flags for all built-in
        subspaces.

30 years ago * som.c (som_prep_headers): Get the space's number from the
Jeff Law [Mon, 18 Apr 1994 21:28:01 +0000 (21:28 +0000)]
    * som.c (som_prep_headers): Get the space's number from the
        backend private section data rather than target_index.
        (bfd_som_set_section_attributes): Store the space's number
        in the backend private section data rather than target_index.

        * som.h (som_copyable_section_data_struct): Add space_number.

30 years ago * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
Peter Schauer [Mon, 18 Apr 1994 20:26:32 +0000 (20:26 +0000)]
* dbxread.c (read_dbx_dynamic_symtab):  Relocate BFD symbols by
section vma. Do not read dynamic relocs for sun3 executables to
avoid BFD assertion message.

30 years ago * nm-hppab.h (KERNEL_U_ADDR): Define.
Jeff Law [Mon, 18 Apr 1994 17:18:12 +0000 (17:18 +0000)]
    * nm-hppab.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        * nm-hppah.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        (NEED_TEXT_START_END): Likewise.

        * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
        * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.
        * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.

        * hppa-tdep.c (read_unwind_info): Make static.
        (restore_pc_queue): Indirect through the target vector to
        reload the register state.

30 years agoFix typo.
Jeff Law [Mon, 18 Apr 1994 17:17:23 +0000 (17:17 +0000)]
Fix typo.

30 years ago * nm-hppab.h (KERNEL_U_ADDR): Define.
Jeff Law [Mon, 18 Apr 1994 17:16:56 +0000 (17:16 +0000)]
    * nm-hppab.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        nm-hppah.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        (NEED_TEXT_START_END): Likewise.

        * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
        * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.
        * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.

        * hppa-tdep.c (read_unwind_info): Make static.
        (restore_pc_queue): Indirect through the target vector to
        reload the register state.

30 years ago * paread.c (compare_unwind_entries): Delete function. It's been
Jeff Law [Sun, 17 Apr 1994 05:22:39 +0000 (05:22 +0000)]
    * paread.c (compare_unwind_entries): Delete function.  It's been
        moved into hppa-tdep.c.
        (read_unwind_info): Likewise.
        (pa_symfile_read): No longer call read_unwind_info.  The unwind
        tables will be read in as they are needed.

        * hppa-tdep.c (compare_unwind_entries): New function.
        (read_unwind_info, internalize_unwinds): Likewise.
        (find_unwind_entry): Read in unwind information on demand.

30 years ago * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
Ian Lance Taylor [Sun, 17 Apr 1994 03:43:18 +0000 (03:43 +0000)]
* ppc-opc.c (powerpc_opcodes): Correct fcir.  From David Edelsohn
(edelsohn@npac.syr.edu).

30 years ago* config.sub (sparc64-elf): Fix os.
David Edelsohn [Sat, 16 Apr 1994 19:19:24 +0000 (19:19 +0000)]
* config.sub (sparc64-elf): Fix os.

30 years ago * coff-a29k.c (reloc_processing): Always set the address of a
Ian Lance Taylor [Fri, 15 Apr 1994 22:22:07 +0000 (22:22 +0000)]
* coff-a29k.c (reloc_processing): Always set the address of a
R_IHCONST reloc to that of the immediately preceding R_IHIHALF.
gas does this anyhow, but some other assemblers seem to leave
garbage in the R_IHCONST address field.

30 years agoFri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Fri, 15 Apr 1994 21:55:49 +0000 (21:55 +0000)]
Fri Apr 15 11:53:46 1994  Stan Shebs  (shebs@andros.cygnus.com)

* source.c (DIRNAME_SEPARATOR): New macro, replaces all references
to : in search path processing.
* defs.h (qsort): Rename argument in prototype.
* symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
some compilers.
* breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
(false): Eliminate usages.

30 years ago * bfd/archive.c: Consistently use ARFMAG; from
Ian Lance Taylor [Fri, 15 Apr 1994 19:30:09 +0000 (19:30 +0000)]
* bfd/archive.c: Consistently use ARFMAG; from
schwab@issan.informatik.uni-dortmund.de (Andreas Schwab).
(_bfd_write_archive_contents): Use ARFMAG rather than '`' and
'\012'.
(bsd_write_armap): Likewise.
(coff_write_armap): Likewise.

30 years ago * h8500-tdep.c (initialize_h8500_tdep, large_command):
Steve Chamberlain [Fri, 15 Apr 1994 18:43:07 +0000 (18:43 +0000)]
* h8500-tdep.c (initialize_h8500_tdep, large_command):
All references to value changed to value_ptrlage_command is now
called big_command.
All references to value changed to value_ptr.
* remote-z8k.c (e7000_wait): Use target_waitstatus and SETSTOP
* remote-hms.c (hms_wait): Timeout after five seconds.
* ser-go32.c (dosasync_read): Poll if timeout < 0.
* config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
* config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.

30 years ago * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
Steve Chamberlain [Fri, 15 Apr 1994 18:41:27 +0000 (18:41 +0000)]
* config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.

30 years ago * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
Steve Chamberlain [Fri, 15 Apr 1994 18:41:05 +0000 (18:41 +0000)]
* config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.

30 years ago * ecoff.c (first_proc_ptr): New static variable.
Ian Lance Taylor [Fri, 15 Apr 1994 18:39:31 +0000 (18:39 +0000)]
* ecoff.c (first_proc_ptr): New static variable.
(add_procedure): Set first_proc_ptr if it hasn't been set.
(ecoff_build_lineno): If the first procedure does not start at
address zero, insert a dummy line to compensate.

30 years ago * ldlang.c (lang_size_sections): When relaxing, adjust the
Ian Lance Taylor [Fri, 15 Apr 1994 18:37:05 +0000 (18:37 +0000)]
* ldlang.c (lang_size_sections): When relaxing, adjust the
position of a padding statement, and adjust dot accordingly.

30 years ago * coff-mips.c (mips_relocate_section): When relaxing, adjust local
Ian Lance Taylor [Fri, 15 Apr 1994 18:35:32 +0000 (18:35 +0000)]
* coff-mips.c (mips_relocate_section): When relaxing, adjust local
relocs against the .text section as required.
* ecofflink.c (bfd_ecoff_debug_accumulate): When relaxing, adjust
PDR addresses as required.

30 years ago * ecoff.c (ecoff_emit_aggregate): Take fdr argument. Map fdr
Ian Lance Taylor [Fri, 15 Apr 1994 16:29:56 +0000 (16:29 +0000)]
* ecoff.c (ecoff_emit_aggregate): Take fdr argument.  Map fdr
index through rfd map if it exists.  Check for a couple of cases
which gdb handles specially.  Change all callers.
(ecoff_type_to_string): Take fdr argument rather than aux_ptr and
bigendian argument.  Change all callers.
(ecoff_print_symbol): Handle stStruct, stUnion and stEnum.

30 years ago * Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
Ian Lance Taylor [Fri, 15 Apr 1994 15:07:31 +0000 (15:07 +0000)]
* Makefile.in (bootstrap, bootstrap2, bootstrap3): Make gasp.new
as well as as.new.

30 years ago * Makefile.in (gcc-no-fixedincludes): Touch gcc/include/fixed, not
Ian Lance Taylor [Fri, 15 Apr 1994 03:34:25 +0000 (03:34 +0000)]
* Makefile.in (gcc-no-fixedincludes): Touch gcc/include/fixed, not
gcc/stmp-fixproto, to try to prevent fixproto from being run.

30 years ago* Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
Ken Raeburn [Thu, 14 Apr 1994 22:46:53 +0000 (22:46 +0000)]
* Makefile.in: Make $(OBJS) depend on $(ALL_OBJ_DEPS).
* configure.in: Set ALL_OBJ_DEPS in output Makefile.

Based on suggestions from <BAILEY@hmivax.humgen.upenn.edu> (Charles Bailey):
* vmsconf.sh: In generated file, get ".obj" suffix right, build source files
from other directories into objects in the current directory, and specify PSECT
attributes explicitly to linker.  Also added missing label.
* Makefile.in (stamp-mk.com): Reference new variable VMS_OTHER_OBJS for list of
non-local object files, instead of listing them here.
(VMS_OTHER_OBJS): New variable, added more libiberty files.
* make-gas.com: Regenerated.

* config/ho-vms.h (unlink): Define as delete.

* config-gas.com: Fix quoting on TARGET_CANONICAL definition.  Delete files
before creating them.

30 years ago* expr.c (operand): Try to parse "0f" and "0b" sequences as floating point and
Ken Raeburn [Thu, 14 Apr 1994 22:30:22 +0000 (22:30 +0000)]
* expr.c (operand): Try to parse "0f" and "0b" sequences as floating point and
binary numbers respectively; if it doesn't work, treat them as local labels.

30 years ago * Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.
Ian Lance Taylor [Thu, 14 Apr 1994 20:39:39 +0000 (20:39 +0000)]
* Makefile.in (de-stage1, de-stage2, de-stage3): Use rm -f.

30 years agoWed Apr 13 11:50:07 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Thu, 14 Apr 1994 18:09:12 +0000 (18:09 +0000)]
Wed Apr 13 11:50:07 1994  Stan Shebs  (shebs@andros.cygnus.com)

* coff-sparc.c (sparccoff_vec): Set minimum alignment power to 3.

30 years agoRemove assertion that was not intended to be checked in.
Ian Lance Taylor [Thu, 14 Apr 1994 17:59:14 +0000 (17:59 +0000)]
Remove assertion that was not intended to be checked in.

30 years agoconfig/tc-mips.[ch] changes.
Ian Lance Taylor [Thu, 14 Apr 1994 17:40:43 +0000 (17:40 +0000)]
config/tc-mips.[ch] changes.

30 years ago * config/tc-mips.h (DIFF_EXPR_OK): Define.
Ian Lance Taylor [Thu, 14 Apr 1994 17:39:55 +0000 (17:39 +0000)]
* config/tc-mips.h (DIFF_EXPR_OK): Define.
* config/tc-mips.c (macro_build): Permit BFD_RELOC_PCREL_LO16 for
certain cases of 'i', 'j' and 'o'.  Change 'u' to take an
argument, the reloc type.
(load_register): Pass reloc type to macro_build for 'u'.
(macro): Likewise.  For M_LA_AB permit a difference expression
when generating embedded PIC code between an arbitrary symbol and
a symbol in the .text section.
(mips_force_relocation): Force BFD_RELOC_PCREL_HI16_S and
BFD_RELOC_PCREL_LO16 to be emitted.
(md_apply_fix): Check that most relocs are not PC relative.
Handle BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
(tc_gen_reloc): Change #error to as_fatal.  Handle
BFD_RELOC_PCREL_LO16 and BFD_RELOC_PCREL_HI16_S.

30 years ago * coff-mips.c (mips_howto_table): Add dummy entries to account for
Ian Lance Taylor [Thu, 14 Apr 1994 17:33:22 +0000 (17:33 +0000)]
* coff-mips.c (mips_howto_table): Add dummy entries to account for
numbering changes in include/coff/mips.h.  Add entries for
MIPS_R_RELHI and MIPS_R_RELLO.
(mips_ecoff_swap_reloc_in): Handle an extra bit for the reloc type
when little endian.  Treat internal MIPS_R_RELLO or MIPS_R_RELHI
relocs like MIPS_R_SWITCH, and convert r_offset from 24 to 32
bits.
(mips_ecoff_swap_reloc_out): Likewise.
(mips_adjust_reloc_in): Handle internal MIPS_R_RELLO or
MIPS_R_RELHI relocs like MIPS_R_SWITCH.
(mips_adjust_reloc_out): Likewise.
(mips_relhi_addr, mips_relhi_addend): New static variables.
(mips_relhi_reloc, mips_rello_reloc): New functions.
(mips_bfd_reloc_type_lookup): Turn BFD_RELOC_PCREL_HI16_S into
MIPS_R_RELHI and turn BFD_RELOC_PCREL_LO16 into MIPS_R_RELLO.
(mips_relocate_hi): Rename from mips_relocate_refhi, and add pcrel
argument.  Changed all callers.
(mips_relocate_section): Rename got_reflo to got_lo and
reflo_int_rel to lo_int_rel.  Handle MIPS_R_RELLO and MIPS_R_RELHI
relocs.
(mips_relax_section): Adjust MIPS_R_RELHI/MIPS_R_RELLO pairs when
expanding a PC relative call.

30 years ago * reloc.c (bfd_reloc_code_real_type): Add BFD_RELOC_PCREL_HI16_S
Ian Lance Taylor [Thu, 14 Apr 1994 17:08:31 +0000 (17:08 +0000)]
* reloc.c (bfd_reloc_code_real_type): Add BFD_RELOC_PCREL_HI16_S
and BFD_RELOC_PCREL_LO16.
* bfd-in2.h: Rebuilt.

30 years ago * mips.h (RELOC_BITS3_TYPE_BIG): Changed from 0x1e to 0x3e.
Ian Lance Taylor [Thu, 14 Apr 1994 17:02:48 +0000 (17:02 +0000)]
* mips.h (RELOC_BITS3_TYPE_BIG): Changed from 0x1e to 0x3e.
(RELOC_BITS3_TYPEHI_LITTLE): Define.
(RELOC_BITS3_TYPEHI_SH_LITTLE): Define.
(MIPS_R_PCREL16): Change value from 8 to 12 to match Irix 4.
(MIPS_R_RELHI): Define.
(MIPS_R_RELLO): Define.
(MIPS_R_SWITCH): Change value from 9 to 22.

30 years ago * procfs.c (procfs_wait): Protect watchpoint code with appropriate
Jeff Law [Thu, 14 Apr 1994 14:16:56 +0000 (14:16 +0000)]
* procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.

30 years ago * procfs.c (procfs_wait): Protect watchpoint code with appropriate
Jeff Law [Thu, 14 Apr 1994 14:04:15 +0000 (14:04 +0000)]
* procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.

30 years ago * rltty.c (set_tty_settings): Don't set readline_echoing_p.
Jim Kingdon [Thu, 14 Apr 1994 04:35:06 +0000 (04:35 +0000)]
* rltty.c (set_tty_settings): Don't set readline_echoing_p.
(rl_deprep_terminal) [NEW_TTY_DRIVER]: Set readline_echoing_p.

30 years agoThere is no interesting Irix 5, or PowerPC, or RS/6000 support in the
Ian Lance Taylor [Thu, 14 Apr 1994 04:02:34 +0000 (04:02 +0000)]
There is no interesting Irix 5, or PowerPC, or RS/6000 support in the
linker, so don't mention them.

30 years ago(Arguments): Fix typo.
Jim Kingdon [Thu, 14 Apr 1994 03:35:57 +0000 (03:35 +0000)]
(Arguments): Fix typo.

30 years ago * gdb.texinfo: Refer to file names, not path names, per rms
Jim Kingdon [Thu, 14 Apr 1994 03:31:42 +0000 (03:31 +0000)]
* gdb.texinfo: Refer to file names, not path names, per rms
convention.

30 years ago * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
Jeff Law [Thu, 14 Apr 1994 03:13:52 +0000 (03:13 +0000)]
* config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
(target_{insert,remove}_watchpoint): Likewise.

30 years agoMake tests work again on alpha-osf1 and sun4 native.
Ken Raeburn [Wed, 13 Apr 1994 22:46:00 +0000 (22:46 +0000)]
Make tests work again on alpha-osf1 and sun4 native.

* config/unix.exp: Use nm.new, not nm, from newly built tree.

* binutils.all/objdump.exp: Add more wildcards to list of
single-letter options in pattern for usage message.

* binutils.all/nm.exp: Deleted debug-symbols test, since it only
works for a.out/stabs systems.  Fixed regexps to make underscores
optional, since some C compilers don't prepend them.  Deleted
check for foo.o symbol, since again some systems don't generate
it.

30 years ago * configure: Make file links cleanly even if Lynx fails on
Bill Cox [Wed, 13 Apr 1994 22:30:37 +0000 (22:30 +0000)]
* configure: Make file links cleanly even if Lynx fails on
          an NFS symlink (at least fail cleanly).

30 years ago * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
Jeff Law [Wed, 13 Apr 1994 22:06:01 +0000 (22:06 +0000)]
* gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
on local variables in recursive functions.

* gdb.t07/Makefile.in: Build the new test.

30 years ago * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
Jeff Law [Wed, 13 Apr 1994 22:02:52 +0000 (22:02 +0000)]
* config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
(HAVE_STEPPABLE_WATCHPOINT): Define.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(target_{insert,delete}_watchpoint): Define.

30 years ago * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
Jeff Law [Wed, 13 Apr 1994 21:57:00 +0000 (21:57 +0000)]
* breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
bp_watchpoint_scope breakpoints.
(struct breakpoint): Add val_chain and related_breakpoint fields
for use by watchpoints.

* breakpoint.c (within_scope): Delete.  No longer used.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
(target_{remove,insert}_watchpoint): Likewise.
(can_use_hardware_watchpoint): New function.
(remove_breakpoint): New function to remove a single breakpoint
or hardware watchpoint.
(insert_breakpoints): Handle insertion of hardware watchpoints.
Store a copy of the value chain derived from the watchpoint
expression.
(remove_breakpoints): Simplify by using remove_breakpoint.
(delete_breakpoint): Likewise.
(watchpoint_check): Delete the watchpoint and watchpoint scope
breakpoints when the watchpoint goes out of scope.  Save & restore
the current frame after checking watchpoints.
(breakpoint_init_inferior): Likewise (restarting the program
makes all local watchpoints go out of scope).
(bpstat_stop_status): Handle hardware watchpoints much like normal
watchpoints. Delete the watchpoint and watchpoint scope breakpoint
when the watchpoint goes out of scope.  Remove and reinsert all
breakpoints before returning if we stopped when a hardware watchpoint
fired.
(watch_command): Use a hardware watchpoint when possible.  If
watching a local expression, build a scope breakpoint too.
(map_breakpoint_numbers): Also call given function for any
related breakpoints.
(disable_breakpoint): Never disable a scope breakpoint.
(enable_breakpoint): Handle hardware breakpoints much like normal
breakpoints, but recompute the watchpoint_scope breakpoint's
frame and address  (if we have an associated scope breakpoint).
(read_memory_nobpt): Handle hardware watchpoints like normal
watchpoints.  When necessary handle watchpoint_scope breakpoints.
(print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
(clear_command, breakpoint_re_set_one, enable_command): Likewise.
(disable_command): Likewise.

* blockframe.c (find_frame_addr_in_frame_chain): New function.
Extern prototype added to frame.h

* infrun.c (wait_for_inferior): Set current_frame and select
a frame before checking if we stopped due to a hardare watchpoint
firing.  Handle stepping over hardware watchpoints.
(normal_stop): Remove unnecessary call to select_frame.

* value.h (value_release_to_mark): Declare.
* values.c (value_release_to_mark): New function.

* procfs.c (procfs_wait): Add cases for hardware watchpoints.
(procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.

* hppab-nat.c (hppa_set_watchpoint): New function.

* config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
(HAVE_STEPPABLE_WATCHPOINT): Define.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(target_{insert,delete}_watchpoint): Define.

30 years ago * objdump.c: Do an ifdef on __GO32__, not unix.
Ian Lance Taylor [Wed, 13 Apr 1994 14:54:18 +0000 (14:54 +0000)]
* objdump.c: Do an ifdef on __GO32__, not unix.

30 years agoFix typo.
Jeff Law [Wed, 13 Apr 1994 03:47:33 +0000 (03:47 +0000)]
Fix typo.

30 years ago * gdb.t15/gdbme.c (t_func_values): Do not compare function pointers
Jeff Law [Wed, 13 Apr 1994 03:46:42 +0000 (03:46 +0000)]
    * gdb.t15/gdbme.c (t_func_values): Do not compare function pointers
        directly.  Instead compare the return values from actual calls.

30 years agoTue Apr 12 18:25:13 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 13 Apr 1994 02:02:48 +0000 (02:02 +0000)]
Tue Apr 12 18:25:13 1994  Stan Shebs  (shebs@andros.cygnus.com)

* subsegs.c (subsegs_begin): Call memset with args in the correct
order.
(subseg_get): Clear newly allocated seginfo, set its pointer slots
to NULL instead of 0.

Fixes a problem observed in sparc-lynx progressive.

30 years ago * som.c (som_write_fixups): Always emit at least
Jeff Law [Tue, 12 Apr 1994 20:37:33 +0000 (20:37 +0000)]
    * som.c (som_write_fixups): Always emit at least
        one relocation for any non-bss section.

30 years ago * mh-irix4 (CC): Change -XNh1500 to -XNh2000.
Ian Lance Taylor [Tue, 12 Apr 1994 16:39:21 +0000 (16:39 +0000)]
* mh-irix4 (CC): Change -XNh1500 to -XNh2000.

30 years agoMon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
Stu Grossman [Tue, 12 Apr 1994 02:53:09 +0000 (02:53 +0000)]
Mon Apr 11 19:21:27 1994  Stu Grossman  (grossman at cygnus.com)

* xcoffread.c (read_xcoff_symtab):  Ignore symbols of class C_EXT,
smtyp XTY_LD, sclass XMC_DS (external data segment label).  They
often have the same names as debug symbols for functions, and
confuse lookup_symbol().

30 years ago * Makefile.in (check): Set TCL_LIBRARY for runtest.
Bill Cox [Mon, 11 Apr 1994 23:17:18 +0000 (23:17 +0000)]
* Makefile.in (check): Set TCL_LIBRARY for runtest.

30 years ago * elfcode.h (assign_file_positions_except_relocs): Don't require
Ian Lance Taylor [Mon, 11 Apr 1994 18:43:15 +0000 (18:43 +0000)]
* elfcode.h (assign_file_positions_except_relocs): Don't require
the file alignment to correspond to the page size when linking
with -N.

30 years ago * test-build.mk (CC): For mips-sgi-irix4, change -XNh1500 to
Jim Wilson [Mon, 11 Apr 1994 18:00:46 +0000 (18:00 +0000)]
* test-build.mk (CC): For mips-sgi-irix4, change -XNh1500 to
-XNh2000.

30 years ago * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
Jim Kingdon [Mon, 11 Apr 1994 17:52:11 +0000 (17:52 +0000)]
* remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
* config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
REGISTER_RAW_SIZE (1).
Together these changes work around a bug in HP's compiler.  Both
seem to be necessary.

30 years ago * scripttempl/i386coff.sc: If relocating, don't put .init and
Ian Lance Taylor [Mon, 11 Apr 1994 16:35:39 +0000 (16:35 +0000)]
* scripttempl/i386coff.sc: If relocating, don't put .init and
.fini sections into .text; keep them separate.
* config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
exist, get crtbegin based on gcc -print-libgcc-file-name.
(HOSTING_LIBS): Similar change for ../gcc/crtend.o.

30 years ago * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
Jeff Law [Mon, 11 Apr 1994 16:19:03 +0000 (16:19 +0000)]
    * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
        with scope SS_EXTERNAL.  ST_ENTRY symbols in dynamic executables
        are type mst_solib_trampoline.

30 years ago * From Peter Schauer with minor modifications.
Jeff Law [Mon, 11 Apr 1994 16:16:20 +0000 (16:16 +0000)]
    * From Peter Schauer with minor modifications.
        * gdb.t15/return.exp (return_tests): Handle targets where "return"
        stops in mid-line in the caller.  Add xfail for returning a float
        value on X86 targets.

30 years ago * config/tc-hppa.c (pa_procend): Handle case where label was
Jeff Law [Mon, 11 Apr 1994 16:11:12 +0000 (16:11 +0000)]
* config/tc-hppa.c (pa_procend): Handle case where label was
defined after the .proc directive.

30 years ago * gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.
Jeff Law [Mon, 11 Apr 1994 16:03:21 +0000 (16:03 +0000)]
    * gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.

30 years ago * gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.
Jeff Law [Mon, 11 Apr 1994 16:02:52 +0000 (16:02 +0000)]
* gas/hppa/more.parse/callinfobug.s: Add missing name for procedure.

30 years ago * config/tc-hppa.c (pa_procend): Give an error if we encounter a
Jeff Law [Mon, 11 Apr 1994 16:02:12 +0000 (16:02 +0000)]
    * config/tc-hppa.c (pa_procend): Give an error if we encounter a
        procend for a procedure without a name.

30 years ago * gas/hppa/reloc/funcrelobug.s: Place the trampoline in the
Jeff Law [Mon, 11 Apr 1994 14:55:16 +0000 (14:55 +0000)]
* gas/hppa/reloc/funcrelobug.s: Place the trampoline in the
$DATA$ rather than the $LIT$ subspace.

30 years ago * elfcode.h (write_relocs): For rela relocations, adjust the
Jeff Law [Sun, 10 Apr 1994 08:12:33 +0000 (08:12 +0000)]
    * elfcode.h (write_relocs): For rela relocations, adjust the
        addend for relocations involving section symbols to account
        for the lossage of 1:1 mapping from input section symbols to
        output section symbols.

30 years ago * configure: Unknown options are fatal again.
David MacKenzie [Sat, 9 Apr 1994 22:11:36 +0000 (22:11 +0000)]
* configure: Unknown options are fatal again.

30 years agoFri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
Jim Kingdon [Sat, 9 Apr 1994 00:18:21 +0000 (00:18 +0000)]
Fri Apr  8 17:14:37 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)

* config/m68k/es1800.mt: Change comments.

Fri Apr  8 17:14:37 1994  Rob Savoye  (rob@darkstar.cygnus.com)

* config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.

30 years agoupdate platform targets
Karen Christiansen [Fri, 8 Apr 1994 23:35:47 +0000 (23:35 +0000)]
update platform targets

30 years ago * lynx-nat.c: Restore regmap structure for SPARC. It's needed
Stu Grossman [Fri, 8 Apr 1994 22:37:35 +0000 (22:37 +0000)]
* lynx-nat.c:  Restore regmap structure for SPARC.  It's needed
for core files.

30 years ago * values.c (unpack_long): Remove obsolete comment about using a
Jim Kingdon [Fri, 8 Apr 1994 22:30:55 +0000 (22:30 +0000)]
* values.c (unpack_long): Remove obsolete comment about using a
switch statement.

30 years ago* symfile.c (symbol_file_command): Add comments about command syntax.
Jim Kingdon [Fri, 8 Apr 1994 21:56:12 +0000 (21:56 +0000)]
* symfile.c (symbol_file_command): Add comments about command syntax.

30 years ago * aoutx.h (NAME(aout,make_sections)): New function.
Ian Lance Taylor [Fri, 8 Apr 1994 21:40:38 +0000 (21:40 +0000)]
* aoutx.h (NAME(aout,make_sections)): New function.
(NAME(aout,some_aout_object_p)): Call NAME(aout,make_sections)
rather than making sections inline.
(NAME(aout,mkobject)): Don't make any sections.
(NAME(aout,adjust_sizes_and_vmas)): Call NAME(aout,make_sections).
(NAME(aout,final_link)): Don't dereference obj_textsec (abfd) or
obj_datasec (abfd) if they are NULL.
* libaout.h (NAME(aout,make_sections)): Declare.
* bout.c (b_out_mkobject): Don't make any sections.
(b_out_write_object_contents): Call aout_32_make_sections.
(b_out_set_section_contents): Likewise.
* i386os9k.c (os9k_mkobject): Don't make any sections.
(os9k_write_object_contents): Call aout_32_make_sections.
(os9k_set_section_contents): Likewise.

30 years ago * configure: Ignore --x-includes and --x-libraries, for Autoconf
David MacKenzie [Fri, 8 Apr 1994 19:03:23 +0000 (19:03 +0000)]
* configure: Ignore --x-includes and --x-libraries, for Autoconf
compatibility.

30 years ago * aoutx.h (NAME(aout,new_section_hook)): Don't set N_EXT in target
Ian Lance Taylor [Fri, 8 Apr 1994 16:24:01 +0000 (16:24 +0000)]
* aoutx.h (NAME(aout,new_section_hook)): Don't set N_EXT in target
index.

30 years ago * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
Peter Schauer [Fri, 8 Apr 1994 00:37:48 +0000 (00:37 +0000)]
* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
New files for MIPS SVR4 support.

30 years ago * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
Peter Schauer [Fri, 8 Apr 1994 00:36:54 +0000 (00:36 +0000)]
* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS):  Define,
OSF/1 has shared libraries.

30 years ago * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Peter Schauer [Fri, 8 Apr 1994 00:36:08 +0000 (00:36 +0000)]
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into  -g compiled shared libraries.
* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE):  Define to handle
stepping into  -g compiled shared libraries.

30 years ago * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
Peter Schauer [Fri, 8 Apr 1994 00:35:15 +0000 (00:35 +0000)]
* infrun.c (IN_SOLIB_TRAMPOLINE):  Correct comment, trampolines
are in the .plt section.
* minsyms.c (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target):  New functions for handling
stepping into -g compiled shared libraries.
* symtab.h (lookup_solib_trampoline_symbol_by_pc,
find_solib_trampoline_target):  Add prototypes.
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into  -g compiled shared libraries.
* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE):  Define to handle
stepping into  -g compiled shared libraries.
* configure.in:  Add mips-*-sysv4* support.
* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
New files for MIPS SVR4 support.
* Makefile.in:  Update for new mipsv4 files.
* alpha-tdep.c (heuristic_proc_desc, find_proc_desc):  Use
read_next_frame_reg to obtain the frame relative stack pointer.
* mips-tdep.c (heuristic_proc_desc):  Use read_next_frame_reg to
obtain the frame relative stack pointer.
* mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
by entering them into the minimal symbol table.
* printcmd.c (print_scalar_formatted):  Do not try to unpack to
a long for float formats.
* solib.c:  Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
get defined in <link.h>.
* solib.c (solib_add):  Add shared library sections to the section
table of the target before adding the symbols.
* partial-stab.h:  Relocate static and global functions.
* dbxread.c (read_dbx_symtab):  Remove unused variable
end_of_text_address.  Relocate text_addr when passing it
to end_psymtab.

For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
library functions before the executable is run. Retrieve dynamic
symbols from stripped executables.
* mipsread.c (read_alphacoff_dynamic_symtab):  New function.
* mipsread.c (mipscoff_symfile_read):  Use it. Issue warning message
if no debugging symbols were found.
* alpha-tdep.c (alpha_skip_prologue):  Silently return the unaltered
pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
is defined.
* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS):  Define,
OSF/1 has shared libraries.

30 years agoAdd clean target.
David Edelsohn [Fri, 8 Apr 1994 00:33:47 +0000 (00:33 +0000)]
Add clean target.

30 years ago * config.bfd, configure.host: Add mips-*-sysv4* support.
Peter Schauer [Fri, 8 Apr 1994 00:17:32 +0000 (00:17 +0000)]
* config.bfd, configure.host:  Add mips-*-sysv4* support.

30 years ago * config.guess: Add SINIX support.
Peter Schauer [Fri, 8 Apr 1994 00:15:59 +0000 (00:15 +0000)]
* config.guess:  Add SINIX support.
* configure.in:  Add mips-*-sysv4* support.

30 years agonote deleted .mt files
Ken Raeburn [Thu, 7 Apr 1994 23:02:49 +0000 (23:02 +0000)]
note deleted .mt files

30 years ago * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
Ian Lance Taylor [Thu, 7 Apr 1994 19:13:17 +0000 (19:13 +0000)]
* dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
to BFD handling of dynamic symbols.

30 years ago * config/tc-mips.c (macro): Pass NULL for expression argument to
Ian Lance Taylor [Thu, 7 Apr 1994 18:33:09 +0000 (18:33 +0000)]
* config/tc-mips.c (macro): Pass NULL for expression argument to
macro_build for nori case.
(SWITCH_TABLE): Define.
(mips_force_relocation): Force a relocation for a switch table
entry.
(md_apply_fix): Write switch table entry value into file.
(tc_gen_reloc): Use BFD_RELOC_GPREL32 for a switch table entry,
and set the addend to the difference between the reloc address and
the subtrahend.

30 years ago * coff-mips.c (mips_howto_table): Add entry for MIPS_R_SWITCH.
Ian Lance Taylor [Thu, 7 Apr 1994 18:29:38 +0000 (18:29 +0000)]
* coff-mips.c (mips_howto_table): Add entry for MIPS_R_SWITCH.
(mips_ecoff_swap_reloc_in): For MIPS_R_SWTICH, copy r_symndx into
r_offset and set r_symndx to RELOC_SECTION_TEXT.
(mips_ecoff_swap_reloc_out): For MIPS_R_SWITCH, get the r_symndx
value from the r_offset field.
(mips_adjust_reloc_in): Maximum r_type value is now MIPS_R_SWITCH.
For MIPS_R_SWITCH, copy the r_offset field into the addend field.
(mips_adjust_reloc_out): For MIPS_R_SWITCH, copy the addend field
into the r_offset field.
(mips_switch_reloc): New function.
(mips_bfd_reloc_type_lookup): Translate BFD_RELOC_GPREL32 into
MIPS_R_SWITCH.
(mips_relocate_section): Handle MIPS_R_SWITCH.
(mips_relax_section): Adjust MIPS_R_SWITCH offset if necessary.

30 years agoComment change.
Ian Lance Taylor [Thu, 7 Apr 1994 18:28:03 +0000 (18:28 +0000)]
Comment change.

30 years ago * mips.h (MIPS_R_SWITCH): Define.
Ian Lance Taylor [Thu, 7 Apr 1994 18:20:04 +0000 (18:20 +0000)]
* mips.h (MIPS_R_SWITCH): Define.

30 years ago * elfcode.h (elf_set_section_contents): Support calling the backend
Jeff Law [Thu, 7 Apr 1994 18:12:25 +0000 (18:12 +0000)]
* elfcode.h (elf_set_section_contents): Support calling the backend
function elf_backend_begin_write_processing when just beginning to
write an object file.

* libelf.h (elf_backend_begin_write_processing): Declare.

* elf{32,64}-target.h (elf_backend_begin_write_processing): Provide
a default definition.
(elf{32,64}_bed): Add elf_backend_begin_write_processing.

* elf32-hppa.h (elf_hppa_tc_symbol): Delete extern declaration.
(elf_hppa_tc_make_sections): Likewise.

* elf32-hppa.c (symext_chain_built): Delete.
(symext_chain_size): Renamed from symextn_contents_real_size.
(elf32_hppa_backend_{begin,final}_write_processing): New functions.
(add_entry_to_symext_chain): New function.
(hppa_elf_set_section_contents): Ignore writes to the symbol extension
section until it's been rebuilt internally.
(hppa_elf_get_section_contents): Symbol extension section is no
longer special.
(elf_backend_{begin,final}_write_processing): Define.
(elf_hppa_tc_make_sections): Simplify now that much code has
migrated into elf32_hppa_backend_{being,final}_write_processing.

30 years ago * config/tc-hppa.h (elf_tc_symbol): Delete. No longer used.
Jeff Law [Thu, 7 Apr 1994 17:39:16 +0000 (17:39 +0000)]
    * config/tc-hppa.h (elf_tc_symbol): Delete.  No longer used.
        (elf_tc_make_sections): Likewise.
        (hppa_tc_make_sections, hppa_tc_symbol): Delete extern decls.

        * config/tc-hppa.c (hppa_tc_make_sections): Delete function.
        (hppa_tc_symbol): Likewise.

        * config/obj-elf.c (elf_frob_file): Delete elf_tc_symbol and
        elf_tc_make_sections stuff.  It was there to support PA braindamage
        which has been fixed, and in the case of elf_tc_make_sections is
        redundant with elf_tc_final_processing.

30 years ago * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
Jeff Law [Thu, 7 Apr 1994 03:49:18 +0000 (03:49 +0000)]
    * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
        manufacturer.