binutils-gdb.git
27 years ago * values.c (unpack_double): Make it compile with MSVC++ 2.x.
Mark Alexander [Thu, 19 Dec 1996 17:45:57 +0000 (17:45 +0000)]
* values.c (unpack_double): Make it compile with MSVC++ 2.x.
* remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g.
when using MSVC++.
(common_open): Fix help string.

27 years ago * write.c (adjust_reloc_syms): If the fixup symbol has been
Ian Lance Taylor [Thu, 19 Dec 1996 17:07:14 +0000 (17:07 +0000)]
* write.c (adjust_reloc_syms): If the fixup symbol has been
equated to an undefined symbol, convert the fixup to being against
the target symbol.  Remove obsolete code handling a special case
for i386 PIC.

27 years agoWed Dec 18 16:00:42 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Thu, 19 Dec 1996 00:01:58 +0000 (00:01 +0000)]
Wed Dec 18 16:00:42 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d10v.c (do_assemble): Correct previous bug fix.

27 years agoWed Dec 18 15:27:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 18 Dec 1996 23:38:41 +0000 (23:38 +0000)]
Wed Dec 18 15:27:40 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* tc-d10v.c (md_assemble): Fix bug which caused
second instruction in a line to be case sensitize. PR11312

27 years agoWed Dec 18 15:27:40 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 18 Dec 1996 23:38:22 +0000 (23:38 +0000)]
Wed Dec 18 15:27:40 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d10v.c (md_assemble): Fix bug which caused
second instruction in a line to be case sensitize. PR11312

27 years ago * configure.in (mips*-sgi-irix6*): Remove binutils from noconfigdirs.
Jim Wilson [Wed, 18 Dec 1996 21:16:03 +0000 (21:16 +0000)]
* configure.in (mips*-sgi-irix6*): Remove binutils from noconfigdirs.

27 years ago * configure.in: Do build gcc and the target libraries for
Jeff Law [Wed, 18 Dec 1996 17:33:50 +0000 (17:33 +0000)]
    * configure.in: Do build gcc and the target libraries for
        the mn10200.

27 years ago * interp.c (sim_resume): Handle 0xff as a single byte insn.
Jeff Law [Wed, 18 Dec 1996 17:15:21 +0000 (17:15 +0000)]
    * interp.c (sim_resume): Handle 0xff as a single byte insn.

        * simops.c: Fix overflow computation for "add" and "inc"
        instructions.

27 years ago * config/tc-mn10200.c (mn10200_insert_operand): Don't
Jeff Law [Wed, 18 Dec 1996 17:14:10 +0000 (17:14 +0000)]
    * config/tc-mn10200.c (mn10200_insert_operand): Don't
        range check operands with MN10200_OPERAND_NOCHECK set.
        (check_operand): Likewise.
So the assembler won't check on "and -1,dn".

27 years ago * mn10200-opc.c (mn10200_operands): Add SIMM16N.
Jeff Law [Wed, 18 Dec 1996 17:12:16 +0000 (17:12 +0000)]
    * mn10200-opc.c (mn10200_operands): Add SIMM16N.
        (mn10200_opcodes): Use it for some logicals and btst insns.
        Add "break" and "trap" instructions.

27 years ago * mn10200.h (MN10200_OPERAND_NOCHECK): Define.
Jeff Law [Wed, 18 Dec 1996 17:10:38 +0000 (17:10 +0000)]
    * mn10200.h (MN10200_OPERAND_NOCHECK): Define.

27 years ago * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
Jeff Law [Wed, 18 Dec 1996 17:09:59 +0000 (17:09 +0000)]
    * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
        32 bit relocs.
        (elf_mn10200_howto_table): Likewise.
        (mn10200_reloc_map): Likewise.
To keep the assembler quiet.

27 years ago * config/tc-mips.c: Undo part of last Friday's alignment changes.
Ian Lance Taylor [Wed, 18 Dec 1996 01:01:56 +0000 (01:01 +0000)]
* config/tc-mips.c: Undo part of last Friday's alignment changes.
  (md_begin): Always align the text section to a four byte
boundary.
(append_insn): Remove call to record_align.

27 years agoGetting there ...
David Edelsohn [Tue, 17 Dec 1996 21:08:20 +0000 (21:08 +0000)]
Getting there ...

27 years agofixed .Sanitize
Geoffrey Noer [Tue, 17 Dec 1996 20:59:13 +0000 (20:59 +0000)]
fixed .Sanitize

