Commit Graph

21396 Commits

Author SHA1 Message Date
Andrew Cagney
1931ea8d43 When starting a new simulator run, ensure proceed status is cleared. 1998-02-06 03:09:59 +00:00
Doug Evans
803f52b9dc Second pass at moving sky files into mips dir,
prepend sky- to all #include's of sky headers.
1998-02-06 03:09:03 +00:00
Ian Lance Taylor
b073d4281c * config/tc-mips.c (append_insn): Make sure that if we have a
fixup for an unmatched %hi reloc, it does not associated with a
	variant frag.
1998-02-06 03:08:45 +00:00
Doug Evans
0b0caaf11b delete txvu/dvp/sky stuff, lives in mips dir now, configured with
mips64r5900-sky-elf.
1998-02-06 02:42:34 +00:00
Doug Evans
aea481da17 First pass at moving sky stuff from ../txvu to mips dir. 1998-02-06 02:29:22 +00:00
Doug Evans
587c41ae20 Delete txvu stuff.
Delete last change that made sim build under dvp-elf.
1998-02-06 01:58:48 +00:00
Jason Molenda
8d743926f4 * top.c (do_nothing): Remove signal handler after signal is caught.
Helpful for SYSV systems where two ^-\s will cause problems.  Should have
no effect on BSD systems.
1998-02-06 01:22:01 +00:00
Jason Molenda
df419eec9c * top.c (do_nothing): Remove signal handler after signal is caught.
Helpful for SYSV systems where two ^-\s will cause problems.  Should have
no effect on BSD systems.
1998-02-06 01:16:56 +00:00
Jason Molenda
db5d8d390b * configure.in (host_tools, native_only): Add libtool. 1998-02-06 01:10:10 +00:00
Michael Meissner
942738d396 Repeat/repeati are pc-relative 1998-02-05 23:01:37 +00:00
Andrew Cagney
8c9ee21e2f New files, update .Sanitize 1998-02-05 22:08:33 +00:00
Doug Evans
61b62559ba * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
(SEM_INSN): New macro.
1998-02-05 21:29:18 +00:00
Doug Evans
d542677191 Sanitize m32rx from cpu.h and m32r-sim.h. 1998-02-05 21:16:08 +00:00
Doug Evans
b8a9943dd4 * Makefile.in (m32r.o): Depend on cpu.h
(extract.o): Pass -DSCACHE_P.
	* mloop.in (extract{16,32}): Update call to m32r_decode.
	* arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate.
	* extract.c,model.c,sem-switch.c,sem.c: Regenerate.
	* sim-main.h: #include "ansidecl.h".
	Don't include cpu-opc.h, done by arch.h.
start-sanitize-m32rx
	* Makefile.in (M32RX_OBJS): Build m32rx support now.
	(m32rx.o): New rule.
	* m32r-sim.h (m32rx_h_cr_[gs]et): Define.
	* m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC.
	(m32rx_h_accums_get): New function.
	* mloopx.in: Update call to m32rx_decode.  Rewrite exec loop.
	* cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
end-sanitize-m32rx
1998-02-05 21:01:06 +00:00
Ian Lance Taylor
5bd5a5c7a2 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
From Thomas de Lellis <tdel@wrs.com>.
1998-02-05 20:40:06 +00:00
Ian Lance Taylor
1f2864765c * coff-i386.c (coff_pe_i386_relocate_section): New static function
if COFF_WITH_PE.
	(coff_relocate_section): If COFF_WITH_PE, define as
	coff_pe_i386_relocate_section.
	* coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
	skip empty sections, to match coff_write_object_contents.
1998-02-05 20:25:31 +00:00
Michael Snyder
d9ba1c3faf Thu Feb 5 11:57:06 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c (tracepoint_operation): call free_actions instead
        of free.  (free_actions): eliminate some memory leaks for actions.
        (validate_actionline): pass string arg by reference, so we can
        change the pointer.  Change all memrange collection arguments to
        canonical form (literal address and size), to enforce early
        evaluation.  Accept UNOP_MEMVAL (assembly variables) for
        trace collection.  (parse_and_eval_memrange): accept expressions
        for the address and size fields of a memrange (and evaluate
        them immediately).  (several places): use -1 instead of zero
        to distinguish an absolute memrange from a register-relative one.
        (encode_actions): add handling for UNOP_MEMVAL (assembly variable).
