Commit Graph

40908 Commits

Author SHA1 Message Date
Mark Kettenis e294916c5a * configure.in: Remove redundant AC_MSG_RESULT in check for
uintptr_t in stdint.h.
* configure: Regenerated.
2003-08-29 19:18:07 +00:00
Dave Brolley 5272d2012d 2003-08-29 Dave Brolley <brolley@redhat.com>
* Makefile.am (stamp-frv): Copy frv.cpu and frv.opc from
        $(srcdir)/../cpu temporarily when regenerating source files.
        * Makefile.in: Regenerated.
2003-08-29 19:14:54 +00:00
Dave Brolley e8d2f504d4 2003-08-29 Dave Brolley <brolley@redhat.com>
* Makefile.in (stamp-arch): Copy frv.cpu from $(srcdir)../../cpu
        temporarily when regenerating files.
        (stamp-cpu): Ditto.
2003-08-29 19:13:00 +00:00
Dave Brolley b3af7bdf4b 2003-08-29 Dave Brolley <brolley@redhat.com>
* MAINTAINERS: Add myself as maintainer of the FRV port.
2003-08-29 17:20:42 +00:00
Mark Kettenis c40d267a71 * amd64-nat.h (struct regcache): Add opaque declaration. 2003-08-29 17:18:27 +00:00
Dave Brolley 84fabdf612 2003-08-20 Michael Snyder <msnyder@redhat.com>
Dave Brolley  <brolley@redhat.com>

        * frv/: New directory, simulator for the Fujitsu FR-V.
        * testsuite/frv-elf/: New directory.
        * testsuite/sim/frv/: New directory.
        * configure.in: Add frv configury.
        * configure: Regenerate.
