binutils-gdb.git
30 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.

30 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.

30 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.

30 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.

30 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.)

30 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.

30 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).

30 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.

30 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.

30 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.

30 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).

30 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.

30 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.

30 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

30 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

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

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

30 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.

30 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.

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

30 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.

30 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.

30 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.

30 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.

30 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

30 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.

30 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.

30 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.

30 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.

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

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

30 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

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

30 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

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

30 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).

30 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.

30 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.

30 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.

30 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.

30 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.

30 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.

30 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

30 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

30 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.

30 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.

30 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.

30 years ago * stabsread.c (define_symbol): Skip the whole thing about "pcc
Jim Kingdon [Sat, 23 Oct 1993 01:56:18 +0000 (01:56 +0000)]
* stabsread.c (define_symbol): Skip the whole thing about "pcc
promotion" on little-endian machines.

30 years ago * remote-vx.c: Rename pid parameter to pid_to_wait_for. Some
Jim Kingdon [Sat, 23 Oct 1993 01:14:47 +0000 (01:14 +0000)]
* remote-vx.c: 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.

30 years ago Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
Jim Kingdon [Fri, 22 Oct 1993 20:25:43 +0000 (20:25 +0000)]
Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
* dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
New files.
* config/m68k/nm-apollo68b.h: Add more defines.
* configure.in: Recognize apollo target, not just host.