1998-02-05 20:13:58 +00:00
Michael Meissner
b494ec3e81 Do not allow BFD_ALIGN to wrap 1998-02-05 19:38:28 +00:00
Michael Meissner
29b7118aec Do not allow BFD_ALIGN to wrap 1998-02-05 19:29:29 +00:00
Ian Lance Taylor
fa1a1b3235 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool. 1998-02-05 17:50:44 +00:00
Ian Lance Taylor
a52052dbac * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
* doc/Makefile.in: Likewise.
1998-02-05 17:45:32 +00:00
Ian Lance Taylor
12e0afe57b * configure, Makefile.in, aclocal.m4: Rebuild with new libtool. 1998-02-05 17:24:24 +00:00
Ian Lance Taylor
4ea6538794 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
rather than swapping out r_offset twice.  From Luke Deller
 	<luked@cse.unsw.edu.au>.
1998-02-05 16:52:22 +00:00
Jason Molenda
c7bb1531b8 * Makefile.in (SFILES): add tracepoint.c.
(LINTFILES): add @CONFIG_SRCS@.
        (SOURCES): Ditto.
        * configure.in (CONFIG_SRCS): Mirror use of CONFIG_OBS.
        * configure: Regenerated.
1998-02-05 01:47:26 +00:00
Geoffrey Noer
53b0f196ac Wed Feb 4 16:53:58 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: add target-gperf to noconfigdirs for Cygwin32.
        Fix typo in ming config comment.
1998-02-05 00:58:07 +00:00
Ian Lance Taylor
788e3f91eb * configure.in: Set libtool_enable_shared rather than
libtool_shared.  Remove diversion hack.
	* configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
1998-02-05 00:18:54 +00:00
Ian Lance Taylor
9a8379033e * configure.in: Set libtool_enable_shared rather than
libtool_shared.  Remove diversion hack.
	* configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
	with new libtool.
1998-02-05 00:16:01 +00:00
Ian Lance Taylor
9322566035 * ltconfig, ltmain.sh: Update from libtool 1.0h. 1998-02-04 23:56:46 +00:00
Nick Clifton
89285fc92b Add checks for side effects of instructions preventing their parallelisation. 1998-02-04 23:44:58 +00:00
Nick Clifton
2be33cc4f7 Updated to match latest assembler output. 1998-02-04 23:28:29 +00:00
Nick Clifton
da9a396b5f Applied patch submitted by Jamie Smith <jsmith@teknema.demon.co.uk> to fix
literal pool appearances instigated by macros.
1998-02-04 23:26:03 +00:00
Ian Lance Taylor
68d864d786 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
* syms.c (struct stab_cache): Define.
	(struct stab_find_info): Remove cached_offset, cached_stab,
	cached_str, and cached_stroff fields.  Add file_cache,
	function_cache, and line_cache fields.
	(_bfd_stab_section_find_nearest_line): Use extensive caching to
	speed up searches.
1998-02-04 21:18:25 +00:00
Ian Lance Taylor
36fb0b86c7 Wed Feb 4 15:40:00 1998 Geoffrey Keating <geoffk@ozemail.com.au>
* gas/ppc/ppc.exp: New file.
	* gas/ppc/astest.s, gas/ppc/astest.d: New test.
	* gas/ppc/astest2.s, gas/ppc/astest2.d: New test.
1998-02-04 20:42:29 +00:00
Ian Lance Taylor
6e2604ced5 * config/tc-ppc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
a gas internal symbol is adjustable.
1998-02-04 20:33:12 +00:00
Ian Lance Taylor
dfe0d219ce * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
a gas internal symbol is adjustable.
1998-02-04 20:29:30 +00:00
Ian Carmichael
e46ede536a * Update configure: txvu-elf changed to dvp-elf. 1998-02-04 18:46:18 +00:00
Ian Carmichael
b6e6125499 * Make sim build under dvp-elf. 1998-02-04 18:43:15 +00:00
Ian Lance Taylor
7f84fa70cf * peicode.h (pe_print_idata): Check for import of ordinal rather
than name.
	(pe_print_edata): If there is no .edata section, look for the
	export data in some other section.
