Commit Graph

35912 Commits

Author SHA1 Message Date
Stephane Carrez abea9e28ea * dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
when IO mapping changed, not when internal RAM mapping is changed.
2002-08-13 07:57:18 +00:00
Stephane Carrez 63f36def60 * m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
* sim-main.h (M6812_CALL_INDIRECT): Add to enum.
	(m6811_regs): Add page register.
	(cpu_set_page, cpu_get_page): New macros.
	(phys_to_virt): New function.
	(cpu_get_indexed_operand_addr, cpu_return): Declare.
	* gencode.c: Identify indirect addressing mode for call and fix daa.
	(gen_function_entry): New param to tell if src8/dst8 locals are
	necessary.
	(gen_interpreter): Use it to avoid generation of unused variables.
	* interp.c (sim_fetch_register): Allow to read page register; page
	register, A, B and CCR are only 1 byte wide.
	(sim_store_register): Likewise for writing.
2002-08-13 07:46:09 +00:00
Alan Modra bed69f0439 * header.sed: Strip tabs. 2002-08-13 02:37:47 +00:00
Alan Modra 3c6706bb5f * ld.texinfo (ALIGN): Remove power of 2 restriction. 2002-08-13 02:27:11 +00:00
Alan Modra c553bb910d * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
(MAXPAGESIZE): Set to 1.

	* ld.h (ALIGN_N): Delete.
	* ldexp.h (align_n): Declare.
	* ldexp.c (align_n): New function.
	(fold_binary): Use align_n instead of ALIGN_N.
	(exp_fold_tree): Likewise.
	* ldlang.c (lang_size_sections_1): Likewise.
	(lang_one_common): Likewise.
2002-08-13 02:08:26 +00:00
gdbadmin 8e7157081c *** empty log message *** 2002-08-13 00:00:33 +00:00
Alan Modra 0707b49f5a daily update 2002-08-13 00:00:06 +00:00
H.J. Lu 871da94f03 2002-08-12 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_add_default_symbol): Preserve section across
	elf_merge_symbol.
2002-08-12 19:23:33 +00:00
H.J. Lu 9c0921673d 2002-08-12 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp: Add vers23.

	* ld-elfvers/vers23.c: New.
	* ld-elfvers/vers23.dsym: New.
	* ld-elfvers/vers23.ver: New.
	* ld-elfvers/vers23a.c: New.
	* ld-elfvers/vers23a.dsym: New.
	* ld-elfvers/vers23a.map: New.
	* ld-elfvers/vers23a.sym: New.
	* ld-elfvers/vers23a.ver: New.
	* ld-elfvers/vers23b.c: New.
	* ld-elfvers/vers23b.dsym: New.
	* ld-elfvers/vers23b.map: New.
	* ld-elfvers/vers23b.ver: New.
2002-08-12 19:21:59 +00:00
Andrew Cagney 98216c5d02 2002-08-12 Andrew Cagney <cagney@redhat.com>
* i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
declarations.
* i386-linux-tdep.c (i386_linux_register_byte): Delete function.
(i386_linux_register_raw_size): Delete function.
i386_linux_init_abi): Update.
* i386-tdep.c (i386_register_raw_size): Delete function.
(i386_register_byte): Delete function.
(i386_gdbarch_init): Update.
(i386_register_size): Delete array.
(i386_register_offset): Delete array.

* config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
(REGISTER_RAW_SIZE): Delete macro.
* config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
(REGISTER_BYTE): Delete macro.
2002-08-12 19:05:33 +00:00
Hans-Peter Nilsson d1764264f9 * ld-sh/sh64/abi32.xd: Adjust whitespace in elf32 section
listing.
	* ld-sh/sh64/cmpct1.xd, ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.xd,
	ld-sh/sh64/rel32.xd, ld-sh/sh64/shdl32.xd: Likewise.
2002-08-12 09:01:18 +00:00
Hans-Peter Nilsson 598b6dded7 * ld-sh/sh64/abi32.xd: Adjust as type of linker-script-symbols
is no longer set to object.
	* ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd, ld-sh/sh64/crange1.rd,
	ld-sh/sh64/crange2.rd, ld-sh/sh64/crange3-cmpct.rd,
	ld-sh/sh64/crange3-media.rd, ld-sh/sh64/crange3.rd,
	ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.xd, ld-sh/sh64/shdl32.xd,
	ld-sh/sh64/shdl64.xd: Likewise.
2002-08-12 08:51:10 +00:00
Richard Sandiford fdb987ee01 [gas/]
* config/tc-mips.c (mips_ip): Don't work out the value of
	constant %hi()s here.

[gas/testsuite/]
	* gas/mips/elf-consthilo.[sd]: New test.
	* gas/mips/mips.exp: Run it.