30 years ago * input-scrub.c (physical_input_file, logical_input_file,
Ian Lance Taylor [Fri, 22 Oct 1993 19:15:20 +0000 (19:15 +0000)]
* input-scrub.c (physical_input_file, logical_input_file,
physical_input_line, logical_input_line): Made static.
(as_where): Return current file name and line number, don't print
them out.
* messages.c (as_show_where): New static function.  Other
functions use it instead of as_where.
(as_bad_internal): New static function.
(as_bad): Use as_bad_internal.
(as_bad_where): New function, like as_bad but taking a file name
and line number.
* as.h (as_bad_where): Declare.
(as_where): Change prototype for new arguments.
* write.h (fixS): Added fields fx_file and fx_line.
* write.c (fix_new_internal): Save file and line number in fix.
(fixup_segment): Use as_bad_where, not as_bad.
* input-file.c (f_in, file_name): Made static.
* cond.c (struct file_line): Just use file and line fields.
(s_else): Use as_where and as_bad_where, not get_file_line and
set_file_line.
(get_file_line, set_file_line): Removed.
* listing.c (listing_newline): Use as_where.
* config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
* config/obj-ecoff.c (add_file): Use as_where.
* config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
* config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
* config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.

30 years agonote change to fprintf declaration
Mark Eichin [Fri, 22 Oct 1993 18:15:53 +0000 (18:15 +0000)]
note change to fprintf declaration

30 years agonote TDEFINES setting of FPRINTF_ALREADY_DECLARED.
Mark Eichin [Fri, 22 Oct 1993 18:14:21 +0000 (18:14 +0000)]
note TDEFINES setting of FPRINTF_ALREADY_DECLARED.

30 years agohide declaration of fprintf inside FPRINTF_ALREADY_DECLARED, because
Mark Eichin [Fri, 22 Oct 1993 18:04:09 +0000 (18:04 +0000)]
hide declaration of fprintf inside FPRINTF_ALREADY_DECLARED, because
this declaration can be wrong but there must *be* a declaration for
include/dis-asm.h to work.

30 years ago Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
Jim Kingdon [Fri, 22 Oct 1993 16:03:08 +0000 (16:03 +0000)]
Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
* dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
New files.
* config/m68k/nm-apollo68b.h: Add more defines.
* configure.in: Recognize apollo target, not just host.

30 years ago * targets.c (target_vector): Enable MIPS ELF vectors.
Ian Lance Taylor [Fri, 22 Oct 1993 15:56:08 +0000 (15:56 +0000)]
* targets.c (target_vector): Enable MIPS ELF vectors.

30 years agonew for apollo
Jim Kingdon [Fri, 22 Oct 1993 15:24:31 +0000 (15:24 +0000)]
new for apollo

30 years agonew for apollo
Jim Kingdon [Fri, 22 Oct 1993 15:14:45 +0000 (15:14 +0000)]
new for apollo

30 years ago* config.bfd: Use bigmips for mips-sony-bsd*.
Jim Kingdon [Fri, 22 Oct 1993 14:58:28 +0000 (14:58 +0000)]
* config.bfd: Use bigmips for mips-sony-bsd*.

30 years ago* configure.in: Add * to end of all OS names.
Jim Kingdon [Fri, 22 Oct 1993 13:49:08 +0000 (13:49 +0000)]
* configure.in: Add * to end of all OS names.

30 years ago* configure.host, config.bfd: Add * to end of all OS names.
Jim Kingdon [Fri, 22 Oct 1993 13:36:28 +0000 (13:36 +0000)]
* configure.host, config.bfd: Add * to end of all OS names.

30 years ago* configure.in: Add * to end of all OS names.
Jim Kingdon [Fri, 22 Oct 1993 13:32:12 +0000 (13:32 +0000)]
* configure.in: Add * to end of all OS names.

30 years ago * Makefile.in (ALLPARAM): Add config/m88k/xm-delta88v4.h
Fred Fish [Fri, 22 Oct 1993 13:24:55 +0000 (13:24 +0000)]
* Makefile.in (ALLPARAM):  Add config/m88k/xm-delta88v4.h

30 years ago* munch: Removed.
Jim Kingdon [Fri, 22 Oct 1993 06:08:04 +0000 (06:08 +0000)]
* munch: Removed.

30 years ago * Makefile.in (init.c): Generate using the source, not munch. This
Jim Kingdon [Fri, 22 Oct 1993 06:03:50 +0000 (06:03 +0000)]
* Makefile.in (init.c): Generate using the source, not munch.  This
cleans up all kinds of hassles (which nm to use in munch, etc).  The
new formatting conventions (mostly already followed) are that
the name of the _initialize_* routines must start in column zero,
and must not be inside #if.
* munch: Removed.
* Makefile.in: Remove references to munch.
* serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
z8k-tdep.c: Make sure the above conventions are followed.  Make
sure they are all declared as returning void.  Clean up
miscellaneous comments and such.

30 years ago * Makefile.in (init.c): Generate using the source, not munch. This
Jim Kingdon [Fri, 22 Oct 1993 05:55:58 +0000 (05:55 +0000)]
* Makefile.in (init.c): Generate using the source, not munch.  This
cleans up all kinds of hassles (which nm to use in munch, etc).  The
new formatting conventions (mostly already followed) are that
the name of the _initialize_* routines must start in column zero,
and must not be inside #if.
* munch: Removed.
* Makefile.in: Remove references to munch.
* serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
z8k-tdep.c: Make sure the above conventions are followed.  Make
sure they are all declared as returning void.  Clean up
miscellaneous comments and such.

30 years agoMan page for "run" simulator, and install-man target for it.
Roland Pesch [Fri, 22 Oct 1993 04:58:26 +0000 (04:58 +0000)]
Man page for "run" simulator, and install-man target for it.

30 years ago* Makefile.in: Update dependencies to reflect all these new includes.
Jim Kingdon [Fri, 22 Oct 1993 01:49:27 +0000 (01:49 +0000)]
* Makefile.in: Update dependencies to reflect all these new includes.

30 years ago* sh-tdep.c (sim_load): Add function.
Jim Kingdon [Fri, 22 Oct 1993 00:53:32 +0000 (00:53 +0000)]
* sh-tdep.c (sim_load): Add function.

30 years agoadd pid argument to mips_wait
David D. Zuhn [Thu, 21 Oct 1993 23:02:40 +0000 (23:02 +0000)]
add pid argument to mips_wait

30 years ago * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
Jim Kingdon [Thu, 21 Oct 1993 20:41:50 +0000 (20:41 +0000)]
* Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
which no longer occur.

gcc -Wall lint:
* findvar.c (symbol_read_needs_frame), corelow.c (ignore),
inflow.c (gdb_has_a_terminal): Make sure to return a value.
* regex.h: Declare re_set_syntax.
* printcmd.c: Include valprint.h.
* infcmd.c, exec.c, maint.c, core.c: Include language.h.
* maint.c: Include expression.h.
* infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h.
* inftarg.c: Include command.h.
* coredep.c: Include value.h.
* c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h.
* ch-typeprint.c: Include typeprint.h.
* ch-valprint.c: Include c-lang.h.
* nlmread.c: Include buildsym.h.
* environ.c: Include gdbcore.h.  Only include defs.h once.
(set_in_environ): Cast const char * to char * when passing to
set_gnutarget.
Remove unused variables:
* printcmd.c (printf_command): args_to_vprintf.
* coffread.c (coff_symfile_init): strsection.
Move variables to within the #ifdefs where they are used:
* symtab.c (gdb_mangle_name): opname.
* inftarg.c (child_attach): pid and exec_file.
* inftarg.c (child_detach): siggnal.
* objfiles.c (allocate_objfile): mapto, md, and fd.
* objfiles.c (free_objfile): mmfd.
* infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch.
* infrun.c (wait_for_inferior): Remove unused same_pid label.
* inferior.h: Declare set_sigint_trap and clear_sigint_trap.
* parser-defs.h: Declare write_exp_elt_block.
* stabsread.h: Declare elfstab_offset_sections and
coffstab_build_psymtabs.

30 years agoVarious arious PA changes from Utah.
Ken Raeburn [Thu, 21 Oct 1993 20:03:19 +0000 (20:03 +0000)]
Various arious PA changes from Utah.
V9 bugfix.
See changelog...

30 years agodelete some code in "#if 0"
Ken Raeburn [Thu, 21 Oct 1993 19:55:01 +0000 (19:55 +0000)]
delete some code in "#if 0"

30 years ago * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
Ian Lance Taylor [Thu, 21 Oct 1993 19:50:57 +0000 (19:50 +0000)]
* config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
option, which is used by the SunOS make default .s.o rule.

30 years agoSet bfd_gas for all sparc targets. Added facility for keeping or rejecting
Ken Raeburn [Thu, 21 Oct 1993 19:50:06 +0000 (19:50 +0000)]
Set bfd_gas for all sparc targets.  Added facility for keeping or rejecting
configurations still under development; default is to assume production
environment, and reject configs still being worked on.  Mark Elf configurations
(except sparc and i386) as developmental.  Deleted cases matching some generic
names in favor of more specific names.  (E.g., when we get Alpha
support, we'll still only support VMS for Vax.)

30 years agoPatch from Jeff Law:
Ken Raeburn [Thu, 21 Oct 1993 19:28:54 +0000 (19:28 +0000)]
Patch from Jeff Law:
* paread.c: Fix references to "hppa" that should now be "som".

30 years agoelfcode.h (FILE_ALIGN_: Renamed from EALIGN, to avoid conflict with Ultrix
Ken Raeburn [Thu, 21 Oct 1993 19:22:42 +0000 (19:22 +0000)]
elfcode.h (FILE_ALIGN_: Renamed from EALIGN, to avoid conflict with Ultrix
header files.

Also, lots of changes for PA elf and som support from Utah; see ChangeLog
for details.

30 years ago gcc -Wall lint:
Jim Kingdon [Thu, 21 Oct 1993 19:11:15 +0000 (19:11 +0000)]
gcc -Wall lint:
* coff-h8300.c, coffcode.h: Change shrink parameter
in *_reloc16_estimate to unsigned to match prototype.
* archive.c: Avoid "/*" in comment.

30 years agoAlways build newlib for native Lynx.
Stan Shebs [Thu, 21 Oct 1993 18:40:48 +0000 (18:40 +0000)]
Always build newlib for native Lynx.

30 years ago * dep-in.sed: Create our own line breaks for a more aesthetic
Ian Lance Taylor [Thu, 21 Oct 1993 18:30:12 +0000 (18:30 +0000)]
* dep-in.sed: Create our own line breaks for a more aesthetic
Makefile.
* Makefile.in: Rebuilt dependencies.

30 years ago* symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions.
Jim Kingdon [Thu, 21 Oct 1993 17:32:52 +0000 (17:32 +0000)]
* symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions.

30 years ago * elf32-mips.c: Include "seclet.h".
Ian Lance Taylor [Thu, 21 Oct 1993 17:13:38 +0000 (17:13 +0000)]
* elf32-mips.c: Include "seclet.h".
(mips_elf_fake_sections): Force size of .reginfo section to sizeof
Elf32_External_RegInfo.
(mips_elf_seclet_link): New function.  Link the .reginfo section
specially, and pass everything else to the generic routine.
(bfd_elf32_bfd_seclet_link): Define macro.
* elf32-target.h: If bfd_elf32_bfd_seclet_link is already defined,
don't override it.

30 years ago * stabs.texinfo (Local Variable Parameters): Re-write paragraph on
Jim Kingdon [Thu, 21 Oct 1993 14:20:50 +0000 (14:20 +0000)]
* stabs.texinfo (Local Variable Parameters): Re-write paragraph on
floats passed as doubles (to improve clarity).