27 years ago * config/tc-mips.c (insn_label): Remove.
Ian Lance Taylor [Tue, 17 Dec 1996 20:58:57 +0000 (20:58 +0000)]
* config/tc-mips.c (insn_label): Remove.
(struct insn_label_list): Define.
(insn_labels, free_insn_labels): New static variables.
(mips_clear_insn_labels): New static function.
(append_insn): Mark all mips16 text labels, and make them odd.
Handle all labels after emitting a nop, not just one.  Call
mips_clear_insn_labels rather than just clearing insn_label.
(mips_emit_delays): Add insns parameter, and use it to decide
whether to mark mips16 labels.  Handle all labels, not just one.
Force mips16 labels to be odd.  Change all callers.
(mips16_immed): Don't check for an odd branch target.
(md_apply_fix): Don't check mips16 mode for a branch reloc.
(mips16_extended_frag): Ignore the low bit in a branch target.
(md_convert_frag): Likewise.
(mips_no_prev_insn): Call mips_clear_insn_labels rather than just
clearing insn_label.
(mips_align, mips_flush_pending_output, s_cons): Likewise.
(s_float_cons, s_gpword): Likewise.
(s_align): Use insn_labels rather than insn_label.
(s_cons, s_float_cons, s_gpword): Likewise.
(mips_frob_file_after_relocs): New function.
(mips_define_label): Rewrite to add to insn_labels list.
* config/tc-mips.h (tc_frob_file_after_relocs): Define.
* ecoff.c (ecoff_build_symbols): If the size of a function comes
out odd, increment it.

27 years agofix typo
Angela Marie Thomas [Tue, 17 Dec 1996 20:02:15 +0000 (20:02 +0000)]
fix typo

27 years agoadd missing Do-last:
Angela Marie Thomas [Tue, 17 Dec 1996 19:45:09 +0000 (19:45 +0000)]
add missing Do-last:

27 years ago * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
Ian Lance Taylor [Tue, 17 Dec 1996 18:58:59 +0000 (18:58 +0000)]
* elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
mips16 symbol during the link.
(mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
mips16 symbol.
(mips_elf_link_output_symbol_hook): New static function.
(elf_backend_link_output_symbol_hook): Define.

27 years ago * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
Ian Lance Taylor [Tue, 17 Dec 1996 16:12:58 +0000 (16:12 +0000)]
* elf.c (bfd_elf_print_symbol): Print the st_other field if it is
not zero.

27 years ago * config/tc-mips.c (mips16_ip): Check for a missing expression
Ian Lance Taylor [Tue, 17 Dec 1996 16:00:55 +0000 (16:00 +0000)]
* config/tc-mips.c (mips16_ip): Check for a missing expression
when using the register indirect addressing mode.

27 years ago * simops.c: Handle "break" instruction.
Jeff Law [Mon, 16 Dec 1996 22:31:37 +0000 (22:31 +0000)]
    * simops.c: Handle "break" instruction.

27 years ago * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
Jeff Law [Mon, 16 Dec 1996 22:28:24 +0000 (22:28 +0000)]
    * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
For gdb.

27 years ago Link with SIM_EXTRA_LIBS, not just EXTRA_LIBS, which is never set.
Rob Savoye [Mon, 16 Dec 1996 22:16:24 +0000 (22:16 +0000)]
  Link with SIM_EXTRA_LIBS, not just EXTRA_LIBS, which is never set.

27 years ago * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
Ian Lance Taylor [Mon, 16 Dec 1996 21:47:23 +0000 (21:47 +0000)]
* gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
(build_endian_shift): Don't check proc64.
(build_instruction): Always set memval to uword64.  Cast op2 to
uword64 when shifting it left in memory instructions.  Always use
the same code for stores--don't special case proc64.

27 years agoMon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Mon, 16 Dec 1996 21:39:47 +0000 (21:39 +0000)]
Mon Dec 16 13:39:03 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* interp.c (xfer_mem): Change unified memory to 0x0.

27 years ago * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
Jeff Law [Mon, 16 Dec 1996 20:05:07 +0000 (20:05 +0000)]
    * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".

