Mark Alexander [Thu, 30 Jul 1998 21:07:14 +0000 (21:07 +0000)]
* mips-tdep.c (mask_address_p): New variable.
(mips_addr_bits_remove): Test mask_address_p to decide whether
to mask off the upper 32 bits of addresses.
(_initialize_mips_tdep): Add command to set mask_address_p.
(mips_call_dummy_address): New function.
* config/mips/tm-mips.h (CALL_DUMMY_ADDRESS): Redefine to
call mips_call_dummy_address.
* Fix for PR 16389, brought over from d30v branch.
Thu Jul 30 21:38:43 1998 Frank Ch. Eigler <[email protected]>
* config/tc-d30v.c ({cur,prev}_left_kills_right_p): New variables.
(write_2_short): Emit warning if new flag is set.
(do_assemble): Set flags if left instruction is one of special
"right-instruction-killer" type.
* Fix for PR 16389, brought over from d30v branch.
Thu Jul 30 21:44:25 1998 Frank Ch. Eigler <[email protected]>
* d30v.h (FLAG_LKR): New flag for "left-kills-right" instructions.
* Fix for PR 16389, brought over from d30v branch
Thu Jul 30 21:41:10 1998 Frank Ch. Eigler <[email protected]>
* d30v-opc.c (d30v_opcode_table): Add new "LKR" flag to some
instructions.
Jeff Law [Wed, 29 Jul 1998 16:41:36 +0000 (16:41 +0000)]
* mn10300-tdep.c (set_movm_offsets): Do nothing for the am33
registers if we are not in am33 mode.
(mn10300_frame_chain, mn10300_frame_saved_pc): Similarly.
(set_machine_hook): Keep track of whether or not we're in am33 mode.
Add support for new versions of mulwhi,mulwlo,macwhi,macwlo that
accept an accumulator choice.
* cpux.c,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
Jeff Law [Tue, 28 Jul 1998 17:03:05 +0000 (17:03 +0000)]
* config/tc-mn10300.c (md_assemble): Fix "errmsg" initialization
to work with internationalization code. Issue an error when two
operands match that are not allowed to match.
* configure.in (install_tooldir): Allow target to specify whether
it wants to be installed in $(tooldir)/bin.
start-sanitize-sky
(dvp-*-*): Don't install in $(tooldir)/bin.
end-sanitize-sky
* configure: Regenerate.
* Makefile.am (install-exec-local): Set install-exec-tooldir
dependency via configure.
* Makefile.in: Regenerate.
* tracepoint.c (remote_set_transparent_ranges): new function.
Send the start and end addresses of all loadable read-only
sections down to the trace target, so that it can treat them
as "transparent" (ie. don't care if they were collected or not).
* symtab.c (decode_line_1): For minimal symbol, call
find_pc_sect_line() to make sure the line number gets set
properly.
(print_symbol_info): Redeclare function void.
* config/d10v/tm-d10v.h (REGISTER_NAMES): sp -> r15. The
stack pointer et al are synthesized from the SP_REGNUM (etc)
defines and should not be mentioned in REGISTER_NAMES.
There is a log discussion copied into PR 15966 about how this is not
handled consistently across all targets and we ought to clean it up
a bit. I'm not tackling the general for this PR, though.
Andrew Cagney [Sat, 25 Jul 1998 06:45:18 +0000 (06:45 +0000)]
Add new file vr.igen which is a merge of vr5400.igen and vr4320.igen.
Hack sanitize so that it doesn't sanitize vrXXX when either of
keep-vr5400 or keep-vr4320 are specified.
Move two basic vr4100 instructions from mips.igen to vr.igen.
* Makefile.in (INSTALL_TARGET): Move EXTRA_TARGET_HOST_INSTALL_MODULES
to here ...
(install-no-fixedincludes): and here
(INSTALL_MODULES): ... to here.
* op_utils.c (do_syscall): Rewrite to use common/syscall.c.
(syscall_read_mem, syscall_write_mem): New functions for syscall
callbacks.
* mn10300_sim.h: Add prototypes for syscall_read_mem and
syscall_write_mem.
* mn10300.igen: Change C++ style comments to C style comments.
Check for divide by zero in div and divu ops.
Keith Seitz [Fri, 24 Jul 1998 22:11:22 +0000 (22:11 +0000)]
* gdb.gdbtk/Makefile.in: Add new example program "stack".
* gdb.gdbtk/browser.test,browser.exp: Add browser window
tests.
* gdb.gdbtk/stack1.c,stack2.c: Test case for browser window.
Keith Seitz [Fri, 24 Jul 1998 22:02:39 +0000 (22:02 +0000)]
* gdbtk-cmds.c (gdb_search): Add missing NULL to switches.
Add missing flags to result_ptr.
Pass along any errors caused by getting the list of files from
tcl.
Allocate correct amount of memory for the file list.
Don't do any unecessary cleanups.
Jeff Law [Fri, 24 Jul 1998 21:52:43 +0000 (21:52 +0000)]
* gdb.disasm/am33.s: Add tests for autoincrement instructions.
* gdb.disasm/am33.exp: Run time. Update tests which use r8-r15
to use a0-a3/d0-d3 as needed.
* tracepoint.c (encode_actions): Treat register names and simple
variable names as special cases and don't convert them to byte-
codes: these things can be collected far more efficiently
without invoking the bytecode interpreter.
Ian Lance Taylor [Fri, 24 Jul 1998 20:33:13 +0000 (20:33 +0000)]
* Makefile.am (install-exec-local): Don't remove the file before
checking whether $(bindir) == $(tooldir)/bin. From Maciej
W. Rozycki <[email protected]>.
* Makefile.in: Rebuild.
Ian Lance Taylor [Fri, 24 Jul 1998 16:51:33 +0000 (16:51 +0000)]
start-sanitize-r5900
The value of R_MIPS15_S3 has changed:
* elf32-mips.c (elf_mips15_s3_howto): New static variable.
(mips_reloc_map): Remove BFD_RELOC_MIPS15_S3.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS15_S3
specially.
(mips_info_to_howto_rel): Handle R_MIPS15_S3 specially.
(mips_elf_relocate_section): Check for R_MIPS15_S3.
end-sanitize-r5900
* elf32-mips.c (elf_mips_howto_table): Add reloc types used on
Irix 6.
(bfd_elf32_bfd_reloc_type_lookup): Add default case.
* elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
elf_mips_reloc_type defined in elf/mips.h.
* config/tc-dvp.c (assemble_vif): Make label at start of overlay
a local label.
(create_vuoverlay_section): Put __start_ label at start of overlay
for gdb.
* configure.in (mips64r5900-sky-elf*): Use config/mt-sky.
Set extraconfigdirs to build dvp-elf-as.
* configure (extraconfigdirs): New variable.
(SUBDIRS): Add extraconfigdirs and recurse on them too.
* Makefile.in (all): Move higher in file.
(EXTRA_TARGET_HOST_ALL_MODULES): New variable.
(EXTRA_TARGET_HOST_{INSTALL,CHECK}_MODULES): New variables.
(ALL_MODULES): Add EXTRA_TARGET_HOST_ALL_MODULES.
(CROSS_CHECK_MODULES): Add EXTRA_TARGET_HOST_CHECK_MODULES.
(INSTALL_MODULES): Add EXTRA_TARGET_HOST_INSTALL_MODULES.
Mark Alexander [Fri, 24 Jul 1998 14:48:41 +0000 (14:48 +0000)]
* mn10300-tdep.c (set_movm_offsets): New helper function
for mn10300_analyze_prologue.
(mn10300_analyze_prologue): Simplify by factoring out common code.
Fix bugs in setting frame address for optimized code.
Use read_memory_nobpt instead of target_read_memory.
Dawn Perchik [Thu, 23 Jul 1998 22:14:48 +0000 (22:14 +0000)]
* sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
in a function prologue before the SAVE instruction.
(sparc_frame_saved_pc): Ditto.
* config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Add in_prologue flag.
Dawn Perchik [Thu, 23 Jul 1998 21:48:28 +0000 (21:48 +0000)]
* remote-mips.c (remote_mips_insert_hw_breakpoint,
remote_mips_remove_hw_breakpoint): New functions for hardware
breakpoints on LSI targets.
* config/mips/tm-embed.h (target_remove_hw_breakpoint,
target_insert_hw_breakpoint): Define to call
remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
respectively.
Jeff Law [Thu, 23 Jul 1998 17:30:54 +0000 (17:30 +0000)]
* Re-add lost change:
* elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
"movm_stack_size".
(mn10300_elf_relax_section): Include stack space for register saves
in the imm8 field of a "call" instruction.
(compute_function_info): Determine how much stack is allocated by
the movm instruction. Fix typo.
(elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.