Commit graph

23743 commits

Author SHA1 Message Date
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
Doug Evans
1ab68803c4 * cgen.c (gas_cgen_finish_insn): Update handling of CGEN_INT_INSN_P.
* cgen.h (gas_cgen_finish_insn): Update prototype.
	* config/tc-m32r.c (m32r_insn): CGEN_INT_INSN -> CGEN_INT_INSN_P.
	cgen_insn_t -> CGEN_INSN_INT.
	(make_parallel): Update handling of CGEN_INT_INSN_P.
	(assemble_parallel_insn): Ditto.
	(target_make_parallel): New function.
	(md_assemble): Use it.
1998-10-19 19:45:40 +00:00
Catherine Moore
5dbf2f20a1 Fix typo. 1998-10-19 18:21:05 +00:00
Felix Lee
fa03589c56 * acinclude.m4: undo previous gettext change
* aclocal.m4: rebuild with right version of aclocal.
1998-10-19 16:58:17 +00:00
Felix Lee
2c54bc607e bfd:
* acinclude.m4, aclocal.m4: move gettext-related fragments from
        aclocal.m4 to acinclude.m4, so they don't get lost.
        * elfcore.h: rewrite for better corefile support.
        * elf.c (elfcore_*): new functions.
        * elf-bfd.h (elf_obj_tdata): new structure members.
        * acconfig.h, acinclude.m4, configure.in: add feature-tests for
        flavor of procfs.
        * aclocal.m4, config.in, configure, Makefile.in: regenerated.
include:
        * common.h (NT_PSTATUS, NT_FPREGS, NT_PSINFO,
        NT_LWPSTATUS,NT_LWPSINFO): added.
        * internal.h (Elf_Internal_Note): new structure members.
1998-10-19 01:52:10 +00:00
Jeff Law
0ef1fa08dc * config/tc-sh.c (md_assemble): Make sure the entire opcode is
converted into lower case.
pr17413
1998-10-19 00:50:59 +00:00
Jeff Law
3732cd450f * config.if (cxx_interface, libstdcxx_interface): Do not try to set
these if the appropriate directories and files to not exist.
1998-10-19 00:36:28 +00:00
Felix Lee
fcf8da0f46 fix typo 1998-10-17 18:55:43 +00:00
Felix Lee
61e6bcc839 * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness. 1998-10-17 17:40:35 +00:00
Michael Snyder
a93213bcf5 Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c (decode_prologue): Return failure if we reach
        the end of the function without finding the end of the prologue.
1998-10-16 22:35:41 +00:00
Jason Molenda
24418cfbac 1998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)
* command.c copying.c copying.awk core-aout.c core-regset.c
          corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
          infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
          symmisc.c valarith.c: Add prototypes.

        * defs.h: Add prototype for utils.c::do_run_cleanups.

        * gdbtypes.c: Add prototypes.
        (make_pointer_type): Add braces to remove nested if-else ambiguity.
        (make_reference_type): Ditto.

        * printcmd.c (printf_command): Initialize 'f' and 'string' at
        function startup to suppress possibly-used-before-initialized warning.

        * remote-utils.c: Add prototypes.
        (sr_pollchar): Add braces to remove nested if-else ambiguity.

        * ser-tcp.c: Add prototypes.
        (wait_for): Add braces to remove nested if-else ambiguity.
        (tcp_readchar): Ditto.

        * ser-unix.c: Add prototypes.
        (get_tty_state): Don't define errno here.

        (get_tty_state): Don't define errno here.
        (hardwire_readchar): Only define 't' if we are compiling in a Cygwin
        environment.

        * symtab.c: Add prototypes.
        (find_methods): Add braces to remove nested if-else ambiguity.
        (search_symbols): Set 'i' to an initial value to suppress a
        possibly-used-before-initialized warning.

        * valops.c: Add prototypes.
        (value_cast): Set 'eltype2' to an initial value to suppress a
        possibly-used-before-initialized warning.
        (value_of_variable): Add braces to remove nested if-else ambiguity.
        (value_of_this): Ditto.

        * valprint.c: Add prototypes.
        (print_floating): Add braces to remove nested if-else ambiguity.


Looks like a big change, but it is really just a lot of small stuff.

