external/binutils.git
29 years ago * elfcode.h (write_relocs): Make static. Use PTR argument as a
Ian Lance Taylor [Mon, 13 Mar 1995 21:55:44 +0000 (21:55 +0000)]
* elfcode.h (write_relocs): Make static.  Use PTR argument as a
pointer to a boolean variable set to true if something fails.
Cast to PTR rather than void *.
(sym_is_global): Rewrite for clarity.
(map_program_segments): If the program header size is too small,
call _bfd_error_handler and return failure rather than aborting.
(NAME(bfd_elf,write_object_contents)): Pass boolean variable when
calling write_relocs.
(elf_symbol_from_bfd_symbol): Use BFD_ASSERT rather than abort.
(struct elf_info_failed): Define.
(NAME(bfd_elf,size_dynamic_sections)): Declare variables in inner
blocks.  Pass elf_info_failed structure when calling
elf_export_symbol and elf_adjust_dynamic_symbol.
(elf_export_symbol): Treat data argument as elf_info_failed rather
than bfd_link_info.  Set failed field on error.
(elf_adjust_dynamic_symbol): Likewise.
(struct elf_finfo_failed): Define.
(elf_bfd_final_link): Pass elf_finfo_failed structure when calling
elf_link_output_extsym.  Use BFD_ASSERT rather than abort.
(elf_link_output_extsym): Treat data argument as elf_finfo_failed
rather than elf_final_link_info.  Set failed field on error.
(elf_link_input_bfd): Use BFD_ASSERT rather than abort.
(elf_reloc_link_order): Likewise.

29 years ago * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Only write
Ian Lance Taylor [Mon, 13 Mar 1995 20:39:36 +0000 (20:39 +0000)]
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Only write
out PLTRELSZ, PLTREL and JMPREL relocs if there is a .rela.plt
section.  Solaris 2.4 apparently does not handle empty reloc
information correctly.

29 years ago * archive.c (bsd_write_armap): Cast getuid and getgid results to
Ian Lance Taylor [Mon, 13 Mar 1995 18:49:44 +0000 (18:49 +0000)]
* archive.c (bsd_write_armap): Cast getuid and getgid results to
long, and print with %ld.

29 years ago * mh-hpux8: New file.
Ian Lance Taylor [Mon, 13 Mar 1995 17:37:39 +0000 (17:37 +0000)]
* mh-hpux8: New file.
* mh-hpux: Use X11R5 rather than X11R4.

29 years ago * configure.in (*-hp-hpux[78]*): Use mh-hpux8.
Ian Lance Taylor [Mon, 13 Mar 1995 17:36:19 +0000 (17:36 +0000)]
* configure.in (*-hp-hpux[78]*): Use mh-hpux8.

29 years ago * elf32-arc.c (elf_arc_howto_table): Relocs with implicit addends
David Edelsohn [Sun, 12 Mar 1995 13:26:57 +0000 (13:26 +0000)]
* elf32-arc.c (elf_arc_howto_table): Relocs with implicit addends
don't work too well with zero src_masks.  Correct values.

29 years agoarc-dis.c (print_insn): Put "+ 4" of relative addresses back. Oops.
David Edelsohn [Sun, 12 Mar 1995 13:21:07 +0000 (13:21 +0000)]
arc-dis.c (print_insn): Put "+ 4" of relative addresses back.  Oops.

29 years ago * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
Jim Kingdon [Sat, 11 Mar 1995 05:34:40 +0000 (05:34 +0000)]
* gdb.base/a1-selftest.exp: Remove xfail for solaris.  The bug (PR
1817) was fixed literally years ago.

29 years ago* config/obj-coff.c: Redo my 10 Jan change, but get it right this time. :-)
Ken Raeburn [Sat, 11 Mar 1995 00:30:30 +0000 (00:30 +0000)]
* config/obj-coff.c: Redo my 10 Jan change, but get it right this time. :-)
(fixup_segment): If linkrelax is set, just return.
(write_object_file): Don't treat h8300 and z8k specially with regard to fixups.
* config/tc-h8300.c (md_begin): Set linkrelax.
* config/tc-z8k.c (md_begin): Ditto.

