Commit Graph

23783 Commits

Author SHA1 Message Date
Martin Hunt
5c01b16e4e Wed Oct 28 16:19:02 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full
	pathname instead of just basename.
1998-10-29 00:58:34 +00:00
Doug Evans
3afece8646 * sim-if.c (sim_do_command): Handle "sim info reg {bbpsw,bbpc}".
Bring over from branch.
1998-10-28 22:45:11 +00:00
Drew Moseley
84e42e1daf For cygwin hosts, we need to use the return value from the read
routine as the number of bytes to process.  This apparently is due to
text-mode vs binary-mode.  If the mounts are done text-mode, then the
size returnedby fstat() may be different than the number of bytes
"read" in text mode.
1998-10-28 21:16:44 +00:00
Nick Clifton
7dd47bc8da Fixup previous delta by replacing 'unsigned long' with 'bfd_vma' 1998-10-28 18:32:07 +00:00
Frank Ch. Eigler
af3711e6b3 * peripheral part of sky->devo merge
* patch approved by shebs
Wed Oct 28 12:33:52 EST 1998  Frank Ch. Eigler <fche@cygnus.com>
	* configure.in: Accept both -skyb- and -sky- for
	--with-sim-funit/gpu2 options.
	* configure: Rebuilt.
1998-10-28 16:08:03 +00:00
Mark Alexander
c0351c0f6d * sparcl-tdep.c (send_resp, sparclite_serial_start,
sparclite_serial_write): Use remote_timeout instead of hardcoded
	two second timeout.
	(download): Fix adjustment of a.out load addresses.
1998-10-28 16:08:02 +00:00
Andrew Cagney
b9a9cde40b Unify (well almost) --enable-build-warnings configuration option
across GDB and SIM directories.
1998-10-28 02:01:32 +00:00
Nick Clifton
32dc84ef55 Applied patch from Philip Blundell <pb@nexus.co.uk>: Make address variables
unsigned to avoid problems when disassembling code at high-bit-set addresses.
1998-10-27 22:40:43 +00:00
Frank Ch. Eigler
fe146542dd * Fix for testcase for checking PR 17362.
Tue Oct 27 15:20:16 EST 1998  Frank Ch. Eigler <fche@cygnus.com>

	* t-prot3w.s: Test changed spec of prot3w insn.
1998-10-27 21:49:15 +00:00
Nick Clifton
2321a68bf8 Fix comment. 1998-10-27 21:20:35 +00:00
Nick Clifton
7a6f678220 Add support for producing a lsiting from piped input. 1998-10-27 21:19:21 +00:00
Gavin Romig-Koch
d3b42ce1c7 * config/tc-mips.c (hilo_interlocks): Remove mips_3900.
(append_insn): Account for the tx39's multiply behavior.
	* mips.h (INSN_MULT): Added.
	* mips-opc.c (IS_M): Added.
1998-10-27 14:04:03 +00:00
Frank Ch. Eigler
fda83b6795 * MONSTER sky -> devo merge
* ChangeLog / ChangeLog.sky entries were merged with original time stamps;
  a few were moved between the files
1998-10-27 12:48:08 +00:00
Andrew Cagney
63a0e6b527 Replace syserr_list with more portable strerror(). 1998-10-27 03:42:14 +00:00
Geoffrey Noer
2f53793327 Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (strhash): New function.
        (main): Use it to supply image base if not supplied by user.
        (program_version): Up to 0.2.4.

Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>

        * dlltool.c (add_stdcall_alias): New global.
        (long_options): Add --add-stdcall-alias option.
        (main): Handle it.
        (scan_drectve_symbols): Add alias if --add-stdcall-alias is
        specified.
        (scan_filtered_symbols): Likewise.
        (gen_def_file): Output alias for stdcall syms if appropriate.

        * binutils.texi (dlltool): Document --add-stdcall-alias option.

        * dllwrap.c (long_options): Add --add-stdcall-alias option.
        (main): Handle it.

        * defparse.y (opt_name): Allow "." in name.
        * dlltool.c (def_name): Set dll_name from NAME entry in def file.
        (def_library): Set dll_name from LIBRARY entry in def file.

Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>

        * dllwrap.c (long_options): --implib synonym for --output-lib.
        (main): Pass --export-all to dlltool only if specified.
        (program_version): Up to 0.2.3.

Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>

        * dllwrap.c (mybasename): New function.
        (main): Run dlltool to create export definition file and import
        library file if necessary.
        Change exp_file_name so that it's based on the dll name.