In the cases where GCC was flagging a possible use-before-initialized
warning on variables, it turned out that these were being used properly
but GCC couldn't see that.
1998-10-16 21:45:06 +00:00
Catherine Moore
2b6f11fa0b Add vtable relocs. 1998-10-16 19:15:05 +00:00
Catherine Moore
09878672ec * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
and R_M32R_GNU_VTENTRY.
        (elf_backend_can_gc_sections):  Define.
        (m32r_elf_check_relocs):  New.
        (m32r_elf_gc_mark_hook):  New.
        (m32r_elf_gc_sweep_hook):  New.
        (m32r_elf_relocate_section):  Handle VT relocs.
1998-10-16 19:13:41 +00:00
Catherine Moore
0f829c8eae * cgen.c (gas_cgen_md_apply_fix3): Handle VTABLE relocs.
(gas_cgen_tc_gen_reloc):  Likewise.
        * config/tc-m32r.h (obj_fix_adjustable):  Define.
        * config/tc-m32r.c (m32r_fix_adjustable):  New.
        (m32r_force_relocation):  Handle VTABLE relocs.
1998-10-16 18:45:25 +00:00
Stan Shebs
7bfe11e286 * tm-sp64.h (SETUP_ARBITRARY_FRAME, RAME_SPECIFICATION_DYADIC):
Remove, nevermore used.
1998-10-16 02:53:37 +00:00
Andrew Cagney
dd87762571 command.c: Include "wait.h" after, rather than before, <wait.h>.
"wait.h" was defining all WIF* macro's instead of filling in those
that <wait.h> missed.  Stops heaps of warnings from <wait.h>
re-defining WIF*s defined in "wait.h".
1998-10-15 06:59:40 +00:00
Doug Evans
c55ea9e781 * configure.in (enable_cgen_maint): Fix typo. 1998-10-15 00:25:48 +00:00
Jason Molenda
879c041771 1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
* defs.h: Move _initialize_printcmd, _initialize_stack,
        _initialize_blockframe out of here and in to their respective .c files.
        * blockframe.c: Move _initialize_blockframe prototype to here.
        * printcmd.c: Move _initialize_printcmd prototype to here.
        * stack.c: Move _initialize_stack prototype to here.

        * source.c, symtab.h: Move _initialize_source prototype to the .c file.
        * values.c, value.h: Move _initialize_values prototype to the .c file.
        * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c
        file.
        * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype
        to the .c file.

        * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
        Standardize comments for the prototype section of these files.

        * configure.in: Look in libc for wctype before looking for it in libc.