29 years ago* gas/h8300/ffxx1.s: Add .word 0 at the end to eliminate uncertainty as to
Ken Raeburn [Sat, 11 Mar 1995 00:17:26 +0000 (00:17 +0000)]
* gas/h8300/ffxx1.s: Add .word 0 at the end to eliminate uncertainty as to
whether there should be trailing bytes in the output file.
* gas/h8300/ffxx1.d: Adjust reloc values to permit an addend value of
0x00000000ffffffff on 64-bit hosts.  (I'm not sure if this is correct.)  End
with "..." to match trailing zero bytes.

29 years ago * config/tm-arc.h: Change arc register names.
Kung Hsu [Sat, 11 Mar 1995 00:17:15 +0000 (00:17 +0000)]
    * config/tm-arc.h: Change arc register names.

29 years agowhitespace/comment formatting
Ken Raeburn [Fri, 10 Mar 1995 22:33:28 +0000 (22:33 +0000)]
whitespace/comment formatting

29 years ago * aoutx.h (translate_to_native_sym_flags): Always use the output
Ian Lance Taylor [Fri, 10 Mar 1995 21:43:02 +0000 (21:43 +0000)]
* aoutx.h (translate_to_native_sym_flags): Always use the output
section if it is not NULL.
PR 6477.

29 years ago * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
Ian Lance Taylor [Fri, 10 Mar 1995 20:26:49 +0000 (20:26 +0000)]
* ldmain.c (main): Don't set EXEC_P if link_info.shared is set.

29 years ago * ldlex.l: Return -lFILENAME as the token LNAME.
Ian Lance Taylor [Fri, 10 Mar 1995 20:02:51 +0000 (20:02 +0000)]
* ldlex.l: Return -lFILENAME as the token LNAME.
* ldgram.y: Add token LNAME.
(input_list): Treat LNAME like NAME, but pass it to
lang_add_input_file as lang_input_file_is_l_enum.
* ld.texinfo: Document using -lFILENAME in INPUT.

29 years agodefault to keeping rather than losing gdbtk
Stan Shebs [Fri, 10 Mar 1995 19:39:59 +0000 (19:39 +0000)]
default to keeping rather than losing gdbtk

29 years agoAdd verboseness to mpw sanitize, add lose-gdbtk for FSF releases
Stan Shebs [Fri, 10 Mar 1995 19:37:48 +0000 (19:37 +0000)]
Add verboseness to mpw sanitize, add lose-gdbtk for FSF releases

29 years agoFinish sanitization gaffes
Stan Shebs [Fri, 10 Mar 1995 18:39:48 +0000 (18:39 +0000)]
Finish sanitization gaffes

29 years agodocument split-by-reloc and split-by-file
Ian Lance Taylor [Fri, 10 Mar 1995 18:36:43 +0000 (18:36 +0000)]
document split-by-reloc and split-by-file

29 years ago * objcopy.c (strip_options): Add --keep-symbol.
Ian Lance Taylor [Fri, 10 Mar 1995 18:13:31 +0000 (18:13 +0000)]
* objcopy.c (strip_options): Add --keep-symbol.
(copy_options): Likewise.
(copy_usage): Mention --keep-symbol and -K.
(strip_usage): Likewise.
(keep_symbols): New static variable.
(is_strip_symbol): Adjust the return value according to
keep_symbols.
(strip_main): Handle -K.  For -N, check that -K was not given.
(copy_main): Likewise.
* binutils.texi, objcopy.1, strip.1: Document -K.

29 years ago * gdb.c++/templates.exp: Source templ-info.exp only if
Peter Schauer [Fri, 10 Mar 1995 12:18:05 +0000 (12:18 +0000)]
* gdb.c++/templates.exp:  Source templ-info.exp only if
the templates executable exists.

29 years ago * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
Peter Schauer [Fri, 10 Mar 1995 11:24:30 +0000 (11:24 +0000)]
* gdb.base/funcargs.exp (call_after_alloca):  Remove `next'
test, it causes stepping out of call_after_alloca_subr with
optimizing compilers.
(localvars_in_indirect_call):  Consume GDB prompt if `finish'
fails.

* gdb.c++/misc.cc (class Contains_static_instance,
class Contains_nested_static_instance),
gdb.c++/classes.exp (test_static_members):  Test printing of
a class that contains a static instance of the class.

29 years ago Fix problems with infinite recursion when printing a class
Peter Schauer [Fri, 10 Mar 1995 11:21:32 +0000 (11:21 +0000)]
Fix problems with infinite recursion when printing a class
that contains a static instance of the class.
* cp-valprint.c (dont_print_vb_obstack):  Renamed from
dont_print_obstack, made static.
(dont_print_statmem_obstack):  New obstack, controls printing
of static member classes.
(_initialize_cp_valprint):  Initialize it.
(cp_print_static_field):  New function, handles printing of
static members.
(cp_print_value_fields):  New parameter dont_print_statmem to
handle recursive printing of static member classes, use
cp_print_static_field to handle printing of static members.
* c-valprint.c (cp_print_value_fields):  Update prototype and
call to include additional dont_print_statmem parameter.
* c-valprint.c, f-valprint.c (dont_print_obstack):  Remove unused
extern declaration.

* alpha-tdep.c, findvar.c, infptrace.c:  Include <string.h>.

* config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS):  Call
alpha_find_saved_regs if fi->saved_regs is still NULL.