2002-08-12 08:33:42 +00:00
gdbadmin cf1d5986d8 *** empty log message *** 2002-08-12 00:00:32 +00:00
Alan Modra b20f52778d daily update 2002-08-12 00:00:04 +00:00
Aidan Skinner 3b19021e44 * ada-lang.c (ada_lookup_partial_symbol)
(to_fixed_variant_branch_type) (find_line_in_linetable): Fix
	prototype names so that grep ^func works properly.

	* ada-lang.c (ada_array_element_type)
	(ada_lookup_partial_symbol): Fix typos in parameter list.

	* ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
	Fix prototype names so that grep ^func works properly.
2002-08-11 18:15:49 +00:00
gdbadmin 661757b496 *** empty log message *** 2002-08-11 00:00:33 +00:00
Alan Modra ef02b960a4 daily update 2002-08-11 00:00:04 +00:00
Alan Modra 31312f958e * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
for ELF, and don't bother checking ELF relocs when non-ELF.
	(i386_immediate): Allow absolute_section expressions for aout.
	(i386_displacement): Likewise.  Also test bfd_is_com_section.
	(md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
	(md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
	not when fx_addsy.  Remove dead code.
2002-08-10 14:49:48 +00:00
Alan Modra 2548cbcc14 * ld-discard/discard.exp: Don't run on linuxaout or linuxoldld.
* ld-linkonce/linkonce.exp: Likewise.
	* ld-selective/sel-dump.exp: Likewise.
	* ld-selective/selective.exp: Don't run on aout or bout.
2002-08-10 12:48:52 +00:00
Andrew Cagney b063e7a269 2002-08-10 Andrew Cagney <cagney@redhat.com>
Elena Zannoni  <ezannoni@redhat.com>
            Martin M. Hunt  <hunt@redhat.com>

* gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
(build_builtin_type_vec128i): Set the vector bit.
* gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
* gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
(build_builtin_type_vec64): New function.
(build_builtin_type_vec64i): New function.
(build_gdbtypes): Initialize builtin_type_vec64 and
builtin_type_vec64i.
2002-08-10 05:12:40 +00:00
Andrew Cagney a7e3c2ad4b 2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_dump): Compare the register offset
with REGISTER_BYTE.
* arch-utils.c (generic_register_byte): New function.
* arch-utils.h (generic_register_byte): Declare.
* gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
* gdbarch.h, gdbarch.c: Regenerate.
2002-08-10 02:00:16 +00:00
Michael Snyder 119d55d8e4 Oversights in previous checkin. 2002-08-10 01:09:11 +00:00
Andrew Cagney ee0cf7cc8a Shh, revert unintended commit. 2002-08-10 00:40:40 +00:00
Andrew Cagney af030b9af8 2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c: Include "gdbcmd.h"
(_initialize_regcache): Add commands "maintenance print
registers", "maintenance print raw-registers" and "maintenance
print cooked-registers".
(enum regcache_dump_what): Define.
(dump_endian_bytes): New function.
(regcache_dump): New function.
(regcache_print): New function.
(maintenance_print_registers): New function.
(maintenance_print_raw_registers): New function.
(maintenance_print_cooked_registers): New function.
* Makefile.in (regcache.o): Update dependencies.
2002-08-10 00:36:46 +00:00
Michael Snyder cb3d25d11f 2002-08-09 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
	(mips_push_arguments): Correct some comments.  Use paddr_nz
	for printing addresses in debug output.  Replace static
	allocation using MAX_REGISTER_RAW_SIZE with alloca.
	(mips_n32n64_push_arguments): New function, cloned from
	mips_push_arguments and tuned for the n32/n64 ABI.
	(mips_push_register): Buffer needs dynamic allocation.
	(mips_print_register): Ditto.
	(do_gp_register_row): Ditto.
	(mips_store_return_value): Ditto.
	(mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2002-08-10 00:34:04 +00:00
gdbadmin 94fdcfdc0a *** empty log message *** 2002-08-10 00:00:32 +00:00
Alan Modra a846ca52c4 daily update 2002-08-10 00:00:04 +00:00
Don Howard 2163ab9d5c 2002-08-09 Don Howard <dhoward@redhat.com>
* memattr.c (mem_info_command): Print special case of upper bound
        as max CORE_ADDR + 1.
2002-08-09 22:50:31 +00:00
Michael Snyder b78bcb188c 2002-08-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
	returns structs by ref if they're too big to fit in two registers.
2002-08-09 21:58:14 +00:00
Kevin Buettner c4ac3e633c Fix minor formatting problem in previous patch. 2002-08-09 20:38:49 +00:00
Kevin Buettner ffabd70d00 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
saved regs value.
	(read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
	mips_find_saved_regs().
	(mips_pop_frame): Likewise.
2002-08-09 20:30:20 +00:00
Kevin Buettner fbcdb4a3f0 * blockframe.c (frame_saved_regs_register_unwind): Revise
PC_IN_CALL_DUMMY assertion to only apply when generic dummy
	frames are in use.
2002-08-09 18:26:15 +00:00
Grace Sainsbury 3c3bea1c7e * remote.c: (remote_wait, remote_async_wait): Add check for awatch
T-packets; the 'a' is not taken as a register number.
	(remote_check_watch_resources, remote_stopped_by_watchpoint)
        (remote_stopped_data_address): New functions; add to target
        vector.
        (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
        prototypes to match other implementations of this
        function. replace integer argument with pointer -- the length
        field in the Z-packet is the length of what is pointed to or 1 if
        pointer is null. Add to target vector.
        (remote_insert_watchpoint, remote_remove_watchpoint): Add to
        target vector.

        From Mark Salter:
        * remote.c (remote_wait): Add support to extract optional
        watchpoint information from T-packet. Ignore unrecognized
        optional info in T-packet.
        (remote_async_wait): Ditto.
doc:
	From Mark Salter:
	* gdb.texinfo (Protocol): Document T packet extension to
	allow watchpoint address reporting.
2002-08-09 16:41:25 +00:00
Corinna Vinschen 5d1d95de0e * cli/cli-dump.c: Change fopen modes to use binary open modes
as defined in include/fopen-bin.h throughout.
2002-08-09 16:36:10 +00:00
Nick Clifton 80200e448d Oops - omitted from previous delta 2002-08-09 15:39:19 +00:00
Nick Clifton 59bc061d4b Add QNX Neutrino PowerPC support and common up QNX functions 2002-08-09 15:38:24 +00:00
Nick Clifton 2b692c5912 Updated Swedish translation 2002-08-09 15:07:57 +00:00
Alan Modra 6088b00e51 * config/tc-i386.h: Reorganize. 2002-08-09 12:37:41 +00:00
Maciej W. Rozycki 0c11417f42 * config/tc-mips.c (macro): Handle a register plus a 16-bit
immediate offset in "dla" and "la" expansions.
* gas/mips/empic.d: Treat "addiu" and "daddiu" as equivalent when
$0 is source.
* mips-opc.c (mips_builtin_opcodes): Remove "dla" and "la" as
aliases to "daddiu" and "addiu".
2002-08-09 11:07:24 +00:00
Thiemo Seufer d0c7ff072c * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if
g->global_gotsym is NULL.
2002-08-09 05:35:26 +00:00
H.J. Lu ea591d42c4 Add the missing space. 2002-08-09 04:56:20 +00:00
H.J. Lu b16100ad5c 2002-08-08 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp: Add vers22.

	* ld-elfvers/vers22.c: New.
	* ld-elfvers/vers22.dsym: New.
	* ld-elfvers/vers22.map: New.
	* ld-elfvers/vers22.ver: New.
	* ld-elfvers/vers22a.c: New.
	* ld-elfvers/vers22a.dsym: New.
	* ld-elfvers/vers22a.sym: New.
	* ld-elfvers/vers22a.ver: New.
	* ld-elfvers/vers22b.c: New.
	* ld-elfvers/vers22b.dsym: New.
	* ld-elfvers/vers22b.ver: New.
2002-08-09 04:42:44 +00:00
H.J. Lu d8bbe7789d 2002-08-08 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_add_default_symbol): Don't warn a defintion
	overrides an indirect versioned symbol.
2002-08-09 04:40:29 +00:00
Alan Modra 7950068398 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
Remove "bfd_gas=yes" from target table when covered later.
	Consolidate some entries.
	* configure: Regenerate
2002-08-09 03:42:15 +00:00
Michael Snyder c86b5b3893 2002-08-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c: Minor whitespace and indentation clean-ups.
2002-08-09 01:42:41 +00:00
Kevin Buettner b30590dca4 * doublest.c (store_floating): Avoid floatformat_from_doublest()
assertion failure by returning early after a warning.
2002-08-09 00:45:10 +00:00
Jakub Jelinek 2bbd9c2554 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
at start of insn, pass it to output_disp and output_imm.
	(output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
	in displacement for R_386_32 reloc, use R_386_GOTPC and compute
	properly addend.
	(output_imm): Added arguments.  Compute properly addend for
	R_386_GOTPC.
	(md_apply_fix3): Remove R_386_GOTPC handling.
	* testsuite/gas/i386/gotpc.s: New.
	* testsuite/gas/i386/gotpc.d: New.
	* testsuite/gas/i386/i386.exp: Add gotpc test.
2002-08-09 00:10:19 +00:00
Alan Modra 9bf279ebdd daily update 2002-08-09 00:00:04 +00:00
gdbadmin fd3f43685d *** empty log message *** 2002-08-09 00:00:02 +00:00