Commit Graph

458 Commits

Author SHA1 Message Date
Andrew Cagney 0a5e8d987a 2004-10-31 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_ignore_helper): Delete.
	* config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
	* infrun.c (handle_inferior_event): Delete #ifdef
	DEPRECATED_IGNORE_HELPER_CALL code.
2004-10-31 16:14:01 +00:00
Andrew Cagney b9c3a7debd 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (struct frame_extra_info): Delete.
	(temp_proc_desc): Delete.
2004-10-31 03:11:54 +00:00
Andrew Cagney f92761eccf 2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
	MIPS_EFI_SYMBOL_NAME.
	(mips_extra_func_info_t, mips_extra_func_info): Delete.
	(struct mdebug_extra_func_info): Replace struct
	alpha_extra_func_info and alpha_extra_func_info_t.
	* config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
	MIPS_EFI_SYMBOL_NAME.
	(struct mdebug_extra_func_info): Replace struct
	alpha_extra_func_info and alpha_extra_func_info_t.
	* objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
	* mdebugread.c, alpha-mdebug-tdep.c:
2004-10-31 02:59:21 +00:00
Andrew Cagney a5c9623c79 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (MIPS_PRID_REGNUM): Add.
	* config/mips/tm-mips.h (PRID_REGNUM): Delete.
	* mips-tdep.c: Update.
2004-10-30 23:22:54 +00:00
Andrew Cagney 607fc93c5d 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
	(MIPS_LAST_EMBED_REGNUM): Add.
	* config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
	(LAST_EMBED_REGNUM): Delete.
	* mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
2004-10-30 23:08:18 +00:00
Andrew Cagney 24e0595198 2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h (PS_REGNUM): Delete.
	* mips-tdep.h (MIPS_PS_REGNUM): Add.
	* remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
	* mips-linux-nat.c: Update.
