Commit Graph

17657 Commits

Author SHA1 Message Date
gdbadmin aef7fac45b *** empty log message *** 2004-11-02 00:00:32 +00:00
Joseph Myers 0bbc026efa * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
(amd64-sol2-tdep.o): Add dependencies.
	* amd64-sol2-tdep.c, config/i386/sol2-64.mh,
	config/i386/sol2-64.mt: New files.
	* i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
	amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
	(supply_gregset): Correct order of arguments to
	amd64_supply_native_gregset.
	(fill_gregset): Correct order of arguments to
	amd64_collect_native_gregset.
	* configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
	* configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
	* configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
	for definition of NEW_PROC_API.
	* configure: Regenerate.
2004-11-01 21:05:56 +00:00
Joseph Myers 3d38a0a50c * MAINTAINERS (Write After Approval): Add myself. 2004-11-01 21:01:25 +00:00
Andrew Cagney f81cd1cfec 2004-11-01 Andrew Cagney <cagney@gnu.org>
* configure.tgt: Mark d10v-*-* as obsolete.
	* config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
2004-11-01 14:44:58 +00:00
Paul N. Hilfinger f4e88c8e2c * values.c (modify_field): Correct handling of bit-fields that
don't fit in 32 bits.  Use unsigned operations throughout and
simplify the code a bit.  Document preconditions.
2004-11-01 11:14:38 +00:00
Andrew Cagney 96693b3af8 2004-10-31 Andrew Cagney <cagney@gnu.org>
* config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
	* config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
	(in_plt_section): Delete.
2004-11-01 00:01:11 +00:00
gdbadmin b978c863e3 *** empty log message *** 2004-11-01 00:00:03 +00:00
Andrew Cagney 6f296f8fff 2004-10-31 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_in_solib_return_trampoline): Delete.
	(mips_gdbarch_init): Do not set same.
2004-10-31 21:51:58 +00:00
Andrew Cagney 618501c0e9 2004-10-31 Andrew Cagney <cagney@gnu.org>
* arch-utils.c (generic_in_solib_call_trampoline): Delete.
	* arch-utils.h (generic_in_solib_call_trampoline): Delete.
2004-10-31 21:42:32 +00:00
Andrew Cagney b22e8f02be 2004-10-31 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (in_solib_call_trampoline): Delete.
	* gdbarch.h, gdbarch.c: Re-generate.
2004-10-31 21:21:41 +00:00
Andrew Cagney 84674fe179 2004-10-31 Andrew Cagney <cagney@gnu.org>
* hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
	IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
	* hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
	* hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
	* hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