27 years ago * gencode.c (build_mips16_operands): Fix base PC value for PC
Ian Lance Taylor [Mon, 16 Dec 1996 20:01:15 +0000 (20:01 +0000)]
* gencode.c (build_mips16_operands): Fix base PC value for PC
relative operands.
(build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
jal instruction.
* interp.c (simJALDELAYSLOT): Define.
  (JALDELAYSLOT): Define.
(INDELAYSLOT, INJALDELAYSLOT): Define.
(simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.

27 years ago * elf.c (bfd_section_from_shdr): Don't check for reloc sections
Ian Lance Taylor [Mon, 16 Dec 1996 19:39:39 +0000 (19:39 +0000)]
* elf.c (bfd_section_from_shdr): Don't check for reloc sections
against SEC_DEBUGGING sections here (revert patch of December 5).
* elfcode.h (elf_object_p): Check for them here, instead.

27 years ago * config/tc-mn10200.c (mn10200_insert_operand): Don't
Jeff Law [Mon, 16 Dec 1996 17:13:38 +0000 (17:13 +0000)]
    * config/tc-mn10200.c (mn10200_insert_operand): Don't
        check 24bit operands for overflow.
        (check_operand): Likewise.

27 years ago * simops.c: Fix restoring the PC for "ret" and "retf" instructions.
Jeff Law [Mon, 16 Dec 1996 17:08:10 +0000 (17:08 +0000)]
    * simops.c: Fix restoring the PC for "ret" and "retf" instructions.

27 years ago * doc/as.texinfo (Section): Document how to use the .section
Ian Lance Taylor [Mon, 16 Dec 1996 16:54:10 +0000 (16:54 +0000)]
* doc/as.texinfo (Section): Document how to use the .section
pseudo-op for COFF and ELF.

27 years ago * write.c (adjust_reloc_syms): Fix linkonce check for ELF.
Ian Lance Taylor [Sun, 15 Dec 1996 20:27:08 +0000 (20:27 +0000)]
* write.c (adjust_reloc_syms): Fix linkonce check for ELF.

27 years agomention mips16
Ian Lance Taylor [Sun, 15 Dec 1996 20:26:46 +0000 (20:26 +0000)]
mention mips16

27 years agoobjdump --dynamic-reloc now works with ELF
Ian Lance Taylor [Sun, 15 Dec 1996 20:00:20 +0000 (20:00 +0000)]
objdump --dynamic-reloc now works with ELF

27 years ago * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
Ian Lance Taylor [Sun, 15 Dec 1996 19:59:18 +0000 (19:59 +0000)]
* elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
* elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
slurp_reloc_table.
(_bfd_elf_get_dynamic_reloc_upper_bound): New function.
(_bfd_elf_canonicalize_dynamic_reloc): New function.
* elf-bfd.h (struct elf_size_info): Update declaration of
slurp_reloc_table.
(_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
(_bfd_elf_canonicalize_dynamic_reloc): Declare.
* elfxx-target.h: Use new dynamic reloc routines by default.
* elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
parameter.

27 years ago * config/mips/tm-mips.h (FIX_CALL_DUMMY): Define to set up $25
Mark Alexander [Sun, 15 Dec 1996 04:59:33 +0000 (04:59 +0000)]
* config/mips/tm-mips.h (FIX_CALL_DUMMY): Define to set up $25
correctly for PIC on Irix 5.

27 years ago * mips-tdep.c (mips_push_arguments): Handle floating point args.
Mark Alexander [Sun, 15 Dec 1996 04:59:14 +0000 (04:59 +0000)]
* mips-tdep.c (mips_push_arguments): Handle floating point args.
* config/mips/tm-mips.h (FIX_CALL_DUMMY): Define to set up $25
correctly for PIC on Irix 5.

27 years ago * config/tc-mips.c (prev_insn_reloc_type): New static variable.
Ian Lance Taylor [Sun, 15 Dec 1996 03:42:36 +0000 (03:42 +0000)]
* config/tc-mips.c (prev_insn_reloc_type): New static variable.
(RELAX_MIPS16_ENCODE): Add dslot and jal_dslot arguments, and
store them.  Adjust other RELAX_MIPS16 macros.
(RELAX_MIPS16_DSLOT): Define.
(RELAX_MIPS16_JAL_DSLOT): Define.
(append_insn): Pass new arguments to RELAX_MIPS16_ENCODE.  Correct
handling of whether previous instruction has a fixup.  Set
prev_insn_reloc_type.
(mips_no_prev_insn): Clear prev_insn_reloc_type.
(mips16_extended_frag): Use the right base address for a PC
relative add or load.
(md_convert_frag): Likewise.  If a PC relative add or load is
used, record the alignment for the section.

27 years ago * mips-dis.c (print_mips16_insn_arg): The base address of a PC
Ian Lance Taylor [Sun, 15 Dec 1996 03:37:08 +0000 (03:37 +0000)]
* mips-dis.c (print_mips16_insn_arg): The base address of a PC
relative load or add now depends upon whether the instruction is
in a delay slot.

27 years ago * i386-tdep.c (i386_frame_find_saved_regs): Handle zero return
Peter Schauer [Sat, 14 Dec 1996 17:54:53 +0000 (17:54 +0000)]
* i386-tdep.c (i386_frame_find_saved_regs):  Handle zero return
from get_pc_function_start gracefully.

27 years ago * mn10200.h: Fix comment, mn10200_operand not powerpc_operand.
Fred Fish [Sat, 14 Dec 1996 17:52:07 +0000 (17:52 +0000)]
* mn10200.h: Fix comment, mn10200_operand not powerpc_operand.
* mn10300.h: Fix comment, mn10300_operand not powerpc_operand.
* v850.h: Fix comment, v850_operand not powerpc_operand.

27 years ago * c-exp.y (qualified_name): Replace explicit check for valid
Peter Schauer [Sat, 14 Dec 1996 09:17:22 +0000 (09:17 +0000)]
* c-exp.y (qualified_name):  Replace explicit check for valid
destructor name with call to destructor_name_p.

* c-lang.h, c-typeprint.c (cp_type_print_method_args):  Removed,
no longer needed.

* c-typeprint.c (c_type_print_varspec_prefix, c_type_print_base):
Replace remaining fprintf_unfiltered calls with their filtered variant.
(c_type_print_base):  Do not print return type for destructors from
template classes.
Replace cp_type_print_method_args with cplus_demangle call to get
consistent type output for stubbed and unstubbed methods.

* cp-valprint.c (cp_print_class_method):  Replace
cp_type_print_method_args with cplus_demangle call to get consistent
type output for stubbed and unstubbed methods.

* gdbtypes.c, gdbtypes.h (get_destructor_fn_field):  New function
to find the destructor field indices for a type.

* gdbtypes.h (struct type):  Clarify comments for vptr_basetype
and arg_types fields.
(struct fn_field):  Remove args field, no longer used.

* symtab.c (decode_line_1), valops.c (value_struct_elt,
check_field_in):  Use get_destructor_fn_field to find the destructor
field indices instead of assuming that the compiler passes the member
function fields in a specific order.

* symtab.c (find_methods):  Pass NULL instead of SYMBOL_BLOCK_VALUE
to lookup_symbol.
(list_symbol):  Replace cp_type_print_method_args with cplus_demangle
call in zapped out code and explain why this code is zapped out.

27 years agoMake __{e,g}p correctly start relative to the beginning of the section; Cleanup
Michael Meissner [Fri, 13 Dec 1996 20:37:35 +0000 (20:37 +0000)]
Make __{e,g}p correctly start relative to the beginning of the section; Cleanup

27 years ago * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
David Edelsohn [Fri, 13 Dec 1996 19:17:46 +0000 (19:17 +0000)]
* libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
At the request of matra.

27 years ago * write.c (adjust_reloc_syms): Don't reduce a reloc against a
Ian Lance Taylor [Fri, 13 Dec 1996 18:27:28 +0000 (18:27 +0000)]
* write.c (adjust_reloc_syms): Don't reduce a reloc against a
linkonce section into a reloc against the section symbol.

27 years agoFri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
Ian Lance Taylor [Fri, 13 Dec 1996 18:21:03 +0000 (18:21 +0000)]
Fri Dec 13 13:18:49 1996  Dan Wilder  <dan@gasboy.com>

* coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
if NAMES_HAVE_UNDERSCORE is defined.

27 years ago * config/tc-mips.c (mips16_macro): Remove nop instructions after
Ian Lance Taylor [Fri, 13 Dec 1996 18:13:05 +0000 (18:13 +0000)]
* config/tc-mips.c (mips16_macro): Remove nop instructions after
branch instructions.

27 years ago * gas/mips/*.[sd]: Add explicit nops, sometimes controlled by
Ian Lance Taylor [Fri, 13 Dec 1996 18:06:41 +0000 (18:06 +0000)]
* gas/mips/*.[sd]: Add explicit nops, sometimes controlled by
.ifdef, to accomodate change to avoid default alignment on
embedded systems.

27 years ago * config/tc-mips.c (md_begin): If configured for an embedded ELF
Ian Lance Taylor [Fri, 13 Dec 1996 18:02:35 +0000 (18:02 +0000)]
* config/tc-mips.c (md_begin): If configured for an embedded ELF
system, don't set the section alignment to 2**4.
(s_change_sec): Likewise.
(append_insn): Call record_alignment for the section.
(md_section_align): Don't align the section size for an embedded
ELF system.

27 years ago * Makefile.in (emn10200.c): Add dependencies.
Jeff Law [Fri, 13 Dec 1996 17:27:19 +0000 (17:27 +0000)]
    * Makefile.in (emn10200.c): Add dependencies.
        * configure.tgt: Handle mn10200.
        * emulparms/mn10200.sh: New file.

mn10200 linker.  Somehow I forgot to commit everything yesterday.

27 years ago * elflink.h (elf_link_add_object_symbols): Only add a weak
Ian Lance Taylor [Fri, 13 Dec 1996 02:29:37 +0000 (02:29 +0000)]
* elflink.h (elf_link_add_object_symbols): Only add a weak
symbol if the real definition is in the dynamic symbol table.
After finding the real definition, then, if it is dynamic, add the
weak symbol to the dynamic symbol table.
PR 11244.

27 years ago * config/obj-coff.c (fixup_segment): Make sure that symbols are
Ian Lance Taylor [Thu, 12 Dec 1996 22:41:22 +0000 (22:41 +0000)]
* config/obj-coff.c (fixup_segment): Make sure that symbols are
resolved; expression symbols may have been skipped.

27 years ago * emultempl/gld960c.em: Include <ctype.h>.
Ian Lance Taylor [Thu, 12 Dec 1996 22:06:51 +0000 (22:06 +0000)]
* emultempl/gld960c.em: Include <ctype.h>.
  (gld960_set_output_arch): Get the machine type from the -A option
if there is one, rather than always using core.
PR 11255.

27 years ago * write.c (adjust_reloc_syms): Make sure that symbols are
Ian Lance Taylor [Thu, 12 Dec 1996 21:55:28 +0000 (21:55 +0000)]
* write.c (adjust_reloc_syms): Make sure that symbols are
resolved; expression symbols may have been skipped.
PR 11240.

27 years ago * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
Ian Lance Taylor [Thu, 12 Dec 1996 20:27:49 +0000 (20:27 +0000)]
* coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
PR 11253.

27 years agoSupport BFD_RELOC_24_PLT_PCREL relocation
Michael Meissner [Thu, 12 Dec 1996 20:20:08 +0000 (20:20 +0000)]
Support BFD_RELOC_24_PLT_PCREL relocation

27 years agoSupport R_PPC_PLTREL24
Michael Meissner [Thu, 12 Dec 1996 20:08:54 +0000 (20:08 +0000)]
Support R_PPC_PLTREL24

27 years ago * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
Ian Lance Taylor [Thu, 12 Dec 1996 19:57:22 +0000 (19:57 +0000)]
* ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
function.
(ppcboot_bfd_print_private_bfd_data): Don't take the address of an
array.
PR 11256.

27 years ago * Makefile.in (emn10200.c): Add dependencies.
Jeff Law [Thu, 12 Dec 1996 19:05:06 +0000 (19:05 +0000)]
    * Makefile.in (emn10200.c): Add dependencies.
        * configure.tgt: Handle mn10200.
        * emulparms/mn10200.sh: New file.
mn10200 support.

27 years agoAdd ../sim/common/libcommon.a
Michael Meissner [Thu, 12 Dec 1996 18:30:50 +0000 (18:30 +0000)]
Add ../sim/common/libcommon.a

27 years ago * mn10200-dis.c: Finish writing disassembler.
Jeff Law [Thu, 12 Dec 1996 08:09:27 +0000 (08:09 +0000)]
    * mn10200-dis.c: Finish writing disassembler.
        * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
        Fix mask for "jmp (an)".
mn10200 disassembler works!

27 years ago * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
Mark Alexander [Thu, 12 Dec 1996 02:54:55 +0000 (02:54 +0000)]
* gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.

27 years agoFor NEC 4100/4300 project: Add little endian support and misc cleanups.
Jim Wilson [Wed, 11 Dec 1996 22:04:46 +0000 (22:04 +0000)]
For NEC 4100/4300 project: Add little endian support and misc cleanups.
* gencode.c (build_instruction): Use !ByteSwapMem instead of
BigEndianMem.
* interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
(BigEndianMem): Rename to ByteSwapMem and change sense.
(BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
BigEndianMem references to !ByteSwapMem.
(set_endianness): New function, with prototype.
(sim_open): Call set_endianness.
(sim_info): Use simBE instead of BigEndianMem.
(xfer_direct_word, xfer_direct_long, swap_direct_word,
swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
ifdefs, keeping the prototype declaration.
(swap_word): Rewrite correctly.
(ColdReset): Delete references to CONFIG.  Delete endianness related
code; moved to set_endianness.

27 years ago * monitor.c (monitor_load): Add support for load address argument.
David Edelsohn [Wed, 11 Dec 1996 20:14:11 +0000 (20:14 +0000)]
* monitor.c (monitor_load): Add support for load address argument.
* dsrec.c: #include <time.h>.
(load_srec): New argument load_offset.  Print download stats.
* srec.h (load_srec): Update prototype.
* sh3-rom.c (sh3_load): Update call to load_srec.

27 years ago * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
Jeff Law [Wed, 11 Dec 1996 17:34:15 +0000 (17:34 +0000)]
    * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
        handle endianness issues for mn10300.

27 years ago * gencode.c (write_opcodes): Also write out the format of the
Jeff Law [Wed, 11 Dec 1996 16:58:33 +0000 (16:58 +0000)]
    * gencode.c (write_opcodes): Also write out the format of the
        opcode.
        * mn10300_sim.h (simops): Add "format" field.
        * interp.c (sim_resume): Deal with endianness issues here.

27 years ago * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
Jeff Law [Wed, 11 Dec 1996 16:29:02 +0000 (16:29 +0000)]
    * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
Yoshihiro Adachi sez the manual was wrong for this insn.

27 years ago * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
Jeff Law [Wed, 11 Dec 1996 06:31:23 +0000 (06:31 +0000)]
    * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
        variants.
        (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
        (bfd_elf32_mn10300_reloc): Write data in little endian format.
        * reloc.c: Remove mn10300 big endian relocs.
        * bfd-in2.h, libbfd.h: Rebuilt.

        * elf32-mn10200.c: Update from elf32-mn10300.c.

27 years ago * gas/mn10300/basic.exp: Update after endianness changes to
Jeff Law [Wed, 11 Dec 1996 06:20:40 +0000 (06:20 +0000)]
    * gas/mn10300/basic.exp: Update after endianness changes to
        the assembler.

27 years ago * config/tc-mn10300.c (md_assemble): Update to handle endianness
Jeff Law [Wed, 11 Dec 1996 06:19:43 +0000 (06:19 +0000)]
    * config/tc-mn10300.c (md_assemble): Update to handle endianness
        issues correctly.

27 years ago * simops.c (REG0_4): Define.
Jeff Law [Tue, 10 Dec 1996 22:10:07 +0000 (22:10 +0000)]
    * simops.c (REG0_4): Define.
        Use REG0_4 for indexed loads/stores.
Fixes bugs exposed after minor codegen improvements in the compiler.

27 years agoTue Dec 10 13:51:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 10 Dec 1996 21:53:34 +0000 (21:53 +0000)]
Tue Dec 10 13:51:55 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d10v.c (write_2_short): Remove code that called
parallel_ok() when the programmer specified parallel instructions.

27 years ago * config/tc-mips.c (append_insn): Make sure there is enough room
Ian Lance Taylor [Tue, 10 Dec 1996 21:18:38 +0000 (21:18 +0000)]
* config/tc-mips.c (append_insn): Make sure there is enough room
in a frag after a mips16 instruction to switch it with a jump
instruction.

27 years ago * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
Jeff Law [Tue, 10 Dec 1996 20:34:14 +0000 (20:34 +0000)]
    * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
        instruction.  Fix opcode field for "movb (imm24),dn".
Stuff found by the testsuite.

27 years ago * gas/mn10200/{mov1.s,mov2.s,mov3.s,mov4.s,movx.s}: New tests.
Jeff Law [Tue, 10 Dec 1996 20:06:33 +0000 (20:06 +0000)]
    * gas/mn10200/{mov1.s,mov2.s,mov3.s,mov4.s,movx.s}: New tests.
        * gas/mn10200/{movb.s, movbu.s}: Likewise.
        * gas/mn10200/basic.exp: Run them.
We correctly assemble & insert operands for all mn10200 instructions.

27 years agoFor NEC 4100/4300 project
Jim Wilson [Tue, 10 Dec 1996 19:39:55 +0000 (19:39 +0000)]
For NEC 4100/4300 project
* gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
* interp.c (CHECKHILO): Define away.
(simSIGINT): New macro.
(membank_size): Increase from 1MB to 2MB.
(control_c): New function.
(sim_resume): Rename parameter signal to signal_number.  Add local
variable prev.  Call signal before and after simulate.
(sim_stop_reason): Add simSIGINT support.
(sim_warning, sim_error, dotrace, SignalException): Define as stdarg
functions always.
(sim_warning): Delete call to SignalException.  Do call printf_filtered
if logfh is NULL.
(AddressTranslation): Add #ifdef DEBUG around debugging message and
a call to sim_warning.

27 years ago * config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
Jeff Law [Tue, 10 Dec 1996 19:33:48 +0000 (19:33 +0000)]
    * config/tc-mn10200.c (md_assemble): Opcode 0x0 is valid!
        * config/tc-mn10300.c (md_assemble): Likewise.
Found by mn10200 gas testsuite.

27 years ago * mn10200-opc.c (mn10200_operands): Fix insertion position
Jeff Law [Tue, 10 Dec 1996 19:13:07 +0000 (19:13 +0000)]
    * mn10200-opc.c (mn10200_operands): Fix insertion position
        for DI operand.
Found by gas testsuite.

27 years ago * config/tc-mips.c (mips16_extended_frag): Give an error for an
Ian Lance Taylor [Tue, 10 Dec 1996 16:38:22 +0000 (16:38 +0000)]
* config/tc-mips.c (mips16_extended_frag): Give an error for an
attempt to use a non absolute symbol in an extending frag.

27 years agoNew revision from Andrew
Michael Meissner [Tue, 10 Dec 1996 16:12:48 +0000 (16:12 +0000)]
New revision from Andrew

27 years ago * app.c (do_scrub_chars): At the end of a C comment, pass space to
Ian Lance Taylor [Tue, 10 Dec 1996 03:47:41 +0000 (03:47 +0000)]
* app.c (do_scrub_chars): At the end of a C comment, pass space to
UNGET rather than PUT.  Set old_state before setting state to -2.
PR 11229.

27 years agoMon Dec 9 17:34:05 1996 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Tue, 10 Dec 1996 01:41:16 +0000 (01:41 +0000)]
Mon Dec  9 17:34:05 1996  Geoffrey Noer  <noer@cygnus.com>

        * config/mn10300/tm-mn10300.h: more small register fixes
        * mn10300-tdep.c: filled in from another target

27 years ago * monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.
David Edelsohn [Tue, 10 Dec 1996 01:32:17 +0000 (01:32 +0000)]
* monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.

27 years ago * config/mips/tm-mips.h: Get rid of call-dummy code.
Mark Alexander [Tue, 10 Dec 1996 00:15:46 +0000 (00:15 +0000)]
* config/mips/tm-mips.h: Get rid of call-dummy code.
Minor changes to make pre-ANSI compilers happy.

27 years ago * config/mips/tm-mips.h: Get rid of call-dummy code.
Mark Alexander [Tue, 10 Dec 1996 00:14:48 +0000 (00:14 +0000)]
* config/mips/tm-mips.h: Get rid of call-dummy code.
Minor changes to make pre-ANSI compilers happy.
* mips-tdep.c: Minor changes to make pre-ANSI compilers happy.
(mips_push_arguments): Rewrite to partially support EABI.
(mips_pc_in_call_dummy): New function.
* infcmd.c: Include symfile.h to get prototype of entry_point_address,
which fixes 64-bit sign extension bug on MIPS.

27 years ago * gas/mn10200/*.s: New tests for the mn10200 assembler.
Jeff Law [Tue, 10 Dec 1996 00:14:35 +0000 (00:14 +0000)]
    * gas/mn10200/*.s: New tests for the mn10200 assembler.
        * gas/mn10200/basic.exp: Run them.
Tests for all instructions except mov*.

27 years ago * gdb.texinfo, refcard.tex: Restore author credit
Fred Fish [Mon, 9 Dec 1996 23:58:07 +0000 (23:58 +0000)]
* gdb.texinfo, refcard.tex: Restore author credit

27 years ago * config/tc-mn10200.c: Flesh out assembler support for MN10200.
Jeff Law [Mon, 9 Dec 1996 23:53:37 +0000 (23:53 +0000)]
    * config/tc-mn10200.c: Flesh out assembler support for MN10200.
        * config/tc-mn10200.h: Likewise.
Actually assembles some mn10200 stuff (everything but mov* instructions!)

27 years ago * mn10200-opc.c: Create mn10200 opcode table.
Jeff Law [Mon, 9 Dec 1996 23:48:15 +0000 (23:48 +0000)]
    * mn10200-opc.c: Create mn10200 opcode table.
        * mn10200-dis.c: Flesh out mn10200 disassembler.  Not ready,
        but moving along nicely.
Checkpointing today's mn10200 work.

27 years ago * config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
Ian Lance Taylor [Mon, 9 Dec 1996 23:34:20 +0000 (23:34 +0000)]
* config/tc-mips.c (mips16_extended_frag): Avoid an infinite loop
when extending because the value is exactly maxtiny + 1.

27 years ago * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
Ian Lance Taylor [Mon, 9 Dec 1996 23:26:15 +0000 (23:26 +0000)]
* config/tc-mips.c (RELAX_MIPS16_ENCODE): Add small and ext
arguments, and store them.  Adjust other RELAX_MIPS16 macros.
(RELAX_MIPS16_USER_SMALL): Define.
(RELAX_MIPS16_USER_EXT): Define.
(mips16_small, mips16_ext): New static variables.
(append_insn): Pass mips16_small and mips16_ext to
RELAX_MIPS16_ENCODE.
(mips16_ip): Set mips16_small and mips16_ext.
(mips16_immed): Don't check mips16_autoextend.
(mips16_extended_frag): Check USER_SMALL and USER_EXT.

27 years ago * write.c (write_relocs): Print an error for an out of range
Ian Lance Taylor [Mon, 9 Dec 1996 22:11:24 +0000 (22:11 +0000)]
* write.c (write_relocs): Print an error for an out of range
fixup, rather than calling abort.

* as.c (main): Unlink the output file if there are errors while
generating the fixups.

27 years agoadditional register stuff
Geoffrey Noer [Mon, 9 Dec 1996 09:11:45 +0000 (09:11 +0000)]
additional register stuff

27 years agoMon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Mon, 9 Dec 1996 08:33:27 +0000 (08:33 +0000)]
Mon Dec  9 00:14:49 1996  Geoffrey Noer  <noer@cygnus.com>

        * config/mn10300/tm-mn10300.h: fix register names
        * mn10300-tdep.c: new skeleton tdep for mn10300

27 years ago * callback.c: #include <stdlib.h>
David Edelsohn [Mon, 9 Dec 1996 02:27:59 +0000 (02:27 +0000)]
* callback.c: #include <stdlib.h>
(os_error): New function.
(default_callback): Add os_error.

27 years ago * remote-sim.h: Update some comments.
David Edelsohn [Mon, 9 Dec 1996 02:06:42 +0000 (02:06 +0000)]
* remote-sim.h: Update some comments.
* remote-sim.c (gdb_os_error): New function.
(init_callbacks): Fix initializing of gdb_callback.  Add gdb_os_error.
(gdb_os_printf_filtered): Use gdb_stdout, not stdout.

27 years ago * callback.h (host_callback): New member `error'.
David Edelsohn [Mon, 9 Dec 1996 01:12:03 +0000 (01:12 +0000)]
* callback.h (host_callback): New member `error'.

27 years ago * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
Peter Schauer [Sun, 8 Dec 1996 12:35:28 +0000 (12:35 +0000)]
* Makefile.in (ALL_MACHINES):  Add mips16-opc.o.

27 years ago * irix5-nat.c (supply_gregset, fill_gregset): Handle gregsets
Peter Schauer [Sun, 8 Dec 1996 08:38:34 +0000 (08:38 +0000)]
* irix5-nat.c (supply_gregset, fill_gregset):  Handle gregsets
from O32 and N32 ABI.
(xfer_link_map_member):  Work around problem with alignments
in struct obj when compiling GDB under N32 ABI.