2003-08-29 16:45:22 +00:00
Dave Brolley 33319edb53 2003-08-20 Michael Snyder <msnyder@redhat.com>
Dave Brolley  <brolley@redhat.com>

        * cgen-par.h (flags, word1): New target-specific
        fields of CGEN_WRITE_QUEUE_ELEMENT.
        (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
        (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
        * gennltvals.sh: Add frv target.
        * nltvals.def: Add frv target.
2003-08-29 16:43:38 +00:00
Dave Brolley 51796a3f8b 2003-08-20 Michael Snyder <msnyder@redhat.com>
On behalf of Dave Brolley

        * sim/frv: New testsuite.
        * frv-elf: New testsuite.
2003-08-29 16:42:18 +00:00
Dave Brolley 4a30611667 New sim testsuite for Fujitsu FRV. Contributed by Red Hat. 2003-08-29 16:41:31 +00:00
Dave Brolley b34f6357d0 New simulator for Fujitsu frv contributed by Red Hat. 2003-08-29 16:35:47 +00:00
Mark Kettenis 60fac5b81a * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
* x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
Change "register array" to "register cache" in comments.
(x86_64_linux_gregset64_reg_offset): New variable.
(GETREGS_SUPPLIES): Remove macro.
(supply_gregset): Call amd64_supply_native_gregset instead of
x86_64_linux_supply_gregset.
(fill_gregset): Rename `regno' to `regnum'.  Call
amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
(store_regs): Rename `regno' to `regnum'.
(store_fpregs): Rename `regno' to `regnum'.
(fetch_inferior_registers): Rename `regno' to `regnum'.  Use
amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
Reorganize function a bit.
(store_inferior_registers): Rename `regno' to `regnum'.  Use
amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
Reorganize function a bit.
(_initialize_x86_64_linux_nat): New function.
* config/i386/x86-64linux.mh.
2003-08-29 16:28:39 +00:00
Andrew Cagney 546143b61a 2003-08-29 Andrew Cagney <cagney@redhat.com>
* config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
	(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
	(target_remove_watchpoint): Delete macro.
	(target_insert_watchpoint): Delete macro.
	(remote_mips_can_use_hardware_watchpoint): Delete declaration.
	(remote_mips_stopped_by_watchpoint): Delete declaration.
	(remote_mips_remove_watchpoint): Delete declaration.
	(remote_mips_set_watchpoint): Delete declaration.
	(TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
	* remote-mips.c (_initialize_remote_mips): Set
	"to_insert_watchpoint", "to_stopped_by_watchpoint",
	"to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
	(mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
	(mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
	(mips_stopped_by_watchpoint): Rename
	remote_mips_stopped_by_watchpoint.
	(mips_can_hardware_watchpoint): Rename
	remote_mips_can_use_hardware_watchpoint, update function
	signature.
2003-08-29 16:18:06 +00:00
Mark Kettenis b0f5c6f2c5 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
USER_DS.  We haven't given them a register number yet.
2003-08-29 15:31:10 +00:00
Mark Kettenis 2a6d284d76 * amd64-nat.h: New file.
* amd64-nat.c: New file.
* amd64fbsd-nat.c: Include "amd64-nat.h".
(REG_ADDR, GETREGS_SUPPLIES): Remove macros.
(amd64fbsd32_r_reg_offset): New variable.
(supply_gregset): Simply call amd64_supply_native_gregset.
(fill_gregset): Rename `regno' to `regnum'.  Simply call
amd64_collect_native_gregset.
(fill_fpregset): Rename `regno' to `regnum'.
(fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
Use `struct reg' and `struct fpreg' instead of `gregset_t' and
`fpregset_t'.  Call amd64_supply_native_gregset instead of
supply_gregset.  Call x86_64_supply_fxsave instead of
supply_fpregset.
(store_inferior_registers): Rename `regno' to `regnum'.  Replace
usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
Use `struct reg' and `struct fpreg' instead of `gregset_t' and
`fpregset_t'.  Call amd64_collect_native_gregset instead of
fill_gregset.  Call x86_64_collect_fxsave instead of
fill_fpregset.
(_initialize_am64fbsd_nat): Initialize
amd64_native_gregset32_reg_offset and
amd64_native_gregset64_reg_offset.
* config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2003-08-29 13:58:26 +00:00
Mark Kettenis a16d75cc48 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
null pointer.  Fix typo in comment.
2003-08-29 13:04:44 +00:00
Mark Kettenis 7bace51ba7 * regcache.c (supply_register): Reimplement to call
regcache_raw_supply.
(regcache_collect): Reimplement by calling regcache_raw_collect.
2003-08-29 11:48:04 +00:00
Mark Kettenis 8afa723e83 * gdb.base/interrupt.exp: XFAIL "call function when asleep" for
*-*-*bsd*.
2003-08-29 11:42:28 +00:00
Mark Kettenis 9a661b68d1 * regcache.c (register_buffer): Consitify first argument.
(regcache_raw_supply, regcache_raw_collect): New
functions.
2003-08-29 09:59:28 +00:00
Alan Modra 71df864f7b * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define. 2003-08-29 00:34:27 +00:00
Daniel Jacobowitz ee949b5e7a * install-sh: Update to newer upstream versions (associated with
aclocal 1.7).
	* missing:  Likewise, plus $1Help2man -> $1 typo fix.
2003-08-29 00:13:09 +00:00
Alan Modra 1d4be3b517 daily update 2003-08-29 00:00:14 +00:00
gdbadmin 0d6880098a *** empty log message *** 2003-08-29 00:00:01 +00:00
Jeff Johnston f31dfe3b88 2003-08-28 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/dump.exp: Skip for ia64.
2003-08-28 18:01:50 +00:00
Andrew Cagney e158f0a010 Index: common/ChangeLog
2003-08-28  Andrew Cagney  <cagney@redhat.com>

	* dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
	* sim-options.c (print_help): Cast the format with specifier to
	"int".

Index: mn10300/ChangeLog
2003-08-28  Andrew Cagney  <cagney@redhat.com>

	* dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to
	"long".
	(read_status_reg): Cast "serial_reg" to "long".
	* dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to
	"long".
	(do_counter6_event, write_mode_reg, write_tm6md): Ditto.
2003-08-28 17:02:00 +00:00
Daniel Jacobowitz e94cc8fa71 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
by Nathan J. Williams.
2003-08-28 14:44:14 +00:00
Daniel Jacobowitz c64bd0ced3 * lin-lwp.c (wait_lwp): New function, copied from
stop_wait_callback.  Clean up.
	(stop_wait_callback): Use wait_lwp.
2003-08-28 14:20:03 +00:00
Andrew Cagney e5ab0dce47 2003-08-28 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
	flavour and disassembler options.
	(_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
	(mips_gdbarch_init): Set "print_insn".  Delete initialization of
	deprecated_tm_print_insn_info.
2003-08-28 04:34:19 +00:00
Andrew Cagney a788de9bae 2003-08-27 Andrew Cagney <cagney@redhat.com>
* s390-tdep.c (s390_readinstruction): Delete "info" parameter.
	Use target_read_memory.
	(s390_get_frame_info): Update.  Do not reference
	deprecated_tm_print_insn_info.
	(s390_check_function_end, s390_is_sigreturn): Ditto.
2003-08-28 03:39:20 +00:00
Andrew Cagney 36482093be 2003-08-27 Andrew Cagney <cagney@redhat.com>
* Makefile.in (cris-tdep.o): Update dependencies.
	* cris-tdep.c: Include "gdb_assert.h".
	(cris_gdbarch_init): Set print_insn.
	(_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
	(cris_delayed_get_disassembler): Simplify, directly call the
	disassembler returned by cris_get_disassembler.
	* hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
	(_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
	* ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
	(_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
	* mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
	(_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
	* mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
	(_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
	* frv-tdep.c (frv_gdbarch_init): Set print_insn.
	(_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
	* sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
	(gdb_print_insn_sparc): Delete function.
	(_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
	deprecated_tm_print_insn_info.
	* v850-tdep.c (v850_gdbarch_init): Set print_insn.
	(_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
	(v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
	* xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
	(_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
	* s390-tdep.c (gdb_print_insn_s390): Delete function.
	(_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
	(s390_gdbarch_init): Set print_insn.
2003-08-28 03:03:44 +00:00
Andrew Cagney 0285512f29 2003-08-27 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
	(ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
	* infcall.c (call_function_by_hand): Convert the entry point
	address into a code address.
2003-08-28 02:53:08 +00:00
Andrew Cagney cdcd555211 2003-08-27 Andrew Cagney <cagney@redhat.com>
* dsrec.c: Include "gdb_string.h".
	* Makefile.in (dsrec.o): Update dependencies.
2003-08-28 00:49:31 +00:00
gdbadmin c58c6baf79 *** empty log message *** 2003-08-28 00:00:31 +00:00
Alan Modra ae5a54c2fa daily update 2003-08-28 00:00:16 +00:00
Daniel Jacobowitz 75addda2fa * configure.in: Set RAW_CXX_FOR_TARGET if unset.
* configure: Regenerated.
2003-08-27 21:17:54 +00:00
Daniel Jacobowitz 2299a76d2f * aclocal.m4: Include acx.m4 and no-executables.m4.
(libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
	(LIB_AC_PROG_CC): Remove.
	* configure.in: Update AC_PREREQ to 2.57.  Use GCC_NO_EXECUTABLES.
	Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
	LIB_AC_PROG_CC.  Use AC_LIBOBJ.  Call AC_ISC_POSIX later, only if
	performing link tests.
	* configure: Regenerated.
2003-08-27 21:15:13 +00:00
Michael Chastain e85cddadf9 2003-08-27 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2003-08-27 19:25:58 +00:00
Daniel Jacobowitz 779fc3c367 * config/no-executables.m4: New file. 2003-08-27 19:14:47 +00:00
Andrew Cagney 8bbfbb2352 2003-08-27 Andrew Cagney <cagney@redhat.com>
* alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
	(alpha_osf1_init_abi): Do not set call_dummy_address.
2003-08-27 19:02:03 +00:00
Ian Lance Taylor 49c97a80e3 * configure.in: Check for strtoull.
* bfd.c (bfd_scan_vma): Use strtoull when available.
	* configure, config.in: Regenerate.
2003-08-27 17:57:33 +00:00
Ian Lance Taylor ec317fb157 * configure.in: Define and substitute BFD_HOST_LONG_LONG.
* bfd-in.h: Define BFD_HOST_LONG_LONG.  Test it rather than
	__GNUC__ when deciding whether to use long long for
	BFD_HOST_64_BIT.
	* configure, Makefile.in, doc/Makefile.in, bfd-in2.h: Regenerate.
2003-08-27 17:43:39 +00:00
David Carlton ba058b6617 2003-08-27 David Carlton <carlton@kealia.com>
From Randolph Chung  <tausq@debian.org>:
	* linux-proc.c (linux_info_proc_cmd): rework the code so that it
	compiles with -Wformat-nonliteral -Werror.
2003-08-27 15:41:41 +00:00
Christian Groessler d539b3aa78 2003-08-27 Christian Groessler <chris@groessler.org>
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
	i860_howto_splitn_reloc, i860_howto_highadj_reloc): New
	functions.
	(elf32_i860_howto_table): Insert the new functions as
	'special_function's in the proper reloc type entries.
2003-08-27 13:28:42 +00:00
Richard Sandiford 73052b5e96 * elf32-frv.c (elf32_frv_relocate_section): Use
_bfd_elf_rela_local_sym.
2003-08-27 09:21:15 +00:00
Nathanael Nerode 8d2877d8ff Merge bugfix from GCC:
2003-08-23  Phil Edwards  <pme@gcc.gnu.org>

	* configure.in:  Use newline instead of semicolon when assuming
	shell arguments in a for loop.
	* configure:  Regenerated.
2003-08-27 03:05:51 +00:00
gdbadmin f5d9813f6c *** empty log message *** 2003-08-27 00:00:31 +00:00
Alan Modra a9b6ab4d33 daily update 2003-08-27 00:00:05 +00:00
Jim Blandy 87f84c9d11 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
(enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
bfd_lookup_symbol, since we only want symbols in code sections.
(look_for_base): Pass zero as the SECT_FLAGS argument to
bfd_lookup_symbol, since we're not concerned about which section
the symbol is in.
2003-08-26 23:35:19 +00:00
Jeff Johnston 102d615a7c 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
* ia64-tdep.c (examine_prologue): Only stop at predicated insns if
        we are frameless or the return address register is already known.
2003-08-26 22:24:40 +00:00
Andrew Cagney cc7ad3eab3 2003-08-26 Andrew Cagney <cagney@redhat.com>
* i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
	in size.  Add comments.
2003-08-26 19:34:53 +00:00
Jeff Johnston af8b88dd22 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
* ia64-tdep.c (ia64_convert_from_func_addr): New function.
        (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2003-08-26 17:33:22 +00:00