1998-02-04 18:35:46 +00:00
Ian Lance Taylor
e869646749 * as.h: If gcc version greater than 2.6, use `__format__' and
`__printf__' in function attributes, rather than `format' and
	`printf'.
1998-02-04 18:18:54 +00:00
Ian Lance Taylor
ab1f47c0c9 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
* Makefile.in: Rebuild.
1998-02-04 18:03:14 +00:00
Doug Evans
7c26196f5a * cgen-opc.c (cgen_set_cpu): Initialize hardware table.
* m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Update.
1998-02-04 01:54:47 +00:00
Doug Evans
a4f6f75ff9 * cgen.h (CGEN_INSN_MAX_ATTRS): Renamed from CGEN_MAX_INSN_ATTRS.
(CGEN_HW_ENTRY): Move `next' entry to end of struct.
	(CGEN_KEYWORD_MAX_ATTRS): Renamed from CGEN_MAX_KEYWORD_ATTRS.
	(CGEN_OPERAND_MAX_ATTRS): Renamed from CGEN_MAX_OPERAND_ATTRS.
1998-02-04 01:16:11 +00:00
Doug Evans
0a7fed0d58 add sanitization of m32rx PIPE attribute, redact can do this more cleanly 1998-02-04 01:05:07 +00:00
Ian Lance Taylor
249da91694 Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>
* bbconv.pl: New file.
	* Makefile.am (EXTRA_DIST): Add bbconv.pl.
	* Makefile.in: Rebuild.
1998-02-04 00:45:10 +00:00
Ian Lance Taylor
e2fd423145 Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>
* gprof.texi: Extensive additions to document all arguments and
	output formats.
1998-02-04 00:41:51 +00:00
Ian Lance Taylor
7862d7d065 Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>
* symtab.c (symtab_finalize): Prefer function symbols over line
	symbols.
	(dbg_sym_lookup): Correct debugging messages.

	* gprof.c (main): --sum implies --line.

	* cg_print.c (cg_print): When doing line by line profiling, don't
	use a non-function as a main listing item.

	* call_graph.c (cg_tally): When using line by line profiling, use
 	the function symbol as the child.

	* symtab.h (NBBS): Define.
	(Sym): Add bb_addr and bb_calls fields.
	* basic_blocks.c (bb_read_rec): Save multiple basic blocks per
	symbol.
	(bb_write_blocks): Adjust for multiple basic blocks per symbol.
	(print_exec_counts): Don't check whether a symbol is the start of
	a basic block.  Print all basic blocks for a symbol.
	(annotate_with_count): Rewrite to print all basic block counts and
	to pay attention to width argument.
	(print_annotated_source): Don't check whether symbol is the start
	of a basic block.
1998-02-04 00:30:48 +00:00
Jason Molenda
70b3329c0c * infptrace.c (child_resume): Don't try to step if
NO_SINGLE_STEP is defined.