1998-10-27 01:03:28 +00:00
Michael Meissner
a561cd980b PR 17947: Add -> to indicate two instructions are explicitly serial 1998-10-27 00:36:15 +00:00
Ulrich Drepper
8c811b9d07 1998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
* lexsup.c (ld_options): Change text of -O to Optimize output file".
	(parse_args): Set link_info.optimize based on -O argument.
	* ldmain.c (main): Initialize link_info.optimze to false.
	* ld.texinfo: Describe -O option.
	* ld.1: Likewise.
1998-10-27 00:08:03 +00:00
Ulrich Drepper
c470f2ebaf Describe -O option. 1998-10-27 00:07:50 +00:00
Ulrich Drepper
5864e0974d (main): Initialize link_info.optimze to false. 1998-10-27 00:07:26 +00:00
Ulrich Drepper
6e8674285e (struct bfd_link_info): Add new field optimize. 1998-10-27 00:05:11 +00:00
Ulrich Drepper
5c2ad07f36 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
* elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
	* elflink.h (elf_collect_hash_codes): New function.  This function is
	called for each exported symbol and we compute the ELF hash value for
	it.
	(compute_bucket_value): New function.  It is called from
	size_dynamic_sections to determine the hash table size.  When we are
	optimizing a better, but slower, algorithm is used.
	(size_dynamic_sections): Call compute_bucket_value.

	* elf.c (bfd_elf_hash): Optimize the hash function a bit.
1998-10-27 00:04:05 +00:00
Ulrich Drepper
e429c89724 (elf_collect_hash_codes): New function. This function is called for
each exported symbol and we compute the ELF hash value for it.
(compute_bucket_value): New function.  It is called from
size_dynamic_sections to determine the hash table size.  When we are
optimizing a better, but slower, algorithm is used.
(size_dynamic_sections): Call compute_bucket_value.
1998-10-27 00:03:37 +00:00
Ulrich Drepper
eaa57a10aa (bfd_elf_hash): Optimize the hash function a bit. 1998-10-27 00:00:50 +00:00
Ulrich Drepper
e841d72322 (struct elf_link_hash_entry): Add new field elf_hash_value. 1998-10-27 00:00:13 +00:00
Andrew Cagney
cf9d0fd980 * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.
* config/rs6000/aix4.mt (TDEPFILES): To here.
* rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT on
  BSD hosts.
1998-10-26 03:26:00 +00:00
Geoffrey Noer
d5556e2ab7 Sun Oct 25 10:37:45 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (scan_all_symbols): Fix patch error.
1998-10-26 01:23:29 +00:00
Catherine Moore
5aa001ff77 * config/tc-sh.c (sh_fix_adjustable): Adjust EXTERN and
WEAK handling.
1998-10-24 20:24:50 +00:00
Catherine Moore
1280763791 add ld-selective 1998-10-24 19:50:53 +00:00
Catherine Moore
d967fee5a7 New for ld-selective 1998-10-24 19:43:14 +00:00
Catherine Moore
4b329e3518 * ld-selective: New directory with new files to test
selective linking.

       * lib/ld-lib.exp (ld_nm):  Strip leading underscore from $name.
1998-10-23 21:32:56 +00:00
Frank Ch. Eigler
62c0e5bc39 * Fixes for PRs 17559, 16602, brought over from sky branch.
start-sanitize-r5900
Fri Oct 23 12:06:00 EDT 1998  Frank Ch. Eigler <fche@cygnus.com>
	* mips-opc.c (vrget, vclipw, vrnext): Correct COP2 opcodes
	and masks.
