binutils-gdb.git
31 years ago * TODO: Add section on Mach. Stop calling it a "bug list".
Jim Kingdon [Fri, 29 Oct 1993 01:29:21 +0000 (01:29 +0000)]
* TODO: Add section on Mach.  Stop calling it a "bug list".
Remove John's name and email address.  Remove item on "always"
("hook-stop" takes care of this).  Remove item on executables with
no symbols (this works on some machines, at least).  Remove item
about calling error() during symbol reading (I think all the important
ones have been cleaned up).  Revise items about signals and remote
systems.  Remove section on ^Z requiring several continues to make
it go (this now works.  Perhaps the item is based on confusion over
programs (like GDB itself) which catch SIGTSTP and then re-send
themselves the signal.  PR 2575 might contain relevant info).

31 years agoFirst cut at Sparc coff definition.
Stan Shebs [Fri, 29 Oct 1993 01:03:08 +0000 (01:03 +0000)]
First cut at Sparc coff definition.

31 years ago * config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
Jeff Law [Fri, 29 Oct 1993 01:01:35 +0000 (01:01 +0000)]
* config/tc-hppa.c (md_pseudo_table): Default alignment is 8 for
.align and .ALIGN directives.

31 years ago * NEWS: Note improvements in C++ support, preliminary thread
Fred Fish [Fri, 29 Oct 1993 00:52:25 +0000 (00:52 +0000)]
* NEWS:  Note improvements in C++ support, preliminary thread
implementation, and LynxOS native and target support for 386.

31 years agoclarify reason for -sort-common
David MacKenzie [Fri, 29 Oct 1993 00:30:51 +0000 (00:30 +0000)]
clarify reason for -sort-common

31 years ago * README: Add note from Peter Schauer about OSF/1 shared
Fred Fish [Fri, 29 Oct 1993 00:24:56 +0000 (00:24 +0000)]
* README:  Add note from Peter Schauer about OSF/1 shared
libraries.  Add note from Pace Willisson about configuring on BSDI
BSD/386 release 1.0.  Update gdb references to gdb 4.11.

31 years ago * config/tc-hppa.c (pa_parse_space_stmt): Advance
Jeff Law [Thu, 28 Oct 1993 23:14:33 +0000 (23:14 +0000)]
* config/tc-hppa.c (pa_parse_space_stmt): Advance
input_line_pointer when an invalid argument is encountered.

31 years agorun make check on stage 3 after *all* trees are built
Mark Eichin [Thu, 28 Oct 1993 21:54:44 +0000 (21:54 +0000)]
run make check on stage 3 after *all* trees are built

31 years ago * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
Ian Lance Taylor [Thu, 28 Oct 1993 21:43:14 +0000 (21:43 +0000)]
* a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.

31 years ago* NEWS: Add notes about Alpha and "set remotedebug" for UDI.
Jim Kingdon [Thu, 28 Oct 1993 21:25:31 +0000 (21:25 +0000)]
* NEWS: Add notes about Alpha and "set remotedebug" for UDI.

31 years ago * config/tc-hppa.c (pa_space): Do not report an error for a .space
Jeff Law [Thu, 28 Oct 1993 20:49:19 +0000 (20:49 +0000)]
* config/tc-hppa.c (pa_space): Do not report an error for a .space
directive which does not define a "well-known" space and does
not include a space number as an argument.

* config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
"defined", "loadable", "code_only" and "space_index" fields.
(pa_def_spaces): Correct initialization of the "spnum", "defined",
and "private" fields.

* write.h (struct fix): Add new tc_fix_data field for the various
backends to attach machine dependent fixup information to.
* write.c (fix_new_internal): Initialize new tc_fix_data field.
* config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
fx_next fields.
(hppa_find_hppa_fix): Delete unnecessary function.  Fix all
callers to get HPPA fixup information from the tc_fix_data field
in the GAS fixup.
(hppa_fix_root): Delete unnecessary variable.
(fix_new_hppa): Attach HPPA fixup data to the GAS fixup.

* config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
function.  Fix all callers.
(subspace_dictionary_chain): Delete unused ssd_start_sym field.

* config/tc-hppa.c (hppa_fix_adjustable): New function to determine
if a particular fixup is adjustable.
* config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
perform the real work.

* config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
of OBJ_XXX conditionals.
(MAX_RELOC_EXPANSION): Likewise.

* config/tc-hppa.c (log2): Renamed from is_power_of_2.  Fix all
callers. Now returns log2 (N) for positive N which are an exact
power of two or -1 for an error.

* config/tc-hppa.c (pa_callinfo): Range check values provided for
ENTRY_GR, ENTRY_FR and ENTRY_SR.  Properly adjust vaues before
inserting them into the unwind table.