* elfread.c (elf_symtab_read):  Ensure that the filename field
of a minsym is nonempty. Ignore solib trampoline symbols from
the main symbol table, they might have a bogus value.

* procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
Fix typos in comments.

29 years ago * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
Jim Kingdon [Fri, 10 Mar 1995 01:26:09 +0000 (01:26 +0000)]
* mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1.  That way
we know whether the PDR ever got set.
* mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
use the PDR, just examine prologues instead.

29 years ago * config/obj-coff.c (coff_header_append): Check return value of
Ian Lance Taylor [Thu, 9 Mar 1995 23:02:43 +0000 (23:02 +0000)]
* config/obj-coff.c (coff_header_append): Check return value of
bfd_coff_swap_scnhdr_out.

29 years ago * coffswap.h (coff_swap_scnhdr_out): If the line number count or
Ian Lance Taylor [Thu, 9 Mar 1995 22:58:14 +0000 (22:58 +0000)]
* coffswap.h (coff_swap_scnhdr_out): If the line number count or
the reloc count does not fit, print an error and return 0.
* coffcode.h (coff_write_object_contents): Check return value of
coff_swap_scnhdr_out.
* ecoff.c (_bfd_ecoff_write_object_contents): Check return value
of bfd_coff_swap_scnhdr_out.

29 years ago * bfd.c: Include <stdarg.h> or <varargs.h>, depending upon
Ian Lance Taylor [Thu, 9 Mar 1995 22:16:40 +0000 (22:16 +0000)]
* bfd.c: Include <stdarg.h> or <varargs.h>, depending upon
ANSI_PROTOTYPES.
(bfd_error_handler_type): New global type.
(_bfd_error_program_name): New static variable.
(_bfd_default_error_handler): New static function.
(_bfd_error_handler): New BFD private global variable.
(bfd_set_error_handler): New globally visible function.
(bfd_set_error_program_name): New globally visible function.
* libbfd-in.h (_bfd_error_handler): Declare.
* bfd-in2.h, libbfd.h: Rebuild.

29 years ago Delete this patch, it breaks the h8300 assembler.
David Edelsohn [Thu, 9 Mar 1995 21:54:14 +0000 (21:54 +0000)]
Delete this patch, it breaks the h8300 assembler.
Tue Jan 10 13:34:14 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
* config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
specially with regard to fixups.

29 years agoDelete this patch, it breaks the h8300 assembler.
David Edelsohn [Thu, 9 Mar 1995 21:51:42 +0000 (21:51 +0000)]
Delete this patch, it breaks the h8300 assembler.
* config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
specially with regard to fixups.

29 years agokeep new mips4 test files
Ken Raeburn [Thu, 9 Mar 1995 20:28:14 +0000 (20:28 +0000)]
keep new mips4 test files

29 years ago * aoutx.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter,
Ian Lance Taylor [Thu, 9 Mar 1995 20:14:04 +0000 (20:14 +0000)]
* aoutx.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter,
and use it instead of bfd_get_symcount.  Check r_index after
setting r_extern based on whether this is a base relative reloc.
(NAME(aout,swap_std_reloc_IN)): Add symcount parameter, and use it
instead of bfd_get_symcount.
(NAME(aout,slurp_reloc_table)): Pass bfd_get_symcount to reloc
swap routines.
* libaout.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter
to declaration.
(NAME(aout,swap_std_reloc_in)): Likewise.
* sunos.c (sunos_canonicalize_dynamic_reloc): Pass
info->dynsym_count to reloc swap routines.
* aout-ns32k.c (MY_swap_std_reloc_in): Add symcount parameter.
* hp300hpux.c (MY(swap_std_reloc_in)): Likewise.
(MY(slurp_reloc_table)): Pass bfd_get_symcount to reloc swap
routine.
* i386lynx.c (NAME(lynx,swap_ext_reloc_in)): Add symcount
parameter.
(NAME(lynx,swap_std_reloc_in)): Likewise.
(NAME(lynx,slurp_reloc_table)): Pass bfd_get_symcount to reloc
swap routines.

29 years agoAdd support for checking whether all PowerPC ELF modules either use -mrelocatable...
Michael Meissner [Thu, 9 Mar 1995 17:20:20 +0000 (17:20 +0000)]
Add support for checking whether all PowerPC ELF modules either use -mrelocatable or do not.

29 years ago * somsolib.c (som_solib_section_offsets): Get offset of text
Jeff Law [Thu, 9 Mar 1995 06:37:02 +0000 (06:37 +0000)]
* somsolib.c (som_solib_section_offsets): Get offset of text
section right.

29 years ago * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
Stu Grossman [Thu, 9 Mar 1995 00:43:41 +0000 (00:43 +0000)]
* gdbtk.c (gdb_get_breakpoint_info):  Return error if breakpoint
type is not bp_breakpoint.