end-sanitize-r5900
1998-10-23 11:31:32 +00:00
Frank Ch. Eigler
24b2f07acf * Fix for PR 17559 brought over from sky branch
start-sanitize-r5900
Fri Oct 23 13:01:24 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
	* gas/mips/vu0.[sd]: Update tests for VRNEXT and VRGET
	instructions, to match corrected operand synatx.
end-sanitize-r5900
1998-10-23 11:30:09 +00:00
Stan Shebs
d36b927c75 Written policy on GDB checkins. 1998-10-22 20:34:42 +00:00
Catherine Moore
046381da3a Revert last change. 1998-10-22 17:46:33 +00:00
Ron Unrau
993b4e8d38 * config/tc-mips.c : support frame and regmask/fregmask when
MIPS_STABS_ELF is specified.
1998-10-22 16:02:52 +00:00
Syd Polk
66af1511cb 1998-10-20 Syd Polk <spolk@cygnus.com>
* Makefile.in configure.in: Add the ability to use tcl8.1 and tk8.1
	if desired.
1998-10-20 22:39:11 +00:00
Syd Polk
33ab98f3ff 1998-10-20 Syd Polk <spolk@cygnus.com>
* acinclude.m4: Re-exported TCL_LIBS and TCL_LD_SEARCH_FLAGS
	because itcl needs them.
1998-10-20 22:37:44 +00:00
Ian Lance Taylor
a0bc1e7d2b Tue Oct 20 11:35:06 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* gas/i386/i386.exp: Run AMD insn test.
	* gas/i386/amd.s: New test.
	* gas/i386/amd.d: New test results.
1998-10-20 15:36:31 +00:00
Ian Lance Taylor
6e1acc623a Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* doc/c-i386.texi: Replace occurences of "opcode" with
	"instruction mnemonic", "instruction", or "mnemonic" when
	referring to the name of an instruction.  Use "opcode" when
	referring to the sequence of machine bytes.

	* config/tc-i386.c (opcode_chars): Rename to mnemonic_chars.
	(is_opcode_char): Rename to is_mnemonic_char.
	(md_assemble and i386_operand): Correct error messages from
        "opcode" to "instruction mnemonic"
	Rename throughout opcode[] -> mnemonic[], opp -> mnem_p,
	MAX_OPCODE_SIZE -> MAX_MNEM_SIZE,
	DWORD_OPCODE_SUFFIX -> DWORD_MNEM_SUFFIX,
	WORD_OPCODE_SUFFIX -> WORD_MNEM_SUFFIX,
	BYTE_OPCODE_SUFFIX -> BYTE_MNEM_SUFFIX,
	SHORT_OPCODE_SUFFIX -> SHORT_MNEM_SUFFIX
	LONG_OPCODE_SUFFIX -> LONG_MNEM_SUFFIX

	* config/tc-i386.h (*_MNEM_SUFFIX): Rename from *_OPCODE_SUFFIX.
1998-10-20 15:33:27 +00:00
Ian Lance Taylor
7540e47096 Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (i386_operand): Check for garbage after
	register name.
1998-10-20 15:24:45 +00:00
Ian Lance Taylor
f5003e7d62 * config/tc-i386.c (md_apply_fix3): Change handling of PCREL reloc
for BFD_ASSEMBLER to only change value when COFF if TE_PE.
1998-10-20 14:51:09 +00:00
Catherine Moore
d10fb38c2b Add vtable relocs. 1998-10-20 01:28:46 +00:00
Catherine Moore
7e2014e092 * config/tc-sh.h (obj_fix_adjustable): Define.
* config/tc-sh.c (sh_force_relocation):  Handle VT relocs.
        (md_apply_fix):  Likewise.
        (tc_gen_reloc):  Likewise.
        (sh_fix_adjustable):  New.
1998-10-20 01:26:55 +00:00
Doug Evans
9c5da58d59 * sim-main.h: #include cpu-opc.h.
* arch.c,arch.h,decode.c,extract.c,model.c,sem.c: Regenerate
	to get #include cleanup.
	* decodex.c,extractx.c,modelx.c: Ditto.