2004-10-30 22:54:40 +00:00
Andrew Cagney 613e114ff9 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h: Add comments on registers.
	(MIPS_UNUSED_REGNUM): Define.
	* config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
	(T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
	* irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
	* mips-linux-nat.c, remote-mips.c: Update.
2004-10-30 22:36:34 +00:00
Andrew Cagney d37cca3d68 2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h (t_insn): Delete.
	* mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
	Replace t_insn with ULONGEST.
2004-10-30 22:11:18 +00:00
Andrew Cagney cd65c8f61a 2004-10-30 Andrew Cagney <cagney@gnu.org>
* alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
	* config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
	(alpha_setup_arbitrary_frame): Delete.
	* mips-tdep.c (setup_arbitrary_frame): Delete.
	* config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
	(setup_arbitrary_frame): Delete.
	* stack.c (parse_frame_specification_1): When specified, call
	create_new_frame with two parameters.  Delete #ifdef
	SETUP_ARBITRARY_FRAME.
2004-10-30 21:16:10 +00:00
Andrew Cagney 95ac2dcfbb 2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
	(MIPS_INSTLEN): Delete.
	* mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
	MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
	* remote-mips.c, mips-tdep.c: Update.
2004-10-30 20:54:54 +00:00
Andrew Cagney 1a8da44df3 2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
	* mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
	* mips-tdep.c (mips_mdebug_frame_cache)
	(mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
	(mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
	(mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
	(mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
	(compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
	(mips_gdbarch_init): Do not append mdebug sniffers.
	(PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
	(PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
	(PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
	(PROC_SYMBOL, _PROC_MAGIC_): Delete.
	* Makefile.in: Update dependencies.
2004-10-30 20:26:26 +00:00
Andrew Cagney e6bc2e8af8 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (mips_abi_regsize): Declare.
	* mips-tdep.c (mips_abi_regsize): Make non-static.
2004-10-30 20:11:36 +00:00
Andrew Cagney ec4045ea2e 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (gdb_print_insn_mips): Simplify.
	(make_mips16_addr): Delete.
2004-10-30 19:58:11 +00:00
Andrew Cagney 8b622e6a0c 2004-10-30 Andrew Cagney <cagney@gnu.org>
Total breakage identified by Joel Brobecker.
	* mips-tdep.c (after_prologue): Delete.
	(mips_skip_prologue): Use skip_prologue_using_sal.
	(heuristic_proc_desc): Delete, unused.
2004-10-30 19:06:50 +00:00
Andrew Cagney 0fe7e7c867 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (mips_pc_is_mips16): Declare.
	* mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
	non-static.  Update calls.
2004-10-30 17:53:47 +00:00
Andrew Cagney 1b295c3d69 2004-10-30 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_enum_cmd): New function.
	* command.h (add_setshow_enum_cmd): Declare.
	* mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
2004-10-30 17:10:14 +00:00
Andrew Cagney 6bcadd0641 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (_initialize_mips_tdep): Use
	add_setshow_zinteger_cmd.
2004-10-30 16:53:22 +00:00
Andrew Cagney 9c8fdbfa63 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_eabi_extract_return_value)
	(mips_o64_extract_return_value, mips_o64_store_return_value)
	(return_value_location, mips_eabi_reg_struct_has_addr)
	(mips_eabi_use_struct_convention)
	(mips_eabi_store_return_value): Delete.
	(mips_eabi_store_return_value): New function.
	(mips_eabi_return_value): New function.
	(mips_gdbarch_init): For O64 and EABI, delete
	extract_return_value, store_return_value, use_struct_convention
	and reg_struct_has_addr, add return_value.
2004-10-30 16:27:43 +00:00
Andrew Cagney 1d93fe1a61 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (read_signed_register): Use
	regcache_cooked_read_signed.
2004-10-30 15:55:36 +00:00
Mark Kettenis 4c7d22cba3 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
(mips_mdebug_frame_cache, mips16_scan_prologue)
(mips32_scan_prologue, mips_stub_frame_cache)
(heuristic_proc_start, heuristic_proc_desc)
(mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
(mips_n32n64_return_value, mips_o32_push_dummy_call)
(mips_o32_return_value, mips_o64_push_dummy_call)
(mips_step_skips_delay, mips_skip_trampoline_code)
(mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
(mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
* mips-linux-tdep.c (mips_linux_o32_sigframe_init)
(mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
ZERO_REGNUM.
* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
(mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
ZERO_REGNUM.
(mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
A0_REGNUM.
* mipsnbsd-nat.c: Include "mips-tdep.h".
(getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
* Makefile.in (mipsnbsd-nat.o): Update dependencies.
2004-10-30 14:31:19 +00:00
Mark Kettenis c163184fa2 * mips-tdep.c (id_delayed): Remove prototype. 2004-10-27 19:50:24 +00:00
Andrew Cagney e7d6a6d283 2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
	* mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
	(mips_gdbarch_init): Update.
	(mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
2004-10-26 14:44:00 +00:00
Andrew Cagney c5115f39aa 2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
	* config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
	IN_SOLIB_RETURN_TRAMPOLINE.
	* mips-tdep.c (mips_dump_tdep): Do not print
	IN_SOLIB_RETURN_TRAMPOLINE.
	(mips_in_solib_return_trampoline): Rename mips_in_return_stub.
	(mips_gdbarch_init): Update.
2004-10-26 14:24:38 +00:00
Joel Brobecker 296391227b * mips-tdep.c (mips32_scan_prologue): Move the implementation up
a bit to avoid the necessity of an advance declaration. Remove
        declaration.
        (set_reg_offset): Move implemenation up.
        (mips16_get_imm): Likewise.
        (mips16_scan_prologue): Likewise.
        (reset_saved_regs): Likewise.
        (mips32_scan_prologue): Likewise.
2004-10-15 07:25:04 +00:00
Joel Brobecker a65bbe4404 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
Remove sp as a parameter, compute it internally instead. Move
        prologue scanning limit from heuristic_proc_desc to here.
        (mips16_scan_prologue): Likewise.
        (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
        by call to mips16_scan_prologue.
        (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
        by call to mips32_scan_prologue.
        (heuristic_proc_desc): Remove code that's no longer necessary.
        Update calls to mips16_scan_prologue and mips32_scan_prologue.
        (mips_skip_prologue): Update calls to mips16_scan_prologue
        and mips32_scan_prologue.
2004-10-15 07:09:10 +00:00
Joel Brobecker 1c645fec9f * mips-tdep.c (mips16_scan_prologue): Merge code from
mips16_skip_prologue.  Now return the address of the first
        instruction past the function prologue.
        (mips16_skip_prologue): Remove, no longer necessary.
        (mips_skip_prologue): Replace call to mips16_skip_prologue
        by call to mips16_scan_prologue.
2004-10-15 04:29:23 +00:00
Joel Brobecker 98b4dd9401 * mips-tdep.c (mips32_scan_prologue): Merge code from
mips32_skip_prologue.  Now return the address of the first
        instruction past the function prologue.
        (mips32_skip_prologue): Remove.  No longer necessary.
        (mips16_skip_prologue): Add parameter end_pc instead of
        computing it.
        (mips_skip_prologue): Compute the upper limit for the
        prologue scanning. Update call to mips16_skip_prologue.
        Replace call to mips32_skip_prologue by call to
        mips32_scan_prologue.
2004-10-14 22:34:25 +00:00
Joel Brobecker 25652d4f22 * mips-tdep.c (mips16_scan_prologue): Remove redundant code. 2004-10-11 02:27:14 +00:00
Joel Brobecker 1e05a7bfcf * mips-tdep.c (mips16_scan_prologue): Renames
mips16_heuristic_proc_desc. Update comment.
        (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
        (heuristic_proc_desc): Update calls to the 2 functions above.
2004-10-11 02:17:53 +00:00
Joel Brobecker c68a414253 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
Update comments. Also immediately return empty cache when the start
        address of our function could not be found.
        (mips_insn32_frame_cache): Likewise.
2004-10-11 02:04:23 +00:00
Joel Brobecker 0fce082197 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
(mips_insn16_frame_cache): Pass frame cache in call to
        heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
        Remove code that became redundant as a consequence.
        (mips32_heuristic_proc_desc): No longer compute a fake
        procedure descriptor. Compute the full frame cache instead.
        Some minor comment reformatting.
2004-10-11 01:00:58 +00:00
Daniel Jacobowitz 1fd8cd2072 From Maciej W. Rozycki <macro@mips.com>:
* mips-tdep.c (mips32_next_pc): Check the register's contents,
	not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2004-10-07 17:17:08 +00:00
Joel Brobecker 2de118d36e * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
(mips32_fetch_instruction): Remove, unused.
2004-10-01 00:43:21 +00:00
Joel Brobecker a9fe69d1f7 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
conditions that will always be true.
2004-10-01 00:20:13 +00:00
Joel Brobecker 65596487c8 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
call to heuristic_proc_desc. Remove code that became redundant
        as a consequence.
        (read_next_frame_reg): Remove special case for SP_REGNUM.
        (set_reg_offset): Fix small typo.
        (reset_saved_regs): New procedure.
        (mips32_heuristic_proc_desc): No longer compute a fake
        procedure descriptor. Compute the full frame cache instead.
        Some minor comment reformatting.
2004-09-16 00:35:55 +00:00
Andrew Cagney ee31a58d74 2004-09-13 Andrew Cagney <cagney@gnu.org>
* config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
	* config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
	* config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
	* config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
	* config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
	* mips-tdep.c (mips_dump_tdep): Do not print same.
2004-09-13 14:06:04 +00:00
Joel Brobecker 90edbfbc2c * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
heuristic_proc_desc.
        (mips_insn32_frame_cache): Likewise.
2004-09-05 20:15:41 +00:00
Joel Brobecker 01f4bf2bf0 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
left behind by error.
2004-09-05 00:19:30 +00:00
Andrew Cagney fb60388340 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
	(_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
	only use.
2004-09-04 00:16:56 +00:00
Andrew Cagney c9343fd1d0 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (temp_saved_regs): Delete.
	(set_reg_offset): Replace saved_regs parameter with this_cache.
	(heuristic_proc_desc, mips16_heuristic_proc_desc)
	(mips32_heuristic_proc_desc): Add this_cache parameter.
	(mips_insn32_frame_cache, mips_insn16_frame_cache)
	(after_prologue): Pass a NULL this_cache.
2004-09-03 23:47:23 +00:00
Andrew Cagney 9733cfe12b 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
	non-kernel trap prologues.
2004-09-03 23:00:18 +00:00
Andrew Cagney 0d5febcc7c 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (find_proc_desc): Delete function.
	(mips_mdebug_frame_cache): Inline call to find_proc_desc,
	simplify.
	(mips_insn16_frame_cache): Replace find_proc_desc with code from
	mips_insn32_frame_cache.
2004-09-03 22:41:27 +00:00
Andrew Cagney 283be8734b * mips-tdep.c (find_proc_desc): Inline call to find_proc_desc.
Simplify as NEXT_FRAME is NULL.
	(find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2004-09-03 22:31:23 +00:00
Andrew Cagney 177f84a36d 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (after_prologue): Replace proc_desc parameter with
	local variable.
	(mips_skip_prologue): Update.
2004-09-03 22:18:17 +00:00
Andrew Cagney 465f752091 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
	"cur_frame" parameter.
	(after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2004-09-03 22:00:44 +00:00
Joel Brobecker 8ac2e020a1 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
Minor reformatting. Some code factoring.
2004-09-02 22:57:49 +00:00
Joel Brobecker a343eb3cbf * mips-tdep.c (linked_proc_desc_table): Delete, not used.
(mips_insn32_frame_cache): Inline call to find_proc_desc.
        (find_proc_desc): Remove dead code.
2004-09-01 20:42:45 +00:00
Joel Brobecker 4fbbbd0782 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting. 2004-09-01 18:55:17 +00:00
Joel Brobecker fed7ba43e0 * mips-tdep.c: Include "floatformat.h".
(n32n64_floatformat_always_valid): New function.
        (floatformat_n32n64_long_double_big): New constant.
        (mips_gdbarch_init): Set size and format of long double
        for N32 and N64 ABIs.
        * Makefile.in (mips-tdep.o): Update dependencies.
2004-08-09 05:45:20 +00:00
Andrew Cagney 45c9dd4485 2004-08-02 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
	(mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
	(mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
	(mips_insn16_frame_base_address, mips_insn16_frame_base)
	(mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
	(mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
	(mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
	(mips_insn32_frame_base_address, mips_insn32_frame_base)
	(mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
	with mips_insn16 and mips_insn32.
2004-08-03 01:12:43 +00:00