29 years ago * source.c (forward_search_command reverse_search_command): Set
Stu Grossman [Thu, 9 Mar 1995 00:25:15 +0000 (00:25 +0000)]
* source.c (forward_search_command reverse_search_command):  Set
convenience variable $_ to be the line # of the match.
* symtab.c (decode_line_1):  Allow convenience variables to be
used in line specs (for breakpoints and such).

29 years agofix typo
Michael Meissner [Wed, 8 Mar 1995 23:19:48 +0000 (23:19 +0000)]
fix typo

29 years agoAdd ppc.h
Michael Meissner [Wed, 8 Mar 1995 23:15:42 +0000 (23:15 +0000)]
Add ppc.h

29 years ago * *.exp: Skip all tests silently if skip_chill_tests returns true.
Jim Kingdon [Wed, 8 Mar 1995 21:32:37 +0000 (21:32 +0000)]
* *.exp: Skip all tests silently if skip_chill_tests returns true.

* misc.exp: Remove reference to non-existent variable passcount.

29 years ago* lib/gdb.exp (skip_chill_tests): New procedure.
Jim Kingdon [Wed, 8 Mar 1995 21:30:07 +0000 (21:30 +0000)]
* lib/gdb.exp (skip_chill_tests): New procedure.

29 years ago* gdb.base/signals.exp (signal_tests_1): xfail for irix.
Jim Kingdon [Wed, 8 Mar 1995 21:16:15 +0000 (21:16 +0000)]
* gdb.base/signals.exp (signal_tests_1): xfail for irix.

29 years ago * Makefile.in (VERSION): Bump to 4.14.1.
Stan Shebs [Wed, 8 Mar 1995 21:07:41 +0000 (21:07 +0000)]
* Makefile.in (VERSION): Bump to 4.14.1.
* NEWS, README: Update for 4.14.
* i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
(i386_insert_nonaligned_watchpoint): Call aligned instead of
generic watchpoint insertion.

29 years ago * gas/mips/mips4.d, gas/mips/mips4.s: New files.
Ian Lance Taylor [Wed, 8 Mar 1995 20:51:35 +0000 (20:51 +0000)]
* gas/mips/mips4.d, gas/mips/mips4.s: New files.
* gas/mips/mips.exp: Run new test.

29 years ago * cpu-mips.c (arch_info_struct): Add mips:8000 entry.
Ian Lance Taylor [Wed, 8 Mar 1995 20:47:26 +0000 (20:47 +0000)]
* cpu-mips.c (arch_info_struct): Add mips:8000 entry.