1998-10-19 23:33:40 +00:00
Doug Evans
e677105ccd * Makefile.in (all-cgen): Depend on all-libiberty. 1998-10-19 22:45:16 +00:00
Jason Molenda
9c1fb2a7db 1998-10-19 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
        * configure: Regenerated.


Geoff just removed the AM_EXEEXT definition from ../binutils/aclocal.m4
so we would have been hosed in the near future.
1998-10-19 22:25:28 +00:00
Doug Evans
48ffd442f6 * Makefile.in (SIM_EXTRA_DEPS): Replace cgen headers with
CGEN_INCLUDE_DEPS.
	(M32RBF_INCLUDE_DEPS): Define.
	(m32r .o's): Depend on it.
	(mloop.c): Update call to genmloop.sh.
	* cpu.h,cpuall.h: Regenerate.
	* sim-main.h: Delete inclusion of cpu.h,decode.h, moved to cpuall.h.
	#include cgen-scache.h,cgen-cpu.h.
	* tconfig.in (WITH_FOO semantic macros): Delete.
	* Makefile.in (M32RXF_INCLUDE_DEPS): Define.
	(m32rx .o's): Depend on it.
	(mloopx.c): Update call to genmloop.sh.
	* cpux.h: Regenerate.
1998-10-19 21:14:14 +00:00
Doug Evans
b35179cb0b * Make-common.in (CGEN_INCLUDE_DEPS): Define.
(sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
	(sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
	(cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
	explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
	CGEN_INCLUDE_DEPS.
	* cgen-cpu.h: New file.
	* cgen-engine.h: New file.
	* cgen-scache.h: New file.
	* cgen-sim.h: Delete portions moved to new files.
	* genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
	rather than sending result to stdout.
1998-10-19 21:00:59 +00:00
Doug Evans
fcea6f2092 * cgen-asm.in (insert_1): New function.
(insert_normal): Progress on handling ! CGEN_INT_INSN_P.
	(insert_insn_normal): Update handling of CGEN_INT_INSN_P.
	(@arch@_cgen_assemble_insn): Update type of `buf' arg.
	* cgen-dis.in (extract_1): New function.
	(extract_normal): buf_ctrl renamed to ex_info, update type.
	Progress on handling of CGEN_INT_INSN_P.
	(extract_insn_normal): buf_ctrl renamed to ex_info, update type.
	Update handling of CGEN_INT_INSN_P.  Handle errors from
	@arch@_cgen_extract_operand.
	(print_insn): Renamed from print_int_insn.  Handle ! CGEN_INT_INSN_P.
	(default_print_insn): Renamed from print_insn.
	Handle ! CGEN_INT_INSN_P.
	(print_insn_@arch@): Handle error returns from print_insn.
	* cgen-opc.in (cgen_get_insn_value, cgen_put_insn_value): New fns.
	(@arch@_cgen_lookup_insn): Update handling of CGEN_INT_INSN_P.
	(@arch@_cgen_lookup_get_insn_operands): Ditto.
	* m32r-opc.c,m32r-opc.h,m32r-asm.c,m32r-dis.c: Regenerate.
1998-10-19 20:15:24 +00:00
Doug Evans
ffe6f35d54 * cgen.h (CGEN_INSN_INT): New typedef.
(CGEN_INT_INSN_P): Renamed from CGEN_INT_INSN.
	(CGEN_INSN_BYTES): Renamed from cgen_insn_t.
	(CGEN_INSN_BYTES_PTR): New typedef.
	(CGEN_EXTRACT_INFO): New typedef.
	(cgen_insert_fn,cgen_extract_fn): Update.
	(cgen_opcode_table): New member `insn_endian'.
	(assemble_insn,lookup_insn,lookup_get_insn_operands): Update.
	(insert_operand,extract_operand): Update.
	(cgen_get_insn_value,cgen_put_insn_value): Add prototypes.
1998-10-19 19:50:37 +00:00