The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem
where an empty stub library (libw) causes a core dump when we call vasprintf
(e.g. `info br') in the final linked gdb.
1998-10-14 23:44:13 +00:00
Tom Tromey
aad579b030 Updated .Sanitize for qthreads 1998-10-14 17:28:52 +00:00
Jeff Law
6ea1f11419 Wed Oct 14 10:29:06 1998 Jeffrey A Law (law@cygnus.com)
* Makefile.in (DEVO_SUPPORT): Add config.if.
1998-10-14 16:30:38 +00:00
Andrew Cagney
24615880f4 Results of first-pass at looking for problems with making the target
architecture a vector.
1998-10-14 09:41:29 +00:00
Felix Lee
37f58dce03 * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
version didn't work for sol2.6; pushed it to autoconf.
        * configure.in (gdb_cv_proc_service_is_old): new test.
        * acconfig.h (PROC_SERVICE_IS_OLD): new define.
        * configure, config.in: regenerate.
1998-10-14 01:15:01 +00:00
Jason Molenda
ad3b8c4a1a 1998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)
* blockframe.c (find_pc_sect_partial_function): Add braces to avoid
        possible nested-if confusion.
        * breakpoint.c (breakpoint_here_p): Ditto.
        (breakpoint_inserted_here_p): Ditto.
        (breakpoint_thread_match): Ditto.

        * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
        * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability
        prototypes.

        * symtab.h: Add prototype for _initialize_source.
        * value.h: Add prototype for _initialize_value.

        * defs.h: Include sys/types.h or stddef.h to get size_t.
        (make_cleanup): Add make_cleanup_func typedef and switch to using
        a prototype for this function.
        (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
        using mmalloc.

        * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c dwarf2read.c
        dwarfread.c elfread.c eval.c exec.c gdbtk-cmds.c gdbtk.c infcmd.c
        infrun.c mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
        symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c valops.c:
        Cast parameters passed to make_cleanup to use the new
        make_cleanup_func typedef.


More warning cleanups.  There are still a bunch of places where the first
argument to make_cleanup is not cast to (make_cleanup_func); these are
either due to the function fitting the make_cleanup_func specification
already (e.g. free()) or they are in files that weren't compiled when
I did my make on a Linux native system.  Bwahahaha.  You can see them
like this:

grep make_cleanup\  * | grep -v make_cleanup_func

I'll surely go back and clean up the remaining suspicious calls in
GDB one of these days. :-)
1998-10-14 01:15:00 +00:00
Andrew Cagney
9a3d6f4eef Minor typos. 1998-10-14 00:04:03 +00:00
Jason Molenda
6e47b25142 Whoa, somehow this ChangeLog entry didn't get committed along with the
actual changes.  Here is the text:
1998-10-12  Jason Molenda  (jsm@bugshack.cygnus.com)

        * Makefile.in (AWK): Unused; remove.
        * configure.in: Remove unused autoconf checks for MINIX, memcpy,
        poll, select, strings.h.
        * config.in: Regenerated.
        * configure: Regenerated.
1998-10-13 22:18:49 +00:00
Jeff Law
4919ad83e0 * config.sub: Bring back lost sparcv9. 1998-10-13 15:38:40 +00:00
Frank Ch. Eigler
7b2d02e889 * Doh, backing out premature devo patch re PR 17559. 1998-10-13 11:51:36 +00:00
Frank Ch. Eigler
c65a4603ec * Patch for PR 17559, devo style.
start-sanitize-r5900
Tue Oct 13 12:47:42 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
	* mips-opc.c: Update COP2 operand formats for
	vrnext and vrget instructions.
end-sanitize-r5900
1998-10-13 11:38:49 +00:00
Jason Molenda
b0f33a0337 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* Makefile.in (AWK): Unused; remove.
        * configure.in: Remove unused autoconf checks for MINIX, memcpy,
        poll, select, strings.h.
        * config.in: Regenerated.
        * configure: Regenerated.
1998-10-13 03:15:07 +00:00
Felix Lee
bbee94c77c * sol-thread.c (ps_pstop, etc): different solaris versions have
slightly different prototypes in proc_service.h; compensate.
1998-10-13 00:55:20 +00:00
Nick Clifton
908b913631 Fix PR17762 - convert second opcode of a parallel insn to lower case before
parsing.
1998-10-13 00:45:27 +00:00
Jason Molenda
1dee2761ad 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Check for sys/debugreg.h, asm/debugreg.h.
        * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
        present.

This is to work around a conflict where the Linux 2.1.x kernel and glibc
2.0.x are not in sync; including <sys/debugreg.h> will result in an error.
With luck, these losers will get their act together and we can trash
this hack in the near future.
1998-10-13 00:35:48 +00:00
Nick Clifton
a148e678b2 Fix fise of R_M32R_18_PCREL relocation. 1998-10-12 21:25:25 +00:00
Nick Clifton
a11380f1c2 Cope with missing hi or lo relocs. 1998-10-12 21:20:23 +00:00
Nick Clifton
172fc86df5 Fix for PR 17008 - ignore conflicts when explicitly parallel instructions
both set bits in the PSW as side effects.
1998-10-12 18:09:31 +00:00
Jeff Law
02c1364dd0 * m10300-opc.c: DSP instrutions which only write to one general
register have no restrictions on matching operands.
1998-10-12 17:30:40 +00:00
Jeff Law
b657e68db8 * m10300-opc.c (lsr_add): Fix typo for "lsr_add imm,reg,reg,reg" case.
pr17742
1998-10-12 16:46:31 +00:00
Andrew Cagney
454e0c7d51 * configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
(ChangeLog entry already checked in).
1998-10-12 02:54:58 +00:00
Peter Schauer
b0a5badb69 * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
address range of a compilation unit without children.

	* mdebugread.c (parse_partial_symbols):  Fix handling of stabs
	continuations, use xmalloc and xrealloc.
1998-10-11 19:54:57 +00:00
Mark Alexander
c6d28b22da * rs6000-tdep.c: Don't include tm.h twice. 1998-10-10 01:17:07 +00:00
Doug Evans
3b5f425750 * interp.c: #include "itable.h" if WITH_IGEN.
(get_insn_name): New function.
	(sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS.
	* sim-main.h (MAX_INSNS,INSN_NAME): Delete.
1998-10-10 01:07:15 +00:00