29 years ago * config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
Ian Lance Taylor [Wed, 8 Mar 1995 20:46:47 +0000 (20:46 +0000)]
* config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
r10000.  If mips_isa is 4, set the machine number to 8000.
(append_insn): If mips_isa is at least 4, don't generate nops for
coprocessor delays.  Check INSN_READ_FPR_R when setting
mips_cprmask[1].
(mips_emit_delays): If mips_isa is at least 4, don't generate nops
for coprocessor delays.
(mips_ip): Check for INSN_ISA4 instructions.  Handle new argument
types 'h', 'R', 'N', and 'M'.
(md_longopts): Accept "mips4".
(md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000.
(s_mipsset): Permit .set mips4.

29 years agoAllow .stab section to contain non PC relative addresses if -mrelocatable.
Michael Meissner [Wed, 8 Mar 1995 15:03:50 +0000 (15:03 +0000)]
Allow .stab section to contain non PC relative addresses if -mrelocatable.

29 years ago* m68k-dis.c (BREAK_UP_BIG_DECL): Make secondary array static and const.
Ken Raeburn [Wed, 8 Mar 1995 08:23:24 +0000 (08:23 +0000)]
* m68k-dis.c (BREAK_UP_BIG_DECL): Make secondary array static and const.
(reg_names): Now const.
(print_insn_arg): Arrays cacheFieldName and names now const.
(print_indexed): Array scales now const.

29 years agoSeparated out opcode aliases from m68k opcode table, to reduce table size and
Ken Raeburn [Wed, 8 Mar 1995 08:20:11 +0000 (08:20 +0000)]
Separated out opcode aliases from m68k opcode table, to reduce table size and
processing time.  Aliases are now a separate table.

* m68k.h (enum m68k_architecture): Deleted.
(struct m68k_opcode_alias): New type.
(m68k_opcodes): Now const.  Deleted opcode aliases with exactly matching
constraints, values and flags.  As a side effect of this, the
MOTOROLA_SYNTAX_ONLY and MIT_SYNTAX_ONLY macros, which so far as I know were
never used, now may need re-examining.
(numopcodes): Now const.
(m68k_opcode_aliases, numaliases): New variables.
(endop): Deleted.
[DONT_DEFINE_TABLE]: Declare numopcodes, numaliases, and m68k_opcode_aliases;
update declaration of m68k_opcodes.

29 years ago* config/tc-m68k.c (opcode_ptr): Return pointer to const.
Ken Raeburn [Wed, 8 Mar 1995 08:10:49 +0000 (08:10 +0000)]
* config/tc-m68k.c (opcode_ptr): Return pointer to const.
(md_begin): Make hash table errors fatal.  Process opcode aliases after main
opcode table.
(md_apply_fix_2, case 4): Recode setting of lower_limit to avoid gcc warning.

29 years agoAvoid bogus assumption that the two parts of the split m68k opcode table
Ken Raeburn [Wed, 8 Mar 1995 07:57:05 +0000 (07:57 +0000)]
Avoid bogus assumption that the two parts of the split m68k opcode table
are going to be adjacent in memory.

29 years ago * elfcode.h (swap_out_syms): Mark an undefined BSF_WEAK symbol as
Ian Lance Taylor [Wed, 8 Mar 1995 05:56:53 +0000 (05:56 +0000)]
* elfcode.h (swap_out_syms): Mark an undefined BSF_WEAK symbol as
STB_WEAK rather than STB_GLOBAL.

29 years ago * arc-dis.c (print_insn_arc_base): Split into big and little fns.
David Edelsohn [Wed, 8 Mar 1995 05:19:46 +0000 (05:19 +0000)]
* arc-dis.c (print_insn_arc_base): Split into big and little fns.
(print_insn_arc_{host,graphics,audio}): Likewise.
(print_insn): Add prototype.
Delete "+ 4" addition to relative branch address.
(arc_get_disassembler): New arg `big_p'.  Return little or big
print fn accordingly.
* arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
(arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
(arc_opval_supported): Likewise.
* disassemble.c (disassembler): Pass big endian flag to
arc_get_disassembler.

29 years ago * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
David Edelsohn [Wed, 8 Mar 1995 05:11:53 +0000 (05:11 +0000)]
* emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
(LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.

29 years ago * arc.h (ARC_MACH_BIG): Define.
David Edelsohn [Wed, 8 Mar 1995 05:06:02 +0000 (05:06 +0000)]
* arc.h (ARC_MACH_BIG): Define.
(ARC_MACH_MASK): Update.
(ARC_MACH_CPU_MASK): Define.
(ARC_OPCODE_CPU, ARC_OPVAL_CPU, ARC_HAVE_CPU): Likewise.

29 years agoPatches to ARC to make byte order runtime selectable.
David Edelsohn [Wed, 8 Mar 1995 04:47:31 +0000 (04:47 +0000)]
Patches to ARC to make byte order runtime selectable.

29 years ago * configure.in (SELECT_VECS): Split bfd_elf32_arc_vec into big/little.
David Edelsohn [Wed, 8 Mar 1995 04:41:13 +0000 (04:41 +0000)]
* configure.in (SELECT_VECS): Split bfd_elf32_arc_vec into big/little.
* targets.c (bfd_target_vector): Likewise.
* elf32-arc.c (TARGET_BIG_SYM): Define.
(TARGET_BIG_NAME): Define.
* config/arc-elf.mt (DEFAULT_VECTOR): Set to bfd_elf32_littlearc_vec.
(SELECT_VECS): Add bfd_elf32_bigarc_vec.

29 years ago * string.ch, string.exp, Makefile.in: New test case.
Per Bothner [Wed, 8 Mar 1995 03:29:55 +0000 (03:29 +0000)]
* string.ch, string.exp, Makefile.in:  New test case.
This is PR 5696.

29 years ago * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
Per Bothner [Wed, 8 Mar 1995 03:26:21 +0000 (03:26 +0000)]
* valops.c (value_slice):  Do COERCE_VARYING_ARRAY.
This fixes PR 5696.

29 years ago * monitor.c array-rom.c monitor.h rom68k-rom.c: Move target_ops
Stu Grossman [Wed, 8 Mar 1995 03:21:51 +0000 (03:21 +0000)]
* monitor.c array-rom.c monitor.h rom68k-rom.c:  Move target_ops
into monitor.c.
* monitor.c (monitor_create_inferior):  Allow run command to start
program.

29 years ago * monitor.c (monitor_load): Set PC to start address when done
Stu Grossman [Wed, 8 Mar 1995 01:18:08 +0000 (01:18 +0000)]
* monitor.c (monitor_load):  Set PC to start address when done
loading.

* array-rom.c monitor.h rom68k-rom.c:  Clean up target_ops.
Remove ref to monitor_create_inferior.

29 years ago * monitor.c: More general cleanups. Add prototypes, remove
Stu Grossman [Wed, 8 Mar 1995 00:06:55 +0000 (00:06 +0000)]
* monitor.c:  More general cleanups.  Add prototypes, remove
unused routines.  Fix bug with wrong number of args to error().

29 years ago * ppc-opc.c: Sort recently added instructions by minor opcode
Ian Lance Taylor [Tue, 7 Mar 1995 21:48:27 +0000 (21:48 +0000)]
* ppc-opc.c: Sort recently added instructions by minor opcode
number within major opcode number.

29 years ago * doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans
Ian Lance Taylor [Tue, 7 Mar 1995 21:08:53 +0000 (21:08 +0000)]
* doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans
<dje@cygnus.com>.

29 years ago * coffcode.h (bfd_coff_backend_data): Add new field
Ian Lance Taylor [Tue, 7 Mar 1995 19:56:31 +0000 (19:56 +0000)]
* coffcode.h (bfd_coff_backend_data): Add new field
_bfd_coff_adjust_symndx.
(bfd_coff_adjust_symndx): Define.
(coff_adjust_symndx): Define as NULL if not already defined.
(bfd_coff_std_swap_table): Initialize new field to
coff_adjust_symndx.
* cofflink.c (coff_link_input_bfd): Call coff_adjust_symndx if it
is defined.
* coff-a29k.c (coff_a29k_adjust_symndx): New static function.
(coff_adjust_symndx): Define before including coffcode.h.
* libcoff.h: Rebuild.

29 years ago * format.c (bfd_check_format_matches): Skip binary_vec when
Ian Lance Taylor [Tue, 7 Mar 1995 19:32:39 +0000 (19:32 +0000)]
* format.c (bfd_check_format_matches): Skip binary_vec when
searching through bfd_target_vector.

29 years ago * elfcode.h (elf_sort_hdrs): Check SHT_NOBITS before checking
Ian Lance Taylor [Tue, 7 Mar 1995 17:25:07 +0000 (17:25 +0000)]
* elfcode.h (elf_sort_hdrs): Check SHT_NOBITS before checking
sh_size.

29 years ago * main.c (main): Don't start up GUI when running under gdb mode
Stu Grossman [Tue, 7 Mar 1995 09:32:29 +0000 (09:32 +0000)]
* main.c (main):  Don't start up GUI when running under gdb mode
in emacs.

29 years ago * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
Stu Grossman [Tue, 7 Mar 1995 09:26:39 +0000 (09:26 +0000)]
* Makefile.in:  Add rules for monitor.o and rom68k-rom.o to make
Sun make (with VPATH) work...

* monitor.c monitor.h rom68k-rom.c:  Serious cleanup to make IDP
(rom68k) target work right.
* array-rom.c op50-rom.c w89k-rom.c:  Partial updates to new
monitor.c interface.  More work needs to be done here.
* config/m68k/tm-monitor.h:  Change DECR_PC_AFTER_BREAK to 0 to
match the IDP monitor.  Also, set NUM_REGS to 18 cuz there's no
floating-point for this card.

29 years ago * command.h command.c top.c: Add var_enum command type. It's
Stu Grossman [Tue, 7 Mar 1995 09:06:16 +0000 (09:06 +0000)]
* command.h command.c top.c:  Add var_enum command type.  It's
like var_string but allows only only one of the specified strings.

29 years ago * serial.h ser-go32.c ser-go32-para.c ser-mac.c ser-tcp.c
Stu Grossman [Tue, 7 Mar 1995 09:03:37 +0000 (09:03 +0000)]
* serial.h ser-go32.c ser-go32-para.c ser-mac.c ser-tcp.c
ser-unix.c:  Add SERIAL_SETSTOPBITS to set the number of stopbits
(needed for IDP board?!?!?).

29 years ago * defs.h utils.c remote-hms.c remote-pa.c remote.c: Fix defs and
Stu Grossman [Tue, 7 Mar 1995 08:57:32 +0000 (08:57 +0000)]
* defs.h utils.c remote-hms.c remote-pa.c remote.c:  Fix defs and
usage of fputc_unfiltered and putchar_unfiltered.  Eliminate
putc_unfiltered (it's superfluous).

29 years ago * command.h command.c: Add var_enum command type. It's like
Stu Grossman [Tue, 7 Mar 1995 08:32:55 +0000 (08:32 +0000)]
* command.h command.c:  Add var_enum command type.  It's like
var_string but allows only only one of the specified strings.

29 years ago * elfcode.h (elf_sort_hdrs): Keep SHT_NOBITS sections after
David Edelsohn [Tue, 7 Mar 1995 07:34:21 +0000 (07:34 +0000)]
* elfcode.h (elf_sort_hdrs): Keep SHT_NOBITS sections after
!SHT_NOBITS ones.

29 years ago * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
Ian Lance Taylor [Tue, 7 Mar 1995 05:53:47 +0000 (05:53 +0000)]
* ldemul.c (ldemul_choose_mode): If emulation not recognized, list
all supported emulations.

29 years ago * valops.c (value_cast): Don't use backslash newline--pre-ANSI
Jim Kingdon [Mon, 6 Mar 1995 23:12:02 +0000 (23:12 +0000)]
* valops.c (value_cast): Don't use backslash newline--pre-ANSI
compilers (such as SunOS4 /bin/cc) don't generally support it
except in some contexts.

29 years ago * tuples.ch (setnmode); New module.
Per Bothner [Mon, 6 Mar 1995 22:11:17 +0000 (22:11 +0000)]
    * tuples.ch (setnmode);  New module.
        * tuples.exp:  Add some extra tests.
These are from PR 5024.

29 years ago * ldemul.c (ldemul_list_emulations): New function.
Ian Lance Taylor [Mon, 6 Mar 1995 19:21:33 +0000 (19:21 +0000)]
* ldemul.c (ldemul_list_emulations): New function.
* ldemul.h (ldemul_list_emulations): Declare.
* ldver.c (help): List supported targets and emulations.
PR 6345.

29 years ago * bucomm.c (list_supported_targets): New function.
Ian Lance Taylor [Mon, 6 Mar 1995 18:49:17 +0000 (18:49 +0000)]
* bucomm.c (list_supported_targets): New function.
* bucomm.h (list_supported_targets): Declare.
* ar.c (usage): Call list_supported_targets.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage, strip_usage): Likewise.
* objdump.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
PR 6345.

29 years ago * configure.in (noconfigdirs): Don't build gas on AIX, for
Jim Kingdon [Mon, 6 Mar 1995 18:27:41 +0000 (18:27 +0000)]
* configure.in (noconfigdirs): Don't build gas on AIX, for
powerpc*-*-aix* as well as for rs6000*-*-aix*.

29 years ago * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
Jeff Law [Mon, 6 Mar 1995 17:46:26 +0000 (17:46 +0000)]
* gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
each expect pattern.  Cuts runtime from 12 to about 4 seconds.

29 years ago * hppa-dis.c: Include libhppa.h.
Jeff Law [Mon, 6 Mar 1995 17:05:20 +0000 (17:05 +0000)]
* hppa-dis.c: Include libhppa.h.

29 years ago * hppa.h (delay_type): Delete unused enumeration.
Jeff Law [Mon, 6 Mar 1995 17:04:18 +0000 (17:04 +0000)]
* hppa.h (delay_type): Delete unused enumeration.
(pa_opcode): Replace unused delayed field with an architecture
field.
(pa_opcodes): Mark each instruction as either PA1.0 or PA1.1.

29 years ago * config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to
Jeff Law [Mon, 6 Mar 1995 17:02:38 +0000 (17:02 +0000)]
* config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to
be consistent with current naming conventions.
(md_begin): Set a default architecture and machine type.
(pa_ip): If the current instruction specifies a newer machine type
than the current machine type, then update the current machine
type.
(need_pa11_opcode): Likewise.

29 years ago * cpu-hppa.c (arch_info_struct): Support both PA1.0 and PA1.1
Jeff Law [Mon, 6 Mar 1995 17:00:18 +0000 (17:00 +0000)]
* cpu-hppa.c (arch_info_struct): Support both PA1.0 and PA1.1
machine types.
(bfd_hppa_arch): Link in both PA1.0 and PA1.1 architecture info
structures.
* libhppa.h (enum pa_arch): New enumeration to describe the
different variants of the PA architecture.
* som.c (som_object_setup): Use new enumeration to set machine
type.
(som_finish_writing): If the machine type is PA1.1, then use the
PA1.1 machine identifier in the output file.

29 years ago * config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
Jeff Law [Mon, 6 Mar 1995 02:42:14 +0000 (02:42 +0000)]
* config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
relocation bits for absolute calls.

29 years agoFix typo in spelling.
Michael Tiemann [Sun, 5 Mar 1995 18:15:30 +0000 (18:15 +0000)]
Fix typo in spelling.

29 years ago * callch.ch, callch.exp, Makefile.in: New test case.
Per Bothner [Sat, 4 Mar 1995 23:15:48 +0000 (23:15 +0000)]
* callch.ch, callch.exp, Makefile.in:  New test case.
Extended testing for PR 6292.

29 years ago * valops.c (value_cast): Cehck for cast to array type *before*
Per Bothner [Sat, 4 Mar 1995 02:24:26 +0000 (02:24 +0000)]
* valops.c (value_cast):  Cehck for cast to array type *before*
we coerce array to pointer (in case arg2 is already array).

* valops.c (call_function_by_hand):  Set using_gcc to 2 if using
gcc2.  Needed for REG_STRUCT_HAS_ADDR to work on sparc.
Also check REG_STRUCT_HAS_ADDR for union, array and string types.

* valops.c (call_function_by_hand):  Re-arrange code for pushing
paramaters on the stack so we can do better STACK_ALIGN.

* valops.c (call_function_by_hand):  Call error if the number
of arguments is fewer than parameter types in function type.

29 years ago * sparc-tdep.c (sparc_extract_struct_value_address): Move
David Edelsohn [Sat, 4 Mar 1995 01:37:30 +0000 (01:37 +0000)]
* sparc-tdep.c (sparc_extract_struct_value_address): Move
sparc64 support to here.
(sparc64_extract_struct_value_address): Deleted.
(dump_ccreg): Add a prototype so long long arg -> int.
* sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.

29 years ago * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
David Edelsohn [Sat, 4 Mar 1995 01:35:34 +0000 (01:35 +0000)]
* sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.

29 years ago * hpread.c (hpread_record_lines): New argument "offset". All
Jeff Law [Sat, 4 Mar 1995 00:55:45 +0000 (00:55 +0000)]
* hpread.c (hpread_record_lines): New argument "offset".  All
callers changed.  Use it to handle dynamic address relocation.
(hpread_build_psymtabs): Adjust texthigh as we read each function
debug symbol.  Fix computation of texthigh.
(hpread_read_subrange_type): Work around macro bugs in HP's
compilers.
(hpread_process_one_debug_symbol): Correctly map source lines.

29 years ago * hosts/mpw.h (SEEK_SET, SEEK_CUR, BYTES_IN_PRINTF_INT):
Stan Shebs [Sat, 4 Mar 1995 00:47:01 +0000 (00:47 +0000)]
* hosts/mpw.h (SEEK_SET, SEEK_CUR, BYTES_IN_PRINTF_INT):
Remove definitions.
(mpw_fread, mpw_fwrite): Declare, define as substitutes
for fread and fwrite.

29 years ago* config/tc-h8300.* (md_operand): Change empty function to empty macro.
Ken Raeburn [Fri, 3 Mar 1995 22:55:46 +0000 (22:55 +0000)]
* config/tc-h8300.* (md_operand): Change empty function to empty macro.

* config/tc-h8300.c (build_bytes): Make H8/300-H warning message clearer.

29 years agom68k entry i forgot to check in
Ken Raeburn [Fri, 3 Mar 1995 22:49:11 +0000 (22:49 +0000)]
m68k entry i forgot to check in

29 years ago* write.c (write_contents): If bfd_set_section_contents fails, print a message
Ken Raeburn [Fri, 3 Mar 1995 22:44:04 +0000 (22:44 +0000)]
* write.c (write_contents): If bfd_set_section_contents fails, print a message
and exit, instead of aborting.

29 years ago * somread.c (check_strange_names): Filter names emitted by the HP
Jeff Law [Fri, 3 Mar 1995 22:25:27 +0000 (22:25 +0000)]
* somread.c (check_strange_names): Filter names emitted by the HP
compiler when generating PIC code.

29 years ago * valops.c (value_struct_elt_for_reference): Work around macro
Jeff Law [Fri, 3 Mar 1995 22:15:23 +0000 (22:15 +0000)]
* valops.c (value_struct_elt_for_reference): Work around macro
bugs in HP's compilers.
* c-exp.y (block): Likewise.

29 years ago * emultempl/elf32.em (hold_rel): New static variable.
Ian Lance Taylor [Fri, 3 Mar 1995 22:09:24 +0000 (22:09 +0000)]
* emultempl/elf32.em (hold_rel): New static variable.
(gld${EMULATION_NAME}_place_orphan): Place readonly sections with
contents whose names begin with ".rel" after hold_rel.  Remove the
assertion which checked for unplaced .rel sections.  Don't try to
sort the section into place if place->bfd_section is NULL.
(gld${EMULATION_NAME}_place_section): Set hold_rel to the first
section beginning with ".rel".

29 years ago * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
Jim Kingdon [Fri, 3 Mar 1995 21:47:14 +0000 (21:47 +0000)]
* rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
store_address.

29 years ago* utils.c [_AIX]: Include stddef.h instead of #defining size_t.
Jim Kingdon [Fri, 3 Mar 1995 21:38:54 +0000 (21:38 +0000)]
* utils.c [_AIX]: Include stddef.h instead of #defining size_t.

29 years agoIf -mrelocatable, warn about relocs that are incompatible.
Michael Meissner [Fri, 3 Mar 1995 21:34:36 +0000 (21:34 +0000)]
If -mrelocatable, warn about relocs that are incompatible.