2004-10-31 21:09:28 +00:00
Mark Kettenis c6d1029f18 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
(mipsnbsd_fetch_inferior_registers): Rename from
fetch_inferior_registers.  Make static.
(mipsnbsd_store_inferior_registers): Rename from
store_inferior_registers.  Make static.
(_initialize_mipsnbsd_nat): New function and prototype.
* Makefile.in (mipsnbsd-nat.o): Update dependencies.
* config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
(NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
inf-ptrace.o.
2004-10-31 20:47:55 +00:00
Mark Kettenis 0159bdbf8e * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
(fill_fpregset): Do not compile for 64-bit systems.
* i386-sol2-nat.c: Don't include "i386v4-nat.c".
* Makefile.in (i386-sol2-nat.o): Update dependencies.
* config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
2004-10-31 20:37:00 +00:00
Andrew Cagney 19d718a3ac 2004-10-31 Andrew Cagney <cagney@gnu.org>
* xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
	(xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
	delete corresponding unused function.
	* armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
	in_solib_call_trampoline.
	* config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
	* config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
	* config/mips/tm-nbsd.h: Ditto.
	* config/arm/tm-linux.h: Ditto.
	* config/mips/tm-linux.h: Ditto.
2004-10-31 20:36:35 +00:00
Andrew Cagney e8ce19c0cd 2004-10-31 Andrew Cagney <cagney@gnu.org>
* armnbsd-tdep.c (arm_netbsd_aout_init_abi)
	(arm_netbsd_aout_in_solib_call_trampoline): Do not set
	in_solib_call_trampoline, delete corresponding unused function.
	* vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
	(vaxnbsd_aout_init_abi): Ditto.
	* sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
	(sparc32nbsd_aout_init_abi): Ditto.
	* ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
	(ppc_linux_init_abi): Ditto.
	* ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
	(ns32knbsd_init_abi_aout): Ditto.
	* mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
	* mips-linux-tdep.c (mips_linux_init_abi): Ditto.
	* m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
	(m68kbsd_aout_init_abi): Ditto.
	* i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
	(i386_cygwin_init_abi): Ditto.
	* i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
	(i386bsd_init_abi): Ditto.
2004-10-31 20:24:32 +00:00
Andrew Cagney af380d6174 2004-10-31 Andrew Cagney <cagney@gnu.org>
* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
	in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
	isn't used by this architecture.
	* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
	* sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
	* sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
	* s390-tdep.c (s390_gdbarch_init): Ditto.
	* ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
	* m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
	* i386-tdep.c (i386_svr4_init_abi): Ditto.
	* i386-nto-tdep.c (i386nto_init_abi): Ditto.
	* arm-linux-tdep.c (arm_linux_init_abi): Ditto.
	* amd64-tdep.c (amd64_init_abi): Ditto.
2004-10-31 19:52:47 +00:00
Andrew Cagney 0528d9f717 2004-10-31 Andrew Cagney <cagney@gnu.org>
* vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
	in_solib_call_trampoline to its default value of
	generic_in_solib_call_trampoline.
	* ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
	* m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
	* i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
	* i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
	* i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
	* hppabsd-tdep.c (hppabsd_init_abi): Ditto.
2004-10-31 19:43:30 +00:00
Andrew Cagney f9f9eacbd3 2004-10-31 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
2004-10-31 19:25:49 +00:00
Andrew Cagney a4ffd1e716 2004-10-31 Andrew Cagney <cagney@gnu.org>
* config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
2004-10-31 18:40:55 +00:00
Andrew Cagney 82e34d2ffd 2004-10-31 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h: Delete file.
	* remote-mips.c: Delete tm-mips.h from comment.
	* config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
	* config/mips/tm-nbsd.h: Don't include tm-mips.h.
	* config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
	* config/mips/tm-linux.h: Don't include tm-mips.h.
	* config/mips/tm-vxmips.h: Don't include tm-mips.h.
	* config/mips/irix5.mt (DEPRECATED_TM_FILE):
	* config/mips/tm-wince.h: Don't include.
2004-10-31 18:20:00 +00:00
Andrew Cagney 75dec9cf6f 2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
	* mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
	* config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
	* config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
2004-10-31 17:57:43 +00:00
Andrew Cagney bd9ca83f2c 2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.h (ecoff_relocate_efi): Delete declaration.
	* mdebugread.c (ecoff_relocate_efi): Delete function.
	* objfiles.c (objfile_relocate): Delete #ifdef
	MDEBUG_EFI_SYMBOL_NAME code.
2004-10-31 17:48:17 +00:00
Andrew Cagney 3352ef37c2 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
Andrew Cagney  <cagney@gnu.org>

	* gdbarch.sh (single_step_through_delay): Add.
	* gdbarch.h, gdbarch.c: Re-generate.
	* config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
	(mips_step_skips_delay): Delete.
	* mips-tdep.c (mips_single_step_through_delay): Replace
	mips_step_skips_delay.
	(mips_gdbarch_init): Set single_step_through_delay.
	(mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
2004-10-31 17:38:16 +00:00
Mark Kettenis 2440b685a7 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
from TRAMP_FRAME frame type.
2004-10-31 16:48:50 +00:00
Andrew Cagney 9b792b1d38 2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
2004-10-31 16:31:50 +00:00
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 56a2fed533 2004-10-31 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h (RA_REGNUM): Delete.
2004-10-31 15:50:54 +00:00
Mark Kettenis f69c55b294 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
(fill_fpregset): Do not compile for 64-bit systems.
* i386-sol2-nat.c: Don't include "i386v4-nat.c".
* Makefile.in (i386-sol2-nat.o): Update dependencies.
* config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
2004-10-31 15:35:08 +00:00
Andrew Cagney 36b8628e19 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
	(struct mdebug_extra_func_info): Define.
	* config/alpha/tm-alpha.h: Delete same.
	* config/mips/tm-mips.h: Delete same.
	* mdebugread.c: Delete same.
	* Makefile.in: Update dependencies.
	* mips-mdebug-tdep.c: Include "mdebugread.h".
2004-10-31 04:33:14 +00:00
Andrew Cagney 5b12314664 2004-10-30 Andrew Cagney <cagney@gnu.org>
* objfiles.c: Include "mdebugread.h".
	* mdebugread.c: Include "mdebugread.h".
	(ecoff_relocate_cfi): Delete.
	* config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
	* config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
	* mdebugread.h (ecoff_relocate_efi): New file.
	* Makefile.in: Update dependencies.
2004-10-31 03:42:52 +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 0bb57b3183 2004-10-30 Andrew Cagney <cagney@gnu.org>
Suggested by Mark Kettenis.
	* config/mips/tm-mips.h (struct mips_extra_func_info): Delete
	fields frame_adjust and high_addr.
	* mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
	(non_heuristic_proc_desc): Delete references.
2004-10-31 00:07:29 +00:00
gdbadmin cf5d6d3c70 *** empty log message *** 2004-10-31 00:00:03 +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
Mark Kettenis b7cbf173ac * gdb.asm/asm-source.exp: Add mips*-*-netbsd* to the list of
NetBSD/ELF targets.
2004-10-30 21:49:30 +00:00
Mark Kettenis d1180b0f30 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
(MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
(MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
(fetch_core_registers, fetch_elfcore_registers): Remove functions.
(mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
(mipsnbsd_core_osabi_sniffer): New function.
(mipsnbsd_init_abi): Set regset_from_core_section.
(_initialize_mipsnbsd_tdep): Remove calls to
deprecated_add_core_fns.
(mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
(mipsnbsd_regset_from_core_section): New functions.
(mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
* Makefile.in (mipsnbsd-tdep.o): Update dependencies.
2004-10-30 21:40:48 +00:00
Mark Kettenis ceb41096a8 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
Remove optimization for DEPRECATED_FP_REGNUM.
2004-10-30 21:30:58 +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
Mark Kettenis 6b16acab09 * i386-sol2-nat.c: New file.
* Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
i386-sol2-tdep.c.
(i386-sol2-nat.o): Update dependencies.
* config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
i386-sol2-nat.o.
2004-10-30 19:49:41 +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
Mark Kettenis 772cf8be75 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
(proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
Cleanup coding style.
2004-10-30 18:01:11 +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 303d2914db * mipsread.c: Cleanup coding style.
(mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
(mipscoff_symfile_finish): Remove prototypes.


* 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 15:01:31 +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
Andrew Cagney 1c8831c5ad 2004-10-29 Andrew Cagney <cagney@gnu.org>
* stack.c (parse_frame_specification_1): New function based on
 	parse_frame_specification.  Add message and selected_frame_p
 	paramters.  Truely always return non-NULL.
 	(parse_frame_specification): Call parse_frame_specification_1.
 	(frame_info): Update.  Eliminate target_has_stack check.
 	(select_frame_command): Update.
2004-10-30 00:10:05 +00:00
gdbadmin 9a54dff734 *** empty log message *** 2004-10-30 00:00:02 +00:00
Joel Brobecker 88f9d34f0c * gdb.threads/bp_in_thread.c: New file, copied from
pthread_cond_wait.c.
        * gdb.threads/bp_in_thread.c: Use bp_in_thread.c as the source
        file, rather than reusing the .c file from another testcase.
2004-10-29 21:35:20 +00:00
Mark Kettenis 760caeb8c9 Really commit this file. 2004-10-29 20:49:14 +00:00
Andrew Cagney b04f3ab417 2004-10-29 Andrew Cagney <cagney@gnu.org>
* frame.h (get_selected_frame): Add message parameter.
	* frame.c (get_selected_frame): Add and use message parameter.
	* stack.c (current_frame_command, return_command, locals_info)
	(catch_info, args_info, up_silently_base, down_silently_base): Use
	get_selected_frame with an explicit message.
	* thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
	* remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
	* ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
	* infrun.c, inflow.c, infcmd.c, frame.c: Update.
	* findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
	* breakpoint.c: Update.
2004-10-29 20:23:17 +00:00
Andrew Cagney 00b25ff323 2004-10-27 Andrew Cagney <cagney@gnu.org>
* trad-frame.c (trad_frame_get_prev_register): Use
	frame_unwind_register instead of frame_register_unwind, do not
	recurse the register's location.
	* xstormy16-tdep.c (xstormy16_frame_prev_register):
	* sparc-tdep.c (sparc32_frame_prev_register): Ditto.
	* sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
	* sh-tdep.c (sh_frame_prev_register): Ditto.
	* m68k-tdep.c (m68k_frame_prev_register): Ditto.
	* i386-tdep.c (i386_frame_prev_register): Ditto.
	* dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
	* amd64-tdep.c (amd64_frame_prev_register): Ditto.
2004-10-29 14:00:58 +00:00
gdbadmin dd891d7edb *** empty log message *** 2004-10-29 00:00:32 +00:00
Mark Kettenis c18c06be5e * proc-events.c: Fix several coding-style issues. Consistently
use #ifdef instead of #if defined().
(proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
ARRAY_SIZE.
(_initialize_proc_events): New prototype.
2004-10-28 11:45:43 +00:00
Mark Kettenis 7a9525427b * proc-why.c: Fix several coding-style issues.
(proc_prettyfprint_why): Use ARRAY_SIZE.
2004-10-28 11:04:07 +00:00
gdbadmin 014457d27f *** empty log message *** 2004-10-28 00:00:02 +00:00
Jim Blandy fcad0fa40f * remote.c (fetch_register_using_p): Construct 'p' packet in a
manner independent of the host byte order.
2004-10-27 20:03:50 +00:00
Mark Kettenis c163184fa2 * mips-tdep.c (id_delayed): Remove prototype. 2004-10-27 19:50:24 +00:00
gdbadmin f9dd442b25 *** empty log message *** 2004-10-27 00:00:33 +00:00
Mark Kettenis 9c46b6f006 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
to enum with register numbers.
(enum mips_insn_size): New enum.
2004-10-26 19:40:39 +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
Andrew Cagney 0d0266c631 2004-10-26 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (mips_software_single_step): Move to here ...
	* config/mips/tm-mips.h: ... from here.
	* config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
	(SOFTWARE_SINGLE_STEP): Delete.
	* mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
2004-10-26 14:13:24 +00:00
gdbadmin afa8f99d0b *** empty log message *** 2004-10-26 00:00:02 +00:00
Andrew Cagney 156a53caf0 2004-10-25 Andrew Cagney <cagney@gnu.org>
* NEWS: Add Changes since GDB 6.3 section.
2004-10-25 18:50:09 +00:00
gdbadmin 137ff98e57 *** empty log message *** 2004-10-25 00:00:04 +00:00
gdbadmin abf8796805 *** empty log message *** 2004-10-24 00:00:32 +00:00
Andreas Schwab f27cf670a8 * ada-lang.c (grow_vect): Return the new array instead of
expecting pointer to pointer to avoid violation of aliasing rules.
	* ada-lang.h (GROW_VECT): Adapt call to grow_vect.
2004-10-23 19:13:26 +00:00
Ulrich Weigand 121d8485df * s390-tdep.c (enum pv_boolean): Remove.
(pv_is_array_ref): Remove.
	(s390_on_stack): Remove.
	(S390_NUM_SPILL_SLOTS): Remove.
	(struct s390_prologue_data): Remove members 'spill' and 'back_chain',
	add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
	(s390_store): Track all stores of orginal incoming registers to the
	stack constant offsets relative to the CFA, instead of only tracking
	stores into specific spill slots.
	(s390_load): Likewise.
	(s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
	(s390_prologue_frame_unwind_cache): Likewise.  Only track registers
	defined as call-saved by the ABI.
	(s390_push_dummy_call): Use bottom of dummy call argument save area
	as return value, not the top.  Do not store to the called function's
	register save area.
	(s390_unwind_dummy_id): Adapt accordingly.
2004-10-23 16:31:23 +00:00
Andrew Cagney 0a6ddd0822 2004-10-23 Andrew Cagney <cagney@gnu.org>
* objfiles.h (struct objfile): Rename obj_private to
	deprecated_obj_private, sym_private to deprecated_sym_private, and
	sym_stab_info to deprecated_sym_stab_info.
	* gdb-stabs.h: Update.
	* elfread.c: Update.
	* dbxread.c: Update.
	* coffread.c: Update.
	* xcoffread.c: Update.
	* symfile.c: Update.
	* somread.c: Update.
	* nlmread.c: Update.
	* mdebugread.c: Update.
	* hpread.c: Update.
	* coffread.c: Update.
2004-10-23 16:18:09 +00:00
Eli Zaretskii 384ee23f42 * gdb.texinfo (Core File Generation): New section. 2004-10-23 15:05:29 +00:00
Eli Zaretskii f856860472 (Calling): Expand and elaborate text. Add "print". Add the
description of problems with weak aliases.
2004-10-23 14:34:54 +00:00
Eli Zaretskii f018e82f92 2004-10-23 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo (Starting): Fix whitespace; make "elaboration" stand
	out where it is first used, and add an index entry for the term.
2004-10-23 14:21:44 +00:00
Eli Zaretskii dcaf7c2c09 2004-10-23 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo(Files): Add a tip for decreasing memory used for
	symtabs from shared libraries.
2004-10-23 14:11:33 +00:00
Eli Zaretskii 60bf7e09b1 * gdb.texinfo (SVR4 Process Information): Document subcommands of
"info proc" that are already implemented.  Add index entries.
	(Working Directory): Add a cross-reference to "info proc" command.
2004-10-23 13:52:37 +00:00
Mark Kettenis abc0878268 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
* configure.host: Add mips64*-*-openbsd*.
* configure.tgt: Add mips64*-*-openbsd*.
* Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
mips64obsd-tdep.c.
(mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
* config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
2004-10-23 12:14:02 +00:00
gdbadmin 28d849a229 *** empty log message *** 2004-10-23 00:00:03 +00:00
Joel Brobecker fc062ac6da * symtab.c (symbol_search_name): Minor reformatting. 2004-10-22 20:58:56 +00:00
Michael Snyder 81c0587e03 2004-10-21 msnyder <msnyder@redhat.com>
* mn10300-tdep.c: Replace struct mn10300_unwind_cache with
	struct trad_frame_cache.  Don't seem to need any more.
	(mn10300_frame_unwind_cache): Use trad_frame_cache.
	Tentatively try using SP or A3 reg as frame base.
	(mn10300_frame_dummy_this_id): Rename to mn10300_frame_this_id.
	Call trad_frame_get_id.
	(mn10300_frame_prev_reg): Call trad_frame_get_reg.
	(mn10300_frame_base_address): Call trad_frame_get_this_base.
	(mn10300_frame_args_address, mn10300_frame_locals_address):
	Delete.  Substitute mn10300_frame_base_address.
	(mn10300_frame_unwind_init): Call dwarf2_frame_sniffer (even
	though it doesn't seem to work yet).
2004-10-22 00:34:42 +00:00
gdbadmin 079153e36a *** empty log message *** 2004-10-22 00:00:32 +00:00
Joel Brobecker 43360365b4 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
(ARCH_SET_FS): Likewise.
        (ARCH_GET_FS): Likewise.
        (ARCH_GET_GS): Likewise.
2004-10-21 04:10:48 +00:00
Joel Brobecker ca7d6a0cb5 * gdb.ada/null_record.exp: Check where we stopped after
sending the start command, instead of where the associated
        temporary breakpoint was inserted.
2004-10-21 03:55:08 +00:00
Joel Brobecker 5bccb4d1df * symtab.h: Fix typo in comment. 2004-10-21 00:52:30 +00:00
gdbadmin a40105afc8 *** empty log message *** 2004-10-21 00:00:06 +00:00
gdbadmin ca6b4a3bb9 *** empty log message *** 2004-10-20 00:00:02 +00:00
Mark Kettenis a738430dd6 * dwarf2read.c (struct comp_unit_head): Fix coding style.
(dwarf_decode_line_header): Likewise.
2004-10-19 20:28:56 +00:00
Michael Chastain f2cb65cafb 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
* NEWS: GDB works with GCC -feliminate-dwarf2-dups.
2004-10-19 19:43:50 +00:00
Andrew Cagney 09e55376ec 2004-10-19 Andrew Cagney <cagney@gnu.org>
GDB 6.3 branch created.
	* version.in: Bump to version 6.3.50_2004-10-19-cvs.
2004-10-19 18:18:40 +00:00
gdbadmin 10408d8807 *** empty log message *** 2004-10-19 00:00:02 +00:00