Date: Tue, 3 Feb 1998 16:28:11 -0500
From: "Gordon W. Ross" <gwr@mc.com>
To: bug-gdb@prep.ai.mit.edu
Subject: gdb/infptrace.c
1998-02-04 00:19:05 +00:00
Doug Evans
76090fdd40 fix comment 1998-02-03 23:39:28 +00:00
Ian Lance Taylor
c3de2a19e8 Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>
Make it possible to build a cross gprof, although a few cases are
	still not handled:
	* configure.in: Don't set MY_TARGET.
	* gprof.h: Don't include MACHINE_H.  Don't define FOPEN_RB or
	FOPEN_WB; just get them from sysdep.h.
	* core.h (min_insn_size, offset_to_code): Declare.
	* core.c (MIN_INSN_SIZE): Don't define.
	(min_insn_size, offset_to_code): New variables.
	(core_init): Initialize min_insn_size and offset_to_code.
	(find_call): New function.
	(core_create_line_syms): Don't use min_dist.  Set is_static in
	pass 2.
	* hist.c (UNITS_TO_CODE): Define.
	* gprof.c (default_excluded_list): Add "__mcount_internal".
	* gmon.h: Change TARGET_alpha to __alpha__.
	* hertz.h: Ifdef MACH, define hertz as HZ.
	* alpha.c (alpha_Instruction): Rename from Instruction.  Change
	all references.
	(alpha_find_call): Rename from find_call.
	* alpha.h: Remove.
	* dummy.c, dummy.h: Remove.
	* i386.c (i386_iscall): Rename from iscall.  Change all
	references.  Check for call instruction, not jump or lcall.
	(i386_find_call): Rename from find_call.  Correct for VMA.
	Correct call destination computation.  Don't dereference symbol if
	it is NULL.
	* i386.h: Remove.
	* ns532.c, ns532.h: Remove.
	* sparc.c (CALL): Define.
	(sparc_find_call): Rename from find_call.
	* sparc.h: Remove.
	* tahoe.c: Include cg_arcs.h, core.h, hist.h, and symtab.h.  Don't
	include time_host.h.
	(CALLF, PC): Define.
	(enum tahoe_opermodes, tahoe_operandenum): Define.  Rename all
	references to opermodes or operandenum to these.
	(tahoe_operandmode): Rename from operandmode.  Call abort if
	switch does not return.
	(tahoe_operandname): Rename from operandname.  Call abort if
	switch does not return.
	(tahoe_operandlength): Rename from operandlength.  Call abort if
	switch does not return.
	(tahoe_reladdr): Rename from reladdr.
	(tahoe_find_call): Rename from find_call.  Use core_text_space
	rather than textspace.
	* tahoe.h: Remove.
	* vax.c (CALLS, PC): Define.
	(enum opermodes, operandenum, struct modebyte): Define.
	(vax_operandmode): Rename from operandmode.  Call abort if switch
	does not return.
	(vax_operandname): Rename from operandname.  Call abort if switch
	does not return.
	(vax_operandlength): Rename from operandlength.  Call abort if
	switch does not return.
	(vax_reladdr): Rename from reladdr.
	(vax_find_call): Rename from find_call.
	* vax.h: Remove.
	* Makefile.am (AUTOMAKE_OPTIONS): Set to cygnus.
	(MY_TARGET): Remove.
	(INCLUDES): Remove -DTARGET_$(MY_TARGET) and -DMACHINE_H=
	\"$(MY_TARGET).h\".
	(gprof_SOURCES): Add i386.c, alpha.c, vax.c, tahoe.c, sparc.c.
	(gprof_DEPENDENCIES): Remove $(MY_TARGET).o.
	(gprof_LDADD): Likewise.
	(noinst_HEADERS): Remove alpha.h, i386.h, ns532.h, sparc.h,
	tahoe.h, vax.h, dummy.h.
	(EXTRA_DIST): Remove alpha.c, i386.c, ns532.c, sparc.c, tahoe.c,
	vax.c, dummy.c.
	($(OBJECTS)): Don't depend upon $(MY_TARGET).h.
	($(MY_TARGET).o): Remove target.
	(i386.o, alpha.o, vax.o, tahoe.o, sparc.o): New targets.
	* configure, Makefile.in, aclocal.m4: Rebuild.
1998-02-03 19:52:41 +00:00
Andrew Cagney
37379a256b IGEN - Replace IMEM (IMEM_IMMED) macro with IMEM<insn-size> macro,
update v850, tic80 and mips simulators.
IGEN - Prepend prefix to more generated symbols and macros
(idecode_issue, instruction_word).
IGEN - Add -Wnowith option to supress warnings about word size
inflicts in input files.
MIPS - Clean up Makefile.in, m16.igen, m16.dc (new), m16run.c (new) so
that a mips16 simulator built using IGEN can be compiled.
1998-02-03 05:39:15 +00:00