* config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
(hppa_gen_reloc_type): New object format dependent macro.
(pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
conditional.  The code can (and will) be shared between SOM & ELF
formats in the near future.
(cons_fix_new_hppa, md_apply_fix_1): Likewise.
(pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
(tc_gen_reloc): Use hppa_gen_reloc rather than an object format
specific call.

* config/tc-hppa.c (pa_comm): Set the segment for a common symbol
to bfd_und_section.

* config/obj-elf.h (obj_elf_version): Add extern prototype.

* configure.in (hppa-*-bsd*): New configuration.
BFD is always used for GAS generating SOM objects.

* write.c (adjust_reloc_syms): Set sy_used_in_reloc if an
adjustment is rejected by the target machine.

* config/tc-hppa.c (pa_big_cons): Delete function and its
declaration.  All callers changed to use pa_cons.

* write.c (fixup_segment): Fix indention and open/close brace
problem.

From Pete Hoogenboom:
* config/tc-hppa.c (md_atof): Return a NULL on success rather than
an empty string.

31 years ago Merge with current Utah code:
Jeff Law [Thu, 28 Oct 1993 20:43:13 +0000 (20:43 +0000)]
Merge with current Utah code:
        * config/tc-hppa.h (tc_fix_adjustable): Call hppa_fix_adjustable to
        perform the real work.

        * config/tc-hppa.h (RELOC_EXPANSION_POSSIBLE): Move definition out
        of OBJ_XXX conditionals.
        (MAX_RELOC_EXPANSION): Likewise.

31 years ago Merge with current Utah code:
Jeff Law [Thu, 28 Oct 1993 20:41:49 +0000 (20:41 +0000)]
Merge with current Utah code:
        * config/tc-hppa.c (pa_space): Do not report an error for a .space
        directive which does not define a "well-known" space and does
        not include a space number as an argument.

        * config/tc-hppa.c (pa_def_subspaces): Correct initialization of the
        "defined", "loadable", "code_only" and "space_index" fields.
        (pa_def_spaces): Correct initialization of the "spnum", "defined",
        and "private" fields.

* config/tc-hppa.c (hppa_fix_struct): Delete unnecessary fix_fixP and
        fx_next fields.
        (hppa_find_hppa_fix): Delete unnecessary function.  Fix all
        callers to get HPPA fixup information from the tc_fix_data field
        in the GAS fixup.
        (hppa_fix_root): Delete unnecessary variable.
        (fix_new_hppa): Attach HPPA fixup data to the GAS fixup.

        * config/tc-hppa.c (pa_set_start_symbol); Delete unwanted
        function.  Fix all callers.
        (subspace_dictionary_chain): Delete unused ssd_start_sym field.

        * config/tc-hppa.c (hppa_fix_adjustable): New function to determine
        if a particular fixup is adjustable.

        * config/tc-hppa.c (log2): Renamed from is_power_of_2.  Fix all
        callers. Now returns log2 (N) for positive N which are an exact
        power of two or -1 for an error.

        * config/tc-hppa.c (pa_callinfo): Range check values provided for
        ENTRY_GR, ENTRY_FR and ENTRY_SR.  Properly adjust vaues before
        inserting them into the unwind table.

        * config/tc-hppa.c (NEEDS_FIXUP): Delete definition and all references.
        (hppa_gen_reloc_type): New object format dependent macro.
        (pa_ip): Delete tons of code which was either OBJ_SOM or OBJ_ELF
        conditional.  The code can (and will) be shared between SOM & ELF
        formats in the near future.
        (cons_fix_new_hppa, md_apply_fix_1): Likewise.
        (pa_build_unwind_subspace, process_exit, pa_exit): Likewise.
        (tc_gen_reloc): Use hppa_gen_reloc rather than an object format
        specific call.

        * config/tc-hppa.c (pa_comm): Set the segment for a common symbol
        to bfd_und_section.

        * config/tc-hppa.c (pa_big_cons): Delete function and its
        declaration.  All callers changed to use pa_cons.

        From Pete Hoogenboom:
        * config/tc-hppa.c (md_atof): Return a NULL on success rather than
        an empty string.

31 years ago gcc -Wall lint:
Ian Lance Taylor [Thu, 28 Oct 1993 20:36:48 +0000 (20:36 +0000)]
gcc -Wall lint:
* coff-h8300.c (h8300_reloc16_estimate): Declare return type.
Remove useless statement probably left by code copy.
* cpu-i960.c (compatible): Fully bracket matrix initializer.
* elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Use bfd_xmalloc
rather than xmalloc.  Use realloc and check the return value
rather than xrealloc.
(hppa_elf_get_section_contents): Add some casts.
* elf32-i386.c (elf_i386_reloc_type_lookup): Remove unused
variable.  Add default case to switch.
* hp300hpux.c: Declare aout_32_write_syms.
* i386bsd.c, i386linux.c, netbsd386.c (N_SHARED_LIB): Define as 0
(definition from aout/aout64.h is always 0 anyhow).
* i386lynx.c (swap_std_reloc_in): Remove unused variable.
* ieee.c (ieee_write_id): length can never be negative.
(read_id): Likewise.
(ieee_archive_p): Remove unused variable.
* libcoff-in.h (bfd_perform_slip): Declare.
* libcoff.h: Rebuilt.
* oasys.c (oasys_write_sections): Remove zero initialization of
static structure.
* reloc16.c: Indentation change.

31 years ago * Makefile.in: Add dependency for $(EMULATION_OFILES).
Ian Lance Taylor [Thu, 28 Oct 1993 18:09:20 +0000 (18:09 +0000)]
* Makefile.in: Add dependency for $(EMULATION_OFILES).

31 years ago * config/tc-a29k.c (md_begin): When opcodes are mashed together in
Ian Lance Taylor [Thu, 28 Oct 1993 17:14:16 +0000 (17:14 +0000)]
* config/tc-a29k.c (md_begin): When opcodes are mashed together in
the table, require that the one without bit 0x1000000 set come
first.  Require further that it be case 'b' or 'P'.  The a29k
opcode table already meets these constraints.
(machine_ip): When handling case 'i' or 'A', make sure that the
appropriate opcode really exists by looking at the next entry in
the opcode table.

31 years ago * config/i386/{i386m3.mt,i386m3.mh},
Jim Kingdon [Thu, 28 Oct 1993 15:04:40 +0000 (15:04 +0000)]
* config/i386/{i386m3.mt,i386m3.mh},
config/mips/{mipsm3.mt,mipsm3.mh},
config/ns32k/{ns32km3.mt,ns32km3.mh}: Use correct names for TM_FILE
and XM_FILE.  Replace host files *mach3-xdep.o with native
files *m3-nat.o.  Replace host file os-mach3.o with native
file m3-nat.o.

31 years ago * valops.c (value_assign): Change bitfield code to use a buffer of
Jim Kingdon [Thu, 28 Oct 1993 14:27:39 +0000 (14:27 +0000)]
* valops.c (value_assign): Change bitfield code to use a buffer of
the correct size, rather than an int.

31 years ago * configure.in, config/i386-mach3.mt: Update for new configuration
Jim Kingdon [Thu, 28 Oct 1993 04:05:28 +0000 (04:05 +0000)]
* configure.in, config/i386-mach3.mt: Update for new configuration
(--with-targets and so on).
* hosts/i386mach3.h: Declare errno.
* targets.c: Declare i386mach3_vec.

31 years ago * config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
Ian Lance Taylor [Wed, 27 Oct 1993 22:23:16 +0000 (22:23 +0000)]
* config/tc-m68k.c (m68k_ip): Adjust offsets for PC relative
fixups.  Add 6 for long 7.3 case, 2 for short 7.2 case.

31 years ago * config/i386/{i386m3.mt,i386m3.mh}: Use correct names for TM_FILE
Jim Kingdon [Wed, 27 Oct 1993 22:06:52 +0000 (22:06 +0000)]
* config/i386/{i386m3.mt,i386m3.mh}: Use correct names for TM_FILE
and XM_FILE.  Replace host file i386mach3-xdep.o with native file
i386m3-nat.o.

31 years ago* stabs.texinfo (Class Names): New node.
Jim Kingdon [Wed, 27 Oct 1993 21:40:36 +0000 (21:40 +0000)]
* stabs.texinfo (Class Names): New node.

31 years ago * remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
Jim Kingdon [Wed, 27 Oct 1993 20:35:25 +0000 (20:35 +0000)]
* remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
* remote-mon.c: Remove commented out "set remotedebug" command.
* remote-nindy.c: Clean up comment about wanting alternative to
options specified on the GDB command line.

31 years ago * fork-child.c (fork_inferior): Set inferior_pid before calling
Jim Kingdon [Wed, 27 Oct 1993 19:30:27 +0000 (19:30 +0000)]
* fork-child.c (fork_inferior): Set inferior_pid before calling
init_trace_fun.  Move the code which gets us through the shell
to new function startup_inferior.
* inferior.h: Declare startup_inferior.
* procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
Call startup_inferior.
* m3-nat.c (m3_trace_him): Call intercept_exec_calls.
* config/nm-m3.h: Don't define STARTUP_INFERIOR.
* config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.

31 years ago* m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.
Jim Kingdon [Wed, 27 Oct 1993 18:48:50 +0000 (18:48 +0000)]
* m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.

31 years ago * config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
Ian Lance Taylor [Wed, 27 Oct 1993 18:47:40 +0000 (18:47 +0000)]
* config/obj-ecoff.c (obj_ecoff_ent): Ignore an optional number
after a .ent directive.

31 years ago* gdb.texinfo (Command Files): Explain order of init file reading.
Jim Kingdon [Wed, 27 Oct 1993 18:26:40 +0000 (18:26 +0000)]
* gdb.texinfo (Command Files): Explain order of init file reading.

31 years agoadd support for aviion
David D. Zuhn [Wed, 27 Oct 1993 17:46:16 +0000 (17:46 +0000)]
add support for aviion

31 years agoTook case '>' out of macro_build again to avoid confusion. Use & 0x1f
Ian Lance Taylor [Wed, 27 Oct 1993 16:54:54 +0000 (16:54 +0000)]
Took case '>' out of macro_build again to avoid confusion.  Use & 0x1f
on the shift count rather than % 32.

31 years ago * nlmcode.h (nlm_swap_auxiliary_headers_in,
Ian Lance Taylor [Wed, 27 Oct 1993 16:21:30 +0000 (16:21 +0000)]
* nlmcode.h (nlm_swap_auxiliary_headers_in,
nlm_swap_auxiliary_headers_out): Handle sharedDebugRecordOffset
and sharedDebugRecordCount fields.

31 years ago * nlmconv.c (main): Set sharedDebugRecordOffset and
Ian Lance Taylor [Wed, 27 Oct 1993 16:21:14 +0000 (16:21 +0000)]
* nlmconv.c (main): Set sharedDebugRecordOffset and
sharedDebugRecordCount fields in extended header.

31 years ago* gdb.texinfo (Command Files): Explain order of init file reading.
Jim Kingdon [Wed, 27 Oct 1993 16:20:51 +0000 (16:20 +0000)]
* gdb.texinfo (Command Files): Explain order of init file reading.

31 years ago * nlmconv.c (main): Force moduleName field to upper case.
Ian Lance Taylor [Wed, 27 Oct 1993 16:06:56 +0000 (16:06 +0000)]
* nlmconv.c (main): Force moduleName field to upper case.

31 years ago * config/tc-mips.c (macro_build): Handle '>' case (shift amount
Ian Lance Taylor [Wed, 27 Oct 1993 15:52:03 +0000 (15:52 +0000)]
* config/tc-mips.c (macro_build): Handle '>' case (shift amount
between 32 and 63 for double shift instruction).
(mips_ip): Likewise.
(printInsn): Likewise.

31 years ago * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
Ian Lance Taylor [Wed, 27 Oct 1993 15:52:00 +0000 (15:52 +0000)]
* mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
larger than 32.  Moved dsxx32 variants first for disassembler.

31 years ago * common.h (NLM_SIGNATURE): Do not define (it's different for each
Ian Lance Taylor [Wed, 27 Oct 1993 15:46:57 +0000 (15:46 +0000)]
* common.h (NLM_SIGNATURE): Do not define (it's different for each
backend).

Also minor comment changes to internal.h and external.h.

31 years ago * remote.texi (Bootstrapping): Talk about getting the serial driver
Jim Kingdon [Wed, 27 Oct 1993 05:48:39 +0000 (05:48 +0000)]
* remote.texi (Bootstrapping): Talk about getting the serial driver
to deal with ^C sent by gdb to stop the remote system.

31 years ago * remote.texi (Bootstrapping): Talk about getting the serial driver
Jim Kingdon [Wed, 27 Oct 1993 05:31:10 +0000 (05:31 +0000)]
* remote.texi (Bootstrapping): Talk about getting the serial driver
to deal with ^C sent by gdb to stop the remote system.

31 years ago* mips-tdep.c (mips_pop_frame): If proc_desc is NULL, don't dump core.
Jim Kingdon [Wed, 27 Oct 1993 05:21:01 +0000 (05:21 +0000)]
* mips-tdep.c (mips_pop_frame): If proc_desc is NULL, don't dump core.

31 years agoGet rid of "Sanitize for-fsf" stuff; it didn't get the right results.
Ken Raeburn [Tue, 26 Oct 1993 23:21:17 +0000 (23:21 +0000)]
Get rid of "Sanitize for-fsf" stuff; it didn't get the right results.

31 years ago * configure.in: Produce warning message for subdirectories not
Ken Raeburn [Tue, 26 Oct 1993 23:02:18 +0000 (23:02 +0000)]
* configure.in: Produce warning message for subdirectories not
configurable for this host/target combination.  Don't try to
configure gdb for vms.
(Needed for FSF releases.  Should be harmless for ours.)

31 years ago gcc -Wall lint:
Jim Kingdon [Tue, 26 Oct 1993 22:16:07 +0000 (22:16 +0000)]
gcc -Wall lint:
* nlmread.c: Include stabsread.h.
* Makefile.in: Update dependencies.

31 years ago * config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
Ian Lance Taylor [Tue, 26 Oct 1993 22:10:37 +0000 (22:10 +0000)]
* config/tc-ns32k.c (tc_aout_fix_to_chars): Output the symbol
number in the right place.  Untested.  Probably does not work for
cross assembly.  From cagney@cs.adelaide.edu.au (Andrew Cagney).

31 years ago * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
Ian Lance Taylor [Tue, 26 Oct 1993 21:58:41 +0000 (21:58 +0000)]
* config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses
an illegal offset of 0 or -1.

31 years ago * targets.c (target_vector): Remove SCO_CORE. On Sep 11 1993,
Jim Kingdon [Tue, 26 Oct 1993 21:36:00 +0000 (21:36 +0000)]
* targets.c (target_vector): Remove SCO_CORE.  On Sep 11 1993,
we started using trad-core.c for SCO instead.

* targets.c (target_vector): Re-enable generic ELF and NLM targets.

31 years ago * config/obj-elf.c (obj_elf_init_stab_section): Align .stab
Ian Lance Taylor [Tue, 26 Oct 1993 21:01:15 +0000 (21:01 +0000)]
* config/obj-elf.c (obj_elf_init_stab_section): Align .stab
section to a longword boundary.

31 years ago * elfcode.h (assign_file_position_for_section): Align sh_offset to
Ian Lance Taylor [Tue, 26 Oct 1993 20:58:54 +0000 (20:58 +0000)]
* elfcode.h (assign_file_position_for_section): Align sh_offset to
sh_addralign (this is what UnixWare does, and it shouldn't hurt).

31 years ago * remote.c: Change PBUFSIZ back to 400. John's 28 Feb 1992 change
Jim Kingdon [Tue, 26 Oct 1993 20:41:35 +0000 (20:41 +0000)]
* remote.c: Change PBUFSIZ back to 400.  John's 28 Feb 1992 change
to increase it broke the ability to write large chunks of memory
with m68k-stub and i386-stub.  Now we only use more than 400 on
machines where we need that much to write the registers.
* remote.c (remote_write_bytes): Eliminate possible abort().  The
check for when to abort was off by a few bytes and besides which,
it is handled by MAXBUFBYTES, which the caller uses.
* m68k-stub.c: Add comments about trap #1 and trap #8 instructions.

31 years ago* Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
David Edelsohn [Tue, 26 Oct 1993 18:01:45 +0000 (18:01 +0000)]
* Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
* interp.c: #include "remote-sim.h".
(sim_resume): int result, new arg `siggnal'.
(sim_write): Use SIM_ADDR for type of arg `addr'.
(sim_read): Use SIM_ADDR for type of arg `addr'.
Use unsigned char * for `buffer'.
(sim_store_register): int result.
(sim_fetch_register): Ditto.
(sim_stop_reason): Renamed from sim_stop_signal.  New arg `reason'.
(sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
(sim_info): int result, new args `verbose', `printf_fn'.
(sim_kill): int result.
(sim_open): int result, new arg `name'.
* run.c: #include <stdio.h>
(main): Update call to sim_info.

31 years agoMakefile.in, tc-hppa.c changes
Ken Raeburn [Tue, 26 Oct 1993 17:32:49 +0000 (17:32 +0000)]
Makefile.in, tc-hppa.c changes

31 years agolist a bunch of files known to get deleted
Ken Raeburn [Tue, 26 Oct 1993 17:30:47 +0000 (17:30 +0000)]
list a bunch of files known to get deleted

31 years agoShow full pathnames.
Ken Raeburn [Tue, 26 Oct 1993 17:29:39 +0000 (17:29 +0000)]
Show full pathnames.
For "safe" case, move tc-sparc64 files into .Recover, instead of deleting them.

31 years ago(tc_gen_reloc): ELF32_HPPA_R_ADDEND -> HPPA_R_ADDEND.
Ken Raeburn [Tue, 26 Oct 1993 17:26:23 +0000 (17:26 +0000)]
(tc_gen_reloc): ELF32_HPPA_R_ADDEND -> HPPA_R_ADDEND.

31 years agoFrom Jeff Law and Pete Hoogenboom at Utah:
Ken Raeburn [Tue, 26 Oct 1993 17:22:20 +0000 (17:22 +0000)]
From Jeff Law and Pete Hoogenboom at Utah:

* elf32-hppa.h (hppa_elf_stub_finish): Add prototype.
(ELF32_HPPA_R_ARG_RELOC): Renamed without the ELF32 prefix
and moved into libhppa.h.  All references changed.
(ELF32_HPPA_R_CONSTANT, ELF32_HPPA_R_ADDEND): Likewise.
(get_opcode and opcode defines): Move into libhppa.h
* elf32-hppa.c (hppa_elf_insn2fmt): Rename and move info libhppa.h.
* libhppa.h (HPPA_R_*): Moved here.  Reformatted slightly to make for easier
reading.
(get_opcode): Moved here.  FIXME! this really should be a C function
inside the opcode library!
(bfd_hppa_insn2fmt): Likewise.

* targets.c (target_vector): Enable elf32-hppa vector.

* elf32-hppa.c (hppa_elf_get_section_contents): Add new comments and clarify
existing comments.  Do not use DEFUN to declare this function.  Fix numerous
indention problems.  Correctly handle cases where symbol extension section may
need to be read from disk, read from memory, or built then read from memory.

* elf32-hppa.h: Reformat with gnu-indent and hand fix numerous
formatting and indention problems gnu-indent can not handle.
Clarify some comments about relocation types.  Comment basic
relocation "classes".  Group PARAM declarations together.
(HPPA_SXT_{NULL, SYMNDX, RG_RELOC}): Make members of a new
enumerated type rather than #defines.

31 years ago* Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
David Edelsohn [Tue, 26 Oct 1993 17:01:03 +0000 (17:01 +0000)]
* Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
* compile.c: #include "remote-sim.h".
(sim_resume): New arg siggnal.
(sim_write): Use SIM_ADDR for type of arg addr.  Always return a value.
(sim_read): Ditto.
(sim_store_register): Result is type int.
(sim_fetch_register): Ditto.
(sim_stop_reason): Renamed from sim_stop_signal.
(sim_set_pc): Use SIM_ADDR for type of arg pc.
(sim_info): int result, new arg printf_fn.
(sim_kill): int result.
(sim_open): int result, new arg name.
* run.c (main): Use sim_set_pc to set pc.  Update call to sim_info.

31 years ago* remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
David Edelsohn [Tue, 26 Oct 1993 16:34:01 +0000 (16:34 +0000)]
* remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
(sim_set_pc): Update prototype.
(sim_read, sim_write): Ditto, and use unsigned char *buf.
(sim_fetch_register, sim_store_register): Use unsigned char *buf.
(sim_info): Pass printf function as argument, add verbose argument.
(sim_stop_reason): Renamed from sim_stop_signal, fix prototype.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_reason.
(gdbsim_files_info): Update call to sim_info.

31 years ago * valops.c (value_assign): Call reinit_frame_cache when assigning
Jim Kingdon [Tue, 26 Oct 1993 15:49:39 +0000 (15:49 +0000)]
* valops.c (value_assign): Call reinit_frame_cache when assigning
to a register.

31 years ago * som.c (hppa_object_setup): Set SEC_CODE for .text section so
Stu Grossman [Tue, 26 Oct 1993 09:42:15 +0000 (09:42 +0000)]
* som.c (hppa_object_setup):  Set SEC_CODE for .text section so
that GDB can figure out text_start and text_end.

31 years ago * infrun.c (wait_for_inferior): Fix PC out of objfile bounds
Stu Grossman [Tue, 26 Oct 1993 01:13:28 +0000 (01:13 +0000)]
* infrun.c (wait_for_inferior):  Fix PC out of objfile bounds
check to just use stop_func_name == 0.

31 years ago * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule.
Stu Grossman [Mon, 25 Oct 1993 22:28:46 +0000 (22:28 +0000)]
* gdb.disasm/hppa.mt:  Use $(srcdir) in hppa.o make rule.

31 years ago * infrun.c (wait_for_inferior): Fix PC out of subroutine bounds
Stu Grossman [Mon, 25 Oct 1993 22:24:02 +0000 (22:24 +0000)]
* infrun.c (wait_for_inferior):  Fix PC out of subroutine bounds
check to use prev_func_start/end instead of stop_func_start/end.
* remote-udi.c (store_register):  Invalidate NPC/PC_REGNUM after
changing PC.

31 years ago* gdb.t06/signals.exp: Skip whole file with xfail for HPPA.
Jim Kingdon [Mon, 25 Oct 1993 22:08:47 +0000 (22:08 +0000)]
* gdb.t06/signals.exp: Skip whole file with xfail for HPPA.

31 years ago Fix up warnings from gcc -Wall:
Ian Lance Taylor [Mon, 25 Oct 1993 21:22:33 +0000 (21:22 +0000)]
Fix up warnings from gcc -Wall:
* coffgen.c (coff_print_symbol): Use %lx and cast n_value to
unsigned long.  Use %ld for tagndx.  Use %lx for offset + vma and
cast it to unsigned long.
* ecoff.c (ecoff_emit_aggregate): Use %ld.
(ecoff_print_symbol): Use %ld, and cast indx and sym_base to long.
* coffcode.h (dummy_reloc16_estimate): Specify return type.

31 years ago * gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
Jim Kingdon [Mon, 25 Oct 1993 21:15:53 +0000 (21:15 +0000)]
* gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.

31 years agoChanged the DOC parameter type to gdb_define_app_command.
Thomas Lord [Mon, 25 Oct 1993 20:55:03 +0000 (20:55 +0000)]
Changed the DOC parameter type to gdb_define_app_command.
Fixed typo.

31 years ago * objcopy.c (main): Give a usage message if there are too many
Ian Lance Taylor [Mon, 25 Oct 1993 20:52:07 +0000 (20:52 +0000)]
* objcopy.c (main): Give a usage message if there are too many
arguments.

31 years ago gcc -Wall lint:
Jim Kingdon [Mon, 25 Oct 1993 20:20:15 +0000 (20:20 +0000)]
gcc -Wall lint:
* breakpoint.c: Include thread.h.
* coffread.c: Include stabsread.h.
* Makefile.in: Update dependencies.
* breakpoint.c (mention): Add bp_call_dummy to switch.
* symmisc.c (dump_symtab): Use %d not %ld for line number.

31 years ago * relax.c (write_relax): Check return value of bfd_seclet_link.
Ian Lance Taylor [Mon, 25 Oct 1993 20:10:35 +0000 (20:10 +0000)]
* relax.c (write_relax): Check return value of bfd_seclet_link.

31 years ago * libbfd.c (bfd_write): If not everything is written out, set
Ian Lance Taylor [Mon, 25 Oct 1993 20:09:46 +0000 (20:09 +0000)]
* libbfd.c (bfd_write): If not everything is written out, set
bfd_error to system_call_error.  If the return value is
non-negative, set errno to ENOSPC (if ENOSPC is defined).
(bfd_seek): If the seek fails, set bfd_error to system_call_error.
(bfd_generic_set_section_contents): For a bad offset + count, set
bfd_error to bad_value.
* seclet.c (rel): Don't abort.  Instead, return false.

31 years agoSubstantial rewrite.
Thomas Lord [Mon, 25 Oct 1993 19:40:46 +0000 (19:40 +0000)]
Substantial rewrite.

31 years ago * config/tc-sh.c (build_Mbytes): Write the relocs to the correct
Steve Chamberlain [Mon, 25 Oct 1993 18:48:17 +0000 (18:48 +0000)]
* config/tc-sh.c (build_Mbytes): Write the relocs to the correct
address. (md_assemble): Make error handling a bit more graceful.
(md_apply_fix):  Don't warn on non aligned displacement.

31 years ago * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
Jim Kingdon [Mon, 25 Oct 1993 18:44:32 +0000 (18:44 +0000)]
* gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
It is not from PR 3220.

31 years agoAdd full lda information
Steve Chamberlain [Mon, 25 Oct 1993 18:34:00 +0000 (18:34 +0000)]
Add full lda information

31 years agoFix up membar argument handling.
Ian Lance Taylor [Mon, 25 Oct 1993 18:27:24 +0000 (18:27 +0000)]
Fix up membar argument handling.

31 years ago * Makefile.in (taz): Replace "byacc" with "bison -y" in the
Ken Raeburn [Mon, 25 Oct 1993 18:26:24 +0000 (18:26 +0000)]
* Makefile.in (taz): Replace "byacc" with "bison -y" in the
appropriate files before making "diststuff".
(DISTBISONFILES): New var: list of files to be edited.
(DISTSTUFFDIRS): Add binutils.

31 years ago * config/tc-z8k.c (get_specific, built_bytes): Understand all the
Steve Chamberlain [Mon, 25 Oct 1993 18:19:16 +0000 (18:19 +0000)]
* config/tc-z8k.c (get_specific, built_bytes):  Understand all the
aspects of lda.

31 years ago * config/tc-sparc.c (sparc_ip): Use strtol to parse membar
Ian Lance Taylor [Mon, 25 Oct 1993 18:08:33 +0000 (18:08 +0000)]
* config/tc-sparc.c (sparc_ip): Use strtol to parse membar
argument, to permit hexadecimal numbers.

31 years agodoc/Makefile.in, write.c, config/tc-sparc.* changes
Ken Raeburn [Mon, 25 Oct 1993 17:51:05 +0000 (17:51 +0000)]
doc/Makefile.in, write.c, config/tc-sparc.* changes

31 years ago * write.c (write_relocs): For relocs that are pc_relative and
Ken Raeburn [Mon, 25 Oct 1993 17:49:24 +0000 (17:49 +0000)]
* write.c (write_relocs): For relocs that are pc_relative and
pcrel_offset and not partial_inplace, adjust reloc->addend to
compensate for a bfd_perform_relocation bug.

31 years ago* config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
Ken Raeburn [Mon, 25 Oct 1993 17:45:17 +0000 (17:45 +0000)]
* config/tc-sparc.h: Removed remaining non-BFD_ASSEMBLER code.
* config/tc-sparc.c: Ditto.
(tc_gen_reloc): Include fx_offset for pcrel fixups.

31 years ago* Makefile.in (install-info): Rewrite to take advantage of VPATH, so FSF
Ken Raeburn [Mon, 25 Oct 1993 17:38:20 +0000 (17:38 +0000)]
* Makefile.in (install-info): Rewrite to take advantage of VPATH, so FSF
distributions (with info files in $(srcdir)) install properly.
(DISTSTUFF): Build nlmheader.c too.

31 years agoaoutx.h (reloc_type_lookup): Handle BFD_RELOC_SPARC_WDISP22.
Ken Raeburn [Mon, 25 Oct 1993 17:01:57 +0000 (17:01 +0000)]
aoutx.h (reloc_type_lookup): Handle BFD_RELOC_SPARC_WDISP22.

31 years agobunch of changes...
Ken Raeburn [Mon, 25 Oct 1993 16:48:51 +0000 (16:48 +0000)]
bunch of changes...

31 years agokeep diff1.s
Ken Raeburn [Mon, 25 Oct 1993 16:48:30 +0000 (16:48 +0000)]
keep diff1.s

31 years agonew test case for relocations with addends
Ken Raeburn [Mon, 25 Oct 1993 16:46:55 +0000 (16:46 +0000)]
new test case for relocations with addends

31 years agokeep pic1.s
Ken Raeburn [Mon, 25 Oct 1993 16:45:26 +0000 (16:45 +0000)]
keep pic1.s

31 years agotest case for relocations with addends
Ken Raeburn [Mon, 25 Oct 1993 16:40:44 +0000 (16:40 +0000)]
test case for relocations with addends

31 years agokeep new sun4 dir
Ken Raeburn [Mon, 25 Oct 1993 16:39:21 +0000 (16:39 +0000)]
keep new sun4 dir

31 years ago* ldlang.c (delete_output_file_on_failure): New variable.
Ken Raeburn [Mon, 25 Oct 1993 16:35:23 +0000 (16:35 +0000)]
* ldlang.c (delete_output_file_on_failure): New variable.
(open_output): Set it after bfd open succeeds.
* ldmisc.c (vfinfo): Test it.

Changes from Peter Hoogenboom, hoogen@cs.utah.edu:

* ldsym.c (write_file_locals): Set the BSF_FILE flag for object symbols.

* ldemul.c: Support was added to allow emulation-specific processing to occur.
This support was added primarily for linker stub generation in the elf32-hppa
gld.
(ldemul_finish, ldemul_create_output_section_statements):  New functions.
* ldemul.h: Support was added to allow emulation-specific processing to occur.
(As described above.)  Added finish and create_output_section_statements fields
to ld_emulation_xfer_struct structure.
* ldlang.c: Add calls to emulation-specific routines.
(lang_process):  Add call to ldemul_create_output_section_statements function.
(lang_process):  Add call to a emulation-specific routine (and
some processing after the call).

31 years agoRemove incorrect comment about SEC_HAS_CONTENTS not getting set.
Fred Fish [Mon, 25 Oct 1993 14:38:38 +0000 (14:38 +0000)]
Remove incorrect comment about SEC_HAS_CONTENTS not getting set.

31 years ago * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
Jim Kingdon [Mon, 25 Oct 1993 00:01:16 +0000 (00:01 +0000)]
* gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
just started failing because they depended on the order the
subcommands are presented, or exact docstring text.  This kind of
test is a pain and has minimal benefit.

31 years agoAdd support for .dword pseudo op to mips port.
Jim Wilson [Sun, 24 Oct 1993 23:52:09 +0000 (23:52 +0000)]
Add support for .dword pseudo op to mips port.

31 years agoSun Oct 24 20:16:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
Jim Kingdon [Sun, 24 Oct 1993 23:42:02 +0000 (23:42 +0000)]
Sun Oct 24 20:16:38 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)

* parse.c, parser-defs.h (write_exp_msymbol):  New function to write
the appropriate expression for a minimal symbol.
* c-exp.y, m2-exp.y:  Use it.

31 years ago * remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
Jim Kingdon [Sun, 24 Oct 1993 18:05:39 +0000 (18:05 +0000)]
* remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
Some compilers (legitimately) don't like variables in the
function's outermost block whose name is the name as a parameter.

31 years ago * elfread.c (elf_symtab_read): Use bfd convention that both
Fred Fish [Sun, 24 Oct 1993 16:41:11 +0000 (16:41 +0000)]
* elfread.c (elf_symtab_read):  Use bfd convention that both
initialized and uninitialized data sections have the SEC_ALLOC
flag bit set, but only initialized sections have SEC_LOAD set.
SEC_DATA is ignored since it only gets set for initialized
data.  Likewise, SEC_HAS_CONTENTS is ignored now because it
never gets set.

31 years agouse lowercase "format" instead of Format/format
David D. Zuhn [Sun, 24 Oct 1993 05:25:35 +0000 (05:25 +0000)]
use lowercase "format" instead of Format/format

31 years agoremove debugging output accidentally checked in
David D. Zuhn [Sun, 24 Oct 1993 04:45:51 +0000 (04:45 +0000)]
remove debugging output accidentally checked in

31 years ago(sim_stop_signal): Result is now enum sim_stop.
David Edelsohn [Sat, 23 Oct 1993 22:10:28 +0000 (22:10 +0000)]
(sim_stop_signal): Result is now enum sim_stop.

31 years ago(sim_stop_signal): Result is now enum sim_stop.
David Edelsohn [Sat, 23 Oct 1993 22:03:52 +0000 (22:03 +0000)]
(sim_stop_signal): Result is now enum sim_stop.

31 years ago* remote-sim.h (sim_stop): New enum.
David Edelsohn [Sat, 23 Oct 1993 21:56:47 +0000 (21:56 +0000)]
* remote-sim.h (sim_stop): New enum.
(sim_stop_signal): Change prototype, result is enum sim_stop.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.