John Metzler [Thu, 18 Jun 1998 17:30:26 +0000 (17:30 +0000)]
* mips-dis.c (print_insn_little_mips): Previously, instruction
printing references the symbol table to determine whether the
instruction resides in a block regular instructions or mips16
instructions. However, when the disassembler gets used in other
environments where the symbol table is not present, we no longer
rely in the symbol table, rather, use the low bit of the
instructions address to guess. There should be no change for usage
of the disassembler in host based programse, gdb ,objdump.
(print_insn_big_mips): ditto.
(print_insn_mips): ditto
Jeff Law [Wed, 17 Jun 1998 23:54:25 +0000 (23:54 +0000)]
start-sanitize-am33
* m10300-opc.c (USP, SSP, MSP, PC, IMM4, EPSW, RN0, RM1): New
operands for the am33.
(mn10300_opcodes): Add new instructions from the am33.
end-sanitize-am33
* m10300-opc.c (mn10300_opcodes): Change opcode for "syscall".
Ron Unrau [Wed, 17 Jun 1998 21:53:20 +0000 (21:53 +0000)]
* parse.c (target_map_name_to_register): Check target specific
aliases *first* so that it can over-ride architectural names
* txvu-tdep.c: start to handle backtraces
Frank Ch. Eigler [Wed, 17 Jun 1998 11:31:32 +0000 (11:31 +0000)]
* MIPS test suite changes that allow cross-assemblers to test MIPS dialects
other than their native tongues.
Wed Jun 17 14:02:10 1998 Frank Ch. Eigler <[email protected]>
* gas/mips/delay.d: Add -mcpu=NNNN to gas flags to let test case
run on differently targeted assembler.
* gas/mips/{ld-ilocks-addr32,ld-svr4pic.d}: Ditto.
* gas/mips/{ld-xgot.d,lif-svr4pic.d,lif-xgot.d}: Same.
* gas/mips/{mips16.d,mips4.d,nodelay.d}: Again.
* gas/mips/{trunc.d,uld.d,ulh-xgot.d,usd.d}: And then some.
* gas/mips/ld-ilocks.d: Removed disassembler flags to let target
defaults go unmodified. Replaced $f4/$f5 with $fp[45], as the
original `ld.d' had. Find `ld.s'.
* gas/mips/mul-ilocks.d: Nearly ditto.
* support for the --sky-debug, sky-debug-file options
* support for the --log, --log-file options
* GIF disassembly
* please view ChangeLog.Sky for details
Ron Unrau [Tue, 16 Jun 1998 20:38:10 +0000 (20:38 +0000)]
* dbxread.c: reset function_start_offset after a finishing N_FUN
is seen.
* remote-sim.c: allow TARGET_REDEFINE_DEFAULT_OPS to override
target vectors as needed.
* txvu-tdep.c: add support for VIF breakpoints.
Ron Unrau [Tue, 16 Jun 1998 20:30:20 +0000 (20:30 +0000)]
* sky-pke.c(read_pke_pc): return source address of current pc
* sky-pke.c(read_pke_pcx): return index of current pc
* sky-pke.h: export read_pke_pcx
* interp.c(sim_fetch_registers): read pke pc/pcx
* sky-libvpe.c: track name change from GDB
* sim-main.h: add vif memory based pc
- extend gdb comm area for fifo breakpoints
- define SIM_ENGINE_RESTART_HOOK
* sky-gdb.c: add support for VIF breakpoints
* gdbtk.c (gdbtk_init): Add elements to the auto_path AS LIST
ELEMENTS. This allows gdbtk to work when installed in a directory
which has a space in the path. D. Moseley pointed out the bug.
* app.c (do_scrub_begin): If tc_symbol_chars is defined, treat all
characters in it as LEX_IS_SYMBOL_COMPONENT.
* config/tc-i386.h (tc_symbol_chars): Define.
(extra_symbol_chars): Declare.
* config/tc-i386.c (extra_symbol_chars): Define.
(comment_chars): Don't use '/' as comment start if TE_LINUX.
(line_comment_chars): Set to '/' if TE_LINUX.
* doc/c-i386.texi (i386-prefixes): Update.
* doc/internals.texi (CPU backend): Document tc_symbol_chars.
Frank Ch. Eigler [Tue, 16 Jun 1998 16:53:49 +0000 (16:53 +0000)]
* sky testsuite fixes
Tue Jun 16 09:03:37 1998 Frank Ch. Eigler <[email protected]>
* t-cop2.s: Reorder instruction blocks to prevent "Out of bounds"
messages during test execution. Added dummy branch labels for BC2*
instructions.
* t-cop2.brn: Use --sky-debug option instead of env var.
* t-cop2.vuexpect: Updated for with new disassembly format.
* sky_sce_fast.exp: Don't compare GIF outputs for
--float-type=fast.
* sce_test{17,33,49}.dvpasm: Use ".DmaPackVif 1" option to
exercise assembler / PKE.
* rw-vureg.c: Cast memcpy operand to allay warning.
Joyce Janczyn [Tue, 16 Jun 1998 13:43:34 +0000 (13:43 +0000)]
Tue June 16 09:36:21 1998 Joyce Janczyn <[email protected]>
* dv-mn103int.c (mn103int_finish): Regular interrupts (not NMI or
reset) are not enabled on reset.
Frank Ch. Eigler [Tue, 16 Jun 1998 08:30:47 +0000 (08:30 +0000)]
* PR 15693 fix.
Wed Jun 10 18:04:35 1998 Frank Ch. Eigler <[email protected]>
* gdbtypes.c (get_discrete_bounds): Assign unsigned type flag for
all-positive enum.
(create_set_type): Ditto for all-positive set values.
* values.c (unpack_field_as_long): Check for typedef in struct
field unpacking.
Ron Unrau [Sun, 14 Jun 1998 17:01:02 +0000 (17:01 +0000)]
* sky-engine.c: Set ordering of device issues to match enumerated type
txvu_cpu_context (sim-main.h tm-txvu.h). This also allowed the issue
structure to be simplified to an array of functions.
Ron Unrau [Sun, 14 Jun 1998 14:48:27 +0000 (14:48 +0000)]
* partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
CUR_SYMBOL_VALUE as CORE_ADDR instead of long
* buildsym.[ch]: export pending_blocks list
* tm-txvu.h: define TARGET_READ_SP and TARGET_WRITE_SP
* txvu-tdep.c: rewrite symtabs to support N_FUN symbols in overlays.
(Actually, the last version did this for N_SLINE symbols).
(txvu_read_sp,txvu_write_sp): new
* i386-dis.c: Don't print opcode suffix when we can figure out the
size (and gas can!) by register operands, or from the default
size.
(putop): Handle 'A', 'B', 'L', 'P', 'Q', 'R' macros. Rename 'C'
macro to 'E'.
(dis386, dis386_twobyte, grps): Use new suffix macros.
(dis386): Correct imul Ib to imul sIb. Change jnl to jge to be
consistent. Add suffix for call, jmp, lcall, ljmp, iret. Reverse
order of cmps operands to agree with Intel docs. Correct operand
of aad and aam (Ib -> sIb). Change ud2b from 0fb8 to 0fb9 to
agree with Intel docs.
(print_insn_x86): Print orphan fwait before other prefixes.
Return correct byte count for orphan fwait with prefixes. Don't
print `bound' operands in reverse order.
(ckprefix): Stop accumulating prefixes if we get fwait.
(OP_DIR): Print `$' before Ap operands of ljmp, lcall.
* i386.h (i386_optab): Add general form of aad and aam. Add ud2a
and ud2b.
(i386_regtab): Allow cr0..7, db0..7, dr0..7, tr0..7, not just
those that happen to be implemented on pentiums.
Ian Lance Taylor [Fri, 12 Jun 1998 23:36:05 +0000 (23:36 +0000)]
* Makefile.am (HFILES): Remove config.h.
(EMULATION_OFILES, POTFILES): Move patch of May 14 from
Makefile.in to Makefile.am.
(earmcoff.c): Depend upon armcoff.em, not generic.em.
* po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
* Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
Doug Evans [Fri, 12 Jun 1998 20:37:40 +0000 (20:37 +0000)]
* elf.c (swap_out_syms): New arg relocatable_p.
Don't add section VMA to symbols for relocatable output.
(_bfd_elf_compute_section_file_positions): Update call to
swap_out_syms.
* interp.c: added call to sky_command_options_end() to close
any open file handles before exiting
* sky-gpuif.[c|h]: add disassembly on the fly code, log and log
file option support
* sky-gdb.[c|h] (sky_command_options_close()): new function, added
some body to the log and log file option sections
Fix problems when bfd_vma is wider than long.
* i386-dis.c: Make op_address and start_pc unsigned.
(set_op): Make parameter unsigned.
(print_insn_x86): Cast to bfd_vma when passing a value to
print_address_func.
* ns32k-dis.c (CORE_ADDR): Don't define.
(print_insn_ns32k): Change type of addr to bfd_vma. Use
bfd_scan_vma to read back address.
(print_insn_arg): Change type of addr to bfd_vma. Use sprintf_vma
to format it.
* m68k-dis.c (COERCE32): Cast to bfd_signed_vma to avoid overflow.
(NEXTULONG): New definition.
(print_insn_m68k): Avoid overflow when computing third argument of
print_insn_arg.
(print_insn_arg): Use NEXTULONG to fetch 32 bit address values.
Use disp instead of val to store offset values.
(print_indexed): Use base_disp instead of word to store base
displacement, to avoid overflow.
* m10300-dis.c (disassemble): Cast value to long when computing
pc-relative address, to get correct sign extension.
Doug Evans [Fri, 12 Jun 1998 01:08:57 +0000 (01:08 +0000)]
* lib/sim-defs.exp (sim_run): Argument env_vals renamed to options,
which is now a list of options controlling the behaviour of sim_run.
* sim/sky/sky-defs.tcl (run_trc_test): Update to new way of
environment variables to sim_run.
Ian Lance Taylor [Thu, 11 Jun 1998 22:45:08 +0000 (22:45 +0000)]
* stabs.c (struct stab_handle): Add self_crossref field.
(parse_stab_string): If a tag is a cross reference to itself,
don't define it in the tags list.
(parse_stab_type): Set info->self_crossref.
* debug.c (struct debug_type_real_list): Define.
(debug_get_real_type): Add list parameter. Change all callers.
Check for circularity to avoid crashing when it occurs.
* btowc.c: Removed.
* configure.in: Don't see if we need to replace btowc().
* Makefile.in: Don't include LIBOBJS.
* configure: Regenerated.
* gnu-regex.c (regex_compile): Only support i18n [:foo:] if
we have btowc().
Doug Evans [Thu, 11 Jun 1998 01:05:21 +0000 (01:05 +0000)]
* traps.c: New file. Trap support moved here from sim-if.c.
* Makefile.in (SIM_OBJS): Add traps.o
* sim-if.c: Don't include targ-vals.h.
(sim_engine_illegal_insn): Moved to traps.c
* sim-main.h (SIM_CORE_SIGNAL): Define.
(m32r_core_signal): Declare.
* devices.c (device_io_read_buffer): Handle cache purging via MCCR
register.
* m32r-sim.h (M32R_MISC_PROFILE): Move here from sim-main.h.
(PROFILE_COUNT_SHORTINSNS,PROFILE_COUNT_LONGINSNS): New macros.
(TRAP_SYSCALL,TRAP_BREAKPOINT): New macros.
Stu Grossman [Wed, 10 Jun 1998 23:29:59 +0000 (23:29 +0000)]
* c-exp.y: Fix problems with parsing "'foo.bar'::func". Some languages
allow symbols with dots.
* gdbtypes.c (check_stub_method): Cosmetic. Use more descriptive
names for parameters.
start-sanitize-java
* jv-exp.y: Parser now accepts primitive types.
* (parse_number): Use correct ifdef for scanf long double support.
* jv-lang.c (java_array_type): Initial cut at array support.
end-sanitize-java
* language.c language.h (set_language): Now returns previous language.
* symtab.c (find_methods): Make static. Cosmetic changes, including
indentation, and adding descriptive comments. Move local variable defs
into the block they are used in.
* Don't call check_stub_method any more. Use gdb_mangle_name to
generate the full method name. find_method doesn't need all the other
goobldegook that check_stub_method does.
* (gdb_mangle_name): Use more descriptive names for parameters. Fix
comment.
start-sanitize-java
* (lookup_partial_symbol lookup_block_symbol): Check for java to
ensure we can find mangled names.
end-sanitize-java
* (decode_line_1): Move local variable defs into the block they are
used in. (Improves code readability.)