Commit Graph

14494 Commits

Author SHA1 Message Date
Daniel Jacobowitz 0fac0b4199 ./
* cli/cli-logging.c: New file.
	* cli-out.c (struct ui_out_data): Add original_stream.
	(cli_redirect): New function.
	(cli_ui_out_impl): Add cli_redirect.
	(cli_out_new): Initialize original_stream.
	* ui-out.c (default_ui_out_impl): Add NULL for redirect member.
	(uo_redirect, ui_out_redirect): New.
	* ui-out.h (struct ui_out_impl): Add redirect member.
	(redirect_ftype): New.
	(ui_out_redirect): Add prototype.
	* Makefile.in: Add rules for cli-logging.c.
	* NEWS: Mention "set logging".
mi/
	* mi-out.c (mi_ui_out_impl): Add NULL for redirect member.
tui/
	* tui-out.c (tui_ui_out_impl): Add NULL for redirect member.
doc/
	* gdb.texinfo (Logging output): New chapter.
2003-06-28 16:19:07 +00:00
gdbadmin 1f0b93a6cb *** empty log message *** 2003-06-28 00:00:33 +00:00
Elena Zannoni 88a07d7ce0 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
* config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2003-06-27 17:05:58 +00:00
Andrew Cagney 4eb588760e 2003-06-27 Andrew Cagney <cagney@redhat.com>
* m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
	(m68hc11_gdbarch_init): Do not set call_dummy_address.
	* avr-tdep.c (avr_call_dummy_address): Delete function.
	(avr_gdbarch_init): Do not set call_dummy_address.
2003-06-27 16:15:09 +00:00
Elena Zannoni 1549f61969 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
* symfile.c (syms_from_objfile): Move variables to inner block.
        Move the checks for the non-mainline case a bit earlier to avoid
        doing some useless computations.
2003-06-27 13:11:17 +00:00
Elena Zannoni 3cb3398dc3 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
* dwarfread.c (decode_modified_type): Gag new compiler warning.
2003-06-27 13:09:38 +00:00
gdbadmin a9232bb265 *** empty log message *** 2003-06-27 00:00:32 +00:00
Elena Zannoni 3799ccc6c6 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
* dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
	sections.
2003-06-26 21:20:39 +00:00
Michael Chastain ce1f64914e 2003-06-26 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
	gdb/testsuite/gdb.c++/pr-1210.exp.
2003-06-26 18:39:47 +00:00
Andrew Cagney d958dfd05b 2003-06-26 Andrew Cagney <cagney@redhat.com>
* config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
	altivec_expression.h and altivec_registers.h.
2003-06-26 18:09:24 +00:00
Andrew Cagney d31431ed7c 2003-06-26 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (gdb_print_insn_mips): Only explicitly set
	info->mach when MIPS16.  Patch suggested by Fred Fish.
2003-06-26 18:01:58 +00:00
Andrew Cagney 714b128219 2003-06-26 Andrew Cagney <cagney@redhat.com>
* utils.c (internal_vproblem): Print the problem to a reason
	buffer and then pass to query.  Make the msg variable more local.

VS: ----------------------------------------------------------------------
2003-06-26 17:25:25 +00:00
Andrew Cagney 42efa47a82 2003-06-26 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
	(FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
	* gdbarch.h, gdbarch.c: Re-generate.
	* frame-base.c (default_frame_args_address): Update.  Use
	default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
	not available.
	(default_frame_locals_address): Ditto for
	DEPRECATED_FRAME_LOCALS_ADDRESS.
	* vax-tdep.c (vax_sigtramp_saved_pc): Update.
	(vax_frame_num_args): Update.
	(vax_gdbarch_init): Update.
	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
	* ns32k-tdep.c (ns32k_gdbarch_init): Update.
	* mcore-tdep.c (mcore_gdbarch_init): Update.
	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
	* ia64-tdep.c (ia64_gdbarch_init): Update.
	* symtab.h (address_class): Update comments.
	* ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
	* config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
	(DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
	* config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
	(DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
	(DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
	* config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
	* alpha-mdebug-tdep.c: Update.
	* ada-lang.c (add_symbols_from_enclosing_procs): Update.
2003-06-26 17:18:43 +00:00
Andreas Jaeger 8ffd9b1b7a * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
of SSE registers so that varargs functions work.  Rework handling
	of passing arguments on the stack.
	(x86_64_store_return_value): Return double and float values in SSE
	register.
2003-06-26 17:08:10 +00:00
Michael Chastain e8ac10a6d2 2003-06-24 Michael Chastain <mec@shout.net>
* PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
	the "constructor breakpoints ignored" bug.
2003-06-26 16:22:59 +00:00
Andrew Cagney f40ab5dda0 delete stray changelog 2003-06-26 14:50:47 +00:00
gdbadmin 41108f153c *** empty log message *** 2003-06-26 00:00:32 +00:00
David Carlton 986af8e60d 2003-06-25 David Carlton <carlton@kealia.com>
* MAINTAINERS: Update e-mail address.
2003-06-25 21:54:42 +00:00
gdbadmin 8f089050dc *** empty log message *** 2003-06-25 00:00:02 +00:00
Jim Blandy e538d2d7ba * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux". 2003-06-24 23:09:22 +00:00
Jim Blandy 02631ec09e * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
function.
(ppc_linux_init_abi): Register it as the
CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2003-06-24 23:06:04 +00:00
Jim Blandy e716d87a00 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
(ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
method.
2003-06-24 23:03:31 +00:00
Jim Blandy d64558a59f * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
(ppc64_standard_linkage_target): Use it.
2003-06-24 23:02:10 +00:00
Joel Brobecker e766d4d601 * gdb.base/bang.exp: New testcase. 2003-06-24 22:04:06 +00:00
Joel Brobecker 4e562065db * gdb.texinfo (Unsupported languages): New section.
(Languages): Add link to new section.
2003-06-24 21:59:37 +00:00
gdbadmin f5ee3ffaa6 *** empty log message *** 2003-06-24 00:00:01 +00:00
Joel Brobecker f125c9a4e9 * gdb.base/langs.exp: Add some tests for the "minimal" language
support.
2003-06-23 22:42:50 +00:00
Andrew Cagney 449a5da47c 2003-06-23 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
	for 0 "int0" and 4 "int32" sized registers.
	* gdbtypes.c (builtin_type_int0): Define.
	(build_gdbtypes): Initialize builtin_type_int0.
	* gdbtypes.h (builtin_type_int0): Declare.
2003-06-23 21:05:40 +00:00
Elena Zannoni 6e25beafa9 2003-06-23 Elena Zannoni <ezannoni@redhat.com>
* gdb.objc/basicclass.exp: Return -1 if we cannot compile
        the testcase.
2003-06-23 20:20:31 +00:00
Stephane Carrez b2a02dda88 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
as characters are unsigned.
2003-06-23 20:06:37 +00:00
Daniel Jacobowitz fba3138ed5 PR gdb/1179
* dwarfread.c (struct_type): Skip static fields without crashing.
2003-06-23 19:51:38 +00:00
Andrew Cagney f2c06f5281 2003-06-22 Andrew Cagney <cagney@redhat.com>
GDB 6.0 branch created.
	* README: Update.
	* PROBLEMS: Update.  Empty.
	* NEWS: Update.

Index: doc/ChangeLog
2003-06-22  Andrew Cagney  <cagney@redhat.com>

	* gdb.texinfo (Contributors): Mention 6.0 release engineer.
2003-06-23 03:28:14 +00:00
Andrew Cagney f6c8180bdb 2003-06-22 Andrew Cagney <cagney@redhat.com>
GDB 6.0 branch created.
2003-06-23 02:55:08 +00:00
gdbadmin f32cd467a0 *** empty log message *** 2003-06-23 00:00:02 +00:00
Daniel Jacobowitz ae822768f9 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
Suggested by Nick Hibma <n_hibma@webweaving.org>.
2003-06-22 18:32:49 +00:00
Daniel Jacobowitz 2f816dda05 * gdb.base/relocate.exp: Test add-symbol-file with a variable
offset.
2003-06-22 18:32:38 +00:00
Andrew Cagney 261de1663a 2003-06-22 Andrew Cagney <cagney@redhat.com>
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
	GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
	Velikov.
2003-06-22 17:42:29 +00:00
Daniel Jacobowitz 96ec9981bb * tui-hooks.c: Update include order.
* tui.c: Likewise.
	* tuiCommand.c: Likewise.
	* tuiData.c: Likewise.
	* tuiDataWin.c: Likewise.
	* tuiDisassem.c: Likewise.
	* tuiGeneralWin.c: Likewise.
	* tuiIO.c: Likewise.
	* tuiLayout.c: Likewise.
	* tuiRegs.c: Likewise.
	* tuiSource.c: Likewise.
	* tuiSourceWin.c: Likewise.
	* tuiStack.c: Likewise.
	* tuiWin.c: Likewise.
2003-06-22 15:21:39 +00:00
Daniel Jacobowitz db5a5748d7 * gdb.c++/pr-1210.cc: New file.
* gdb.c++/pr-1210.exp: New file.
2003-06-22 15:20:13 +00:00
Daniel Jacobowitz b4177fca13 * gdbint.texinfo (Coding): Clarify use of gdb_XXX.h headers. 2003-06-22 04:28:04 +00:00
Daniel Jacobowitz f418dd93a8 * Makefile.in (SFILES_INCLUDED): Add agentexpr.texi.
* agentexpr.texi: Retitle section, and change it to an appendix.
	Comment out texinfo initialization.  Factor a @var{} into two
	pieces to prevent makeinfo warnings.
	* gdb.texinfo: Add Agent Expressions appendix.
2003-06-22 04:27:24 +00:00
Daniel Jacobowitz 30e942055c * cli/cli-cmds.c (shell_escape): Silence warnings from old
compilers.
2003-06-22 04:23:52 +00:00
Daniel Jacobowitz 1df0c130e8 * lib/mi-support.exp (mi_run_cmd): Expect an MI response to
000-exec-continue.
2003-06-22 00:04:27 +00:00
gdbadmin eda7bdeb3a *** empty log message *** 2003-06-22 00:00:31 +00:00
Daniel Jacobowitz 9e14d72114 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
argument of val_print.
	* cp-valprint.c (cp_print_value): Don't add the offset parameter
	to the address argument of baseclass_offset or target_read_memory.
	Do add it to the argument of cp_print_value_fields.
2003-06-21 23:27:53 +00:00
Andrew Cagney a4b8ebc89d 2003-06-21 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
	(mips_register_name): Return names for NUM_REGS..2*NUM_REGS
	instead of 0..NUM_REGS.
	(mips_register_reggroup_p): New function.
	(mips_pseudo_register_write): New function.
	(mips_pseudo_register_read): New function.
	(mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
	based on the register's type.
	(read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
	cooked.
	(mips_get_saved_register): Simplify.  Assert that REGNO is a
	pseudo / cooked.
	(mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
	(mips_register_type): Replace mips_register_virtual_type.  Map
	NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
	when available.
	(read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
	that the register is cooked / virtual.
	(mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
	Only get the extra info when needed.
	(set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
	(mips32_heuristic_proc_desc): Fetch the cooked register.
	(heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
	(mips_init_extra_frame_info, get_frame_pointer): Ditto.
	(mips_print_register): Use gdbarch_register_type, instead of
	REGISTER_VIRTUAL_TYPE.
	(print_gp_register_row): Use gdbarch_register_type, instead of
	REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
	(mips_print_registers_info): Assert REGNO is pseodo / cooked.
	Print the pseudo / cooked registers.
	(mips_print_registers_info): Assert REGNO is pseodo / cooked.
	Print the pseudo / cooked registers.
	(mips_xfer_register): Use regcache_cooked_read_part.  Assert that
	REG_NUM is pseudo / cooked.
	(mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
	(mips_n32n64_xfer_return_value): Ditto.
	(mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
	(mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
	(mips_register_sim_regno): New function.
	(mips_gdbarch_init): Set deprecated_register_byte,
	register_group_p, pseudo_register_write, pseudo_register_read,
	register_sim_regno, and num_pseudo_regs.  Set register_type,
	instead of register_virtual_type.
	* Makefile.in (mips-tdep.o): Update dependencies.
	* config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
	REGISTER_VIRTUAL_TYPE.
	* config/mips/tm-mips.h	(MIPS_REGISTER_TYPE): Ditto.
	* config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
	* config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
	* config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
	* config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2003-06-21 23:14:44 +00:00
Daniel Jacobowitz 325ed08915 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
* cli/cli-cmds.c: Include "gdb_vfork.h".
	(shell_escape): Use vfork.
2003-06-21 18:38:28 +00:00
Andrew Cagney c57bb9fa3e 2003-06-21 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
	32 bit floating-point register saves.
2003-06-21 18:02:54 +00:00
Andrew Cagney 6e51443a2a 2003-06-21 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_unwind_get_saved_register): Delete.
	* frame.c (deprecated_unwind_get_saved_register): Delete function.
	* mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
	and deprecated_get_next_frame_hack instead of
	deprecated_unwind_get_saved_register.
2003-06-21 16:51:47 +00:00
Andrew Cagney ed183c7cdf 2003-06-21 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_dump_tdep): Do not print
	REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2003-06-21 16:37:33 +00:00
Andrew Cagney f0e7d0e8f2 2003-06-21 Andrew Cagney <cagney@redhat.com>
* frame.c (get_frame_register): New function.
	(frame_unwind_register_signed): New function.
	(get_frame_register_signed): New function.
	(frame_unwind_register_unsigned): New function.
	(get_frame_register_unsigned): New function.
	* frame.h: Add comments on naming schema.
	(get_frame_register, frame_unwind_register_signed): Declare.
	(get_frame_register_signed, get_frame_register_signed): Declare.
	(frame_unwind_register_unsigned): Declare.
	(get_frame_register_unsigned): Declare.
2003-06-21 16:26:02 +00:00
gdbadmin 09b06af3d4 *** empty log message *** 2003-06-21 00:00:33 +00:00
Theodore A. Roth 2224d941fd * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit. 2003-06-20 17:55:54 +00:00
Theodore A. Roth 8619218dfc * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
(avr_read_sp): Ditto.
2003-06-20 16:55:51 +00:00
Daniel Jacobowitz 73d37363f3 * Makefile.in (SFILES): Update.
* low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
	low-sun3.c: Remove files.
2003-06-20 14:08:16 +00:00
Daniel Jacobowitz 0b1b50c059 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
* config/arm/nm-linux.h: Likewise.
	* config/arm/tm-linux.h: Likewise.
	* config/ia64/nm-linux.h: Likewise.
	* config/ia64/tm-ia64.h: Likewise.
	* config/s390/tm-linux.h: Likewise.
	* config/s390/tm-s390.h: Likewise.
	* s390-nat.c: Likewise.
	* s390-tdep.c: Likewise.

	* config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
	* config/ia64/linux.mt: Likewise.
	* config/m68k/linux.mh: Likewise.
	* config/mips/linux.mt: Likewise.
	* config/powerpc/linux.mh: Likewise.
	* config/sh/linux.mt: Likewise.
2003-06-20 13:57:30 +00:00
Kris Warkentin c8c18e652e 2003-06-19 Kris Warkentin <kewarken@qnx.com>
* solib.c (solib_open): Change tests for whether to search
LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
comments.
2003-06-20 12:23:18 +00:00
Theodore A. Roth dcccef2efb * avr-tdep.c (avr_frame_address): Delete function.
(avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
set_gdbarch_frame_args_address.
2003-06-20 05:53:42 +00:00
Andrew Cagney 5861a190a8 2003-06-19 Andrew Cagney <cagney@redhat.com>
* config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
	(REGISTER_CONVERT_FROM_TYPE): Delete.
	(mips_register_convert_to_type): Delete declaration.
	(mips_register_convert_from_type): Delete declaration.
	* linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
	kernel/.
2003-06-20 04:04:44 +00:00
gdbadmin cd0f588e19 *** empty log message *** 2003-06-20 00:00:32 +00:00
Michael Snyder 0274a8cedb 2003-06-19 Michael Snyder <msnyder@redhat.com>
* linux-nat.h: New file.
	* linux-nat.c: Include linux-nat.h.
	* lin-lwp.c: Include linux-nat.h.
	Move struct lwp_info def to linux-nat.h.
	* linux-proc.c: Include linux-nat.h.
	(linux_make_note_section): Iterate over lwps instead of threads.
	(linux_do_thread_registers): Use lwp instead of merged pid.
	* config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
	* Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
	Add dependency on linux_nat_h.
2003-06-19 22:52:04 +00:00
Theodore A. Roth adf5f719da * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf. 2003-06-19 21:14:59 +00:00
Daniel Jacobowitz 6766a268ba * varobj.c (get_type, get_target_type): Use check_typedef. 2003-06-19 20:40:40 +00:00
Daniel Jacobowitz 1171114a94 * breakpoint.c (insert_catchpoint): Call internal_error. 2003-06-19 20:02:41 +00:00
Theodore A. Roth adcf68a2d6 * avr-tdep.c (avr_push_dummy_code): Delete function.
(avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2003-06-19 19:29:09 +00:00
Daniel Jacobowitz ea67f13b68 * arch-utils.c (default_prepare_to_proceed): Remove.
(generic_prepare_to_proceed): Remove.
	* arch-utils.h (default_prepare_to_proceed): Remove prototype.
	(generic_prepare_to_proceed): Remove prototype.
	* gdbarch.sh (PREPARE_TO_PROCEED): Remove.
	* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.
	* hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
	* hppah-nat.c (hppa_switched_threads): Remove.
	* infrun.c (prepare_to_proceed): New static function, copied from
	generic_prepare_to_proceed.  Remove select_it argument.
	(proceed): Call prepare_to_proceed.
	* infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
	variables.
	(ptrace_wait): Don't set the removed variables.
	(hppa_switched_threads): Remove.
	* lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
	* config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
	(lin_lwp_prepare_to_proceed): Remove prototype.
	* config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
	* config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2003-06-19 15:04:58 +00:00
Daniel Jacobowitz 4ca6138816 * gdbint.texinfo (Native Conditionals): Remove PREPARE_TO_PROCEED. 2003-06-19 15:04:05 +00:00
Theodore A. Roth 4add863361 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
trad-frame.h.
(AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
(AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
(AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
(AVR_PROLOGUE_*): Enumerate prologue types.
(struct frame_extra_info): Remove.
(struct avr_unwind_cache): Define.
(avr_write_sp): Delete function.
(avr_read_fp): Ditto.
(avr_init_extra_frame_info): Ditto.
(avr_pop_frame): Ditto.
(avr_frame_saved_pc): Ditto.
(avr_saved_pc_after_call): Ditto.
(avr_push_return_address): Ditto.
(avr_frame_chain): Ditto.
(avr_store_struct_return): Ditto.
(avr_push_arguments): Ditto.
(avr_scan_prologue): Update comments. Changed to set up the info for
cache unwinding. Now returns end of prologue PC.
(avr_skip_prologue): Better handling of functions lacking a prologue
by using avr_scan_prologue.
(avr_scan_arg_moves): New function.
(avr_saved_regs_unwinder): Ditto.
(avr_frame_unwind_cache): Ditto.
(avr_unwind_pc): Ditto.
(avr_frame_this_id): Ditto.
(avr_frame_prev_register): Ditto.
(avr_frame_p): Ditto.
(avr_frame_base_address ): Ditto.
(avr_unwind_dummy_id): Ditto.
(avr_push_dummy_code): Ditto.
(push_stack_item): Ditto.
(pop_stack_item): Ditto.
(avr_push_dummy_call): Ditto.
(struct stack_item): Define.
(avr_frame_unwind): Declare structure.
(avr_frame_base): Ditto.
(avr_gdbarch_init): Remove calls to
set_gdbarch_deprecated_init_frame_pc,
set_gdbarch_deprecated_target_read_fp,
set_gdbarch_deprecated_dummy_write_sp,
set_gdbarch_deprecated_fp_regnum,
set_gdbarch_deprecated_push_arguments,
set_gdbarch_deprecated_push_return_address,
set_gdbarch_deprecated_pop_frame,
set_gdbarch_deprecated_store_struct_return,
set_gdbarch_deprecated_frame_init_saved_regs,
set_gdbarch_deprecated_init_extra_frame_info,
set_gdbarch_deprecated_frame_chain,
set_gdbarch_deprecated_frame_saved_pc,
set_gdbarch_deprecated_saved_pc_after_call.
Add calls to set_gdbarch_push_dummy_call,
set_gdbarch_push_dummy_code,
frame_unwind_append_predicate,
frame_base_set_default,
set_gdbarch_unwind_dummy_id,
set_gdbarch_unwind_pc.
Wrap a long line.
2003-06-19 08:09:54 +00:00
Michael Snyder 7be04a682f 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
* h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
        registers for H8/300S.
        (h8300_print_registers_info): Ditto.
        (h8300_gdbarch_init): Accommodate register count for H8/300S.
2003-06-19 03:18:49 +00:00
Daniel Jacobowitz 07f31aa6dc * gdb.texinfo (Remote Debugging): New section "Connecting to a
remote target".  Document the "detach" and "disconnect" commands.
	(Server, Netware, Debug Session): Reference "Connecting to a
	remote target".
	(GDB/MI Target Manipulation): Document "-target-disconnect".
2003-06-19 01:31:47 +00:00
gdbadmin ec0d51413f *** empty log message *** 2003-06-19 00:00:32 +00:00
Daniel Jacobowitz ae087d0195 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
* lin-lwp.c (child_wait): Call linux_record_stopped_pid.
	(lin_lwp_wait): Likewise.  Update comments.
	* linux-nat.c (struct simple_pid_list, add_to_pid_list)
	(pull_pid_from_list, linux_record_stopped_pid): New.
2003-06-18 23:33:31 +00:00
gdbadmin cbebf7848c *** empty log message *** 2003-06-18 00:00:02 +00:00
Stephane Carrez 07d8f82745 * ada-lang.c (scan_discrim_bound): Name first argument.
(ada_add_block_symbols): Remove BLOCK_SYM to use local variable
	declared by ALL_BLOCK_SYMBOLS.
2003-06-17 21:20:41 +00:00
Stephane Carrez 7cb47b14e9 * ada-tasks.c (find_function_in_inferior): Don't declare it.
("regcache.h"): Include it.
	* ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2003-06-17 20:58:32 +00:00
Daniel Jacobowitz 6ad8ae5c57 gdb/
* NEWS: Mention gdbserver detach change and "disconnect" command.
        * infcmd.c (disconnect_command): New function.
        (_initialize_infcmd): Add ``disconnect'' command.
        * remote.c (remote_async_detach): Delete.
        (remote_detach): Merge remote_async_detach.
        (remote_disconnect): New.
        (init_remote_ops): Set to_disconnect.
        (init_remote_cisco_ops): Likewise.
        (init_remote_async_ops): Likewise.  Use remote_detach.
        * target.c (cleanup_target): Default to_disconnect.
        (update_current_target): Inherit to_disconnect.
        (target_disconnect, debug_to_disconnect): New functions.
        (setup_target_debug): Set to_disconnect.
        * target.h (struct target_ops): Add to_disconnect.
        (target_disconnect): Add prototype.
gdbserver/
	* linux-low.c: Move comment to linux_thread_alive where it belonged.
	(linux_detach_one_process, linux_detach): New functions.
	(linux_target_ops): Add linux_detach.
	* server.c (main): Handle 'D' packet.
	* target.h (struct target_ops): Add "detach" member.
	(detach_inferior): Define.
mi/
        * mi-cmds.c (mi_cmds): Add "-target-disconnect".
2003-06-17 20:28:14 +00:00
Daniel Jacobowitz 687595f963 * breakpoint.c (insert_catchpoint): New function.
(insert_breakpoints): Use catch_exceptions to call
	insert_catchpoint.  Disable catchpoints if they fail to insert.
2003-06-17 19:17:59 +00:00
Daniel Jacobowitz 29239a8f68 * symfile.c (reread_symbols): Clear sym_private. 2003-06-17 19:15:24 +00:00
Andrew Cagney 2cdf3c631a 2003-06-17 Andrew Cagney <cagney@redhat.com>
* trad-frame.h (struct frame_info): Add opaque declaration.
	* remote-fileio.h (struct cmd_list_element): Add opaque
	declaration.
	* h8300-tdep.c (h8300s_register_name): Avoid C++ // style
	comments.
2003-06-17 19:00:20 +00:00
Kris Warkentin 192cdb1903 * nto-tdep.c (nto_map_arch_to_cputype): Recognize powerpc.
(nto_find_and_open_solib): Likewise.
(nto_init_solib_absolute_prefix): Likewise.
(_initialize_nto_tdep): Fix indentation.
2003-06-17 18:30:48 +00:00
Daniel Jacobowitz cf0e1e0d09 * remote.c (remote_prepare_to_store): Replace call to
deprecated_read_register_bytes with multiple regcache_raw_read
	calls.
2003-06-17 18:18:57 +00:00
Kris Warkentin 89929b45cc * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR. 2003-06-17 17:49:39 +00:00
Kris Warkentin 46019f2774 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using. 2003-06-17 17:38:32 +00:00
Jim Blandy 1a38736e6c * ppc-linux-tdep.c: "Linux" -> "GNU/Linux" 2003-06-17 16:06:18 +00:00
Theodore A. Roth 3605c34ae8 * avr-tdep.c (avr_extract_return_value): New function.
(avr_gdbarch_init): Set extract_return_value method.
2003-06-17 04:44:18 +00:00
gdbadmin f8d2e53fba *** empty log message *** 2003-06-17 00:00:32 +00:00
Andrew Cagney 870b3035a4 2003-06-16 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_get_next_frame_hack): Declare.
	* frame.c (legacy_saved_regs_prev_register): Only require
	DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
	there are always saved regs.
	(deprecated_generic_get_saved_register): Do not require
	DEPRECATED_FRAME_INIT_SAVED_REGS.
	(legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
	use frame ID unwind instead.
	(deprecated_get_next_frame_hack): New function.
2003-06-16 20:05:56 +00:00
Corinna Vinschen 63d47a7dcc * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
(h8300_push_dummy_call): ...this function.  Some minor optimization.
	(h8300_push_return_address): Remove.
	(h8300_gdbarch_init): Remove calls to
	set_gdbarch_deprecated_dummy_write_sp,
	set_gdbarch_deprecated_push_arguments and
	set_gdbarch_deprecated_push_return_address.
	Add call to set_gdbarch_push_dummy_call.
2003-06-16 19:40:51 +00:00
Corinna Vinschen 4bb1dc5eb2 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
(E_PSEUDO_EXR_REGNUM): Ditto.
	(h8300_is_argument_spill): Check for instructions moving argument
	registers into safe registers.
	(h8300_skip_prologue): Check for stm instruction to push registers
	used for register variables onto stack.
	(gdb_print_insn_h8300): Remove.
	(h8300_examine_prologue): Add a comment.
	(h8300_register_name): Take pseudo registers into account.
	(h8300s_register_name): Ditto.
	(h8300sx_register_name): Ditto.
	(h8300_print_register): Ditto.
	(h8300_print_registers_info): Define "nice" printing order.
	(h8300_saved_pc_after_call): Take pseudo registers into account.
	(h8300_register_type): Ditto.  Return type used for remote connection
	when requesting real CCR or EXR register, return actual type when
	requesting pseudo CCR or EXR.
	(h8300_pseudo_register_read): New function.
	(h8300_pseudo_register_write): Ditto.
	(h8300_dbg_reg_to_regnum): Ditto.
	(h8300s_dbg_reg_to_regnum): Ditto.
	(h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
	set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
	set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
	set_gdbarch_print_insn architecture dependent.
	Call set_gdbarch_pseudo_register_read and
	set_gdbarch_pseudo_register_write.
	(_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2003-06-16 17:13:02 +00:00
Andrew Cagney b24da7d033 Revert previous change. Wait for approval. 2003-06-16 16:52:24 +00:00
Andrew Cagney a59fe496df 2003-06-16 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
	* gdbarch.h, gdbarch.c: Re-generate.
	* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
	* s390-tdep.c (s390_gdbarch_init): Update.
	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
	* mips-tdep.c (mips_gdbarch_init): Update.
	* mcore-tdep.c (mcore_gdbarch_init): Update.
	* cris-tdep.c (cris_gdbarch_init): Update.
	* infcall.c (call_function_by_hand): Update.
	* ia64-tdep.c (ia64_push_arguments): Update comment.
	* frame.c (legacy_get_prev_frame): Do not assume
	SAVE_DUMMY_FRAME_TOS_P.
	* dummy-frame.c (find_dummy_frame): Update comment.
2003-06-16 16:47:44 +00:00
Andrew Cagney 6f4e5a4121 2003-06-16 Andrew Cagney <cagney@redhat.com>
* regcache.c (do_cooked_read): Do not use register_valid_p.
2003-06-16 13:19:36 +00:00
Theodore A. Roth 72fab6974b * avr-tdep.c (avr_register_type): Remove a blank line.
(avr_scan_prologue): Correct some comments.
2003-06-16 05:50:16 +00:00
Theodore A. Roth e3d8b00410 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
prologue types.
Properly scan prologues generated by gcc with the -mcall-prologues option.
Add code to scan -mcall-prologues for mega devices.
2003-06-16 00:36:59 +00:00
gdbadmin 8c6b23945b *** empty log message *** 2003-06-16 00:00:01 +00:00
Theodore A. Roth 866b76ea9c * avr-tdep.c (avr_register_byte): Delete function.
(avr_register_raw_size): Delete function.
(avr_register_virtual_size): Delete function.
(avr_register_virtual_type): Delete function.
(avr_register_type): New function.
(avr_address_to_pointer): Remove unused code.
(avr_read_fp): Need to read FP as two separate bytes due to change to
avr_register_type() usage.
(avr_gdbarch_init): Don't set deprecated_register_size.
Don't set deprecated_register_bytes.
Don't set deprecated_register_byte.
Don't set deprecated_register_raw_size.
Don't set deprecated_max_register_raw_size.
Don't set deprecated_register_virtual_size.
Don't set deprecated_max_register_virtual_size.
Don't set deprecated_register_virtual_type.
Set register_type method.
2003-06-15 22:01:05 +00:00
Daniel Jacobowitz 3993f6b15a * Makefile.in (linux-nat.o): Add rule.
* linux-nat.c: New file.
	* config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
	(CHILD_INSERT_VFORK_CATCHPOINT): Define.
	(CHILD_INSERT_EXEC_CATCHPOINT): Define.
	* config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
	* config/arm/linux.mh (NATDEPFILES): Likewise.
	* config/i386/linux.mh (NATDEPFILES): Likewise.
	* config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
	* config/ia64/linux.mh (NATDEPFILES): Likewise.
	* config/m68k/linux.mh (NATDEPFILES): Likewise.
	* config/mips/linux.mh (NATDEPFILES): Likewise.
	* config/powerpc/linux.mh (NATDEPFILES): Likewise.
	* config/s390/s390.mh (NATDEPFILES): Likewise.
	* config/sparc/linux.mh (NATDEPFILES): Likewise.
2003-06-15 20:56:48 +00:00
Mark Kettenis a92feac0ae * gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
on *-*-*bsd* instead of *-*-freebsd*.
2003-06-15 13:10:38 +00:00
Mark Kettenis 786a90bb19 * i387-tdep.c: Reorder includes, fix some whitespace issues and
replace out-of-date comment.
2003-06-15 12:45:23 +00:00
Andrew Cagney 3bd3f01e76 2003-06-15 Andrew Cagney <cagney@redhat.com>
* rdi-share/host.h (Fail): Change to a varargs function.
	* remote-rdi.c (Fail): Update.
2003-06-15 12:30:56 +00:00
Mark Kettenis de5b9bb93a * i386-tdep.c (i386_next_regnum): Fix bounds checking.
(i386_convert_register_p, i386_register_to_value,
i386_register_from_value): Handle types longer than 8 bytes.
2003-06-15 11:40:46 +00:00
Mark Kettenis d532c08fb0 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
Move floating-point code to new function in i387-tdep.c.
* i387-tdep.c (i387_register_to_value, i387_value_to_register):
New functions containing code moved here from i386-tdep.c.
* i387-tdep.h: Add opaque declaration for `struct type'.
(i387_register_to_value, i387_value_to_register): New prototypes.
* x86-64-tdep.c (x86_64_convert_register_p): New function.
(x86_64_init_abi): Set convert_register_p, register_to_value and
value_to_register here.
2003-06-15 11:01:46 +00:00
Andrew Cagney 42c466d75a 2003-06-14 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_register_to_value): Make static.
	(mips_value_to_register): Make static.
	* i386-tdep.c (i386_fetch_pointer_argument): Make static.
	* ia64-tdep.c (ia64_register_raw_size): Make static.
	(ia64_register_virtual_size): Make static.
	(ia64_register_byte): Make static.
	* i387-tdep.c: Include "i387-tdep.h".
	(print_387_control_word): Delete function.
	(print_387_status_word): Delete function.
	(print_387_status_bits): Delete function.
	(print_387_control_bits): Delete function.
	* Makefile.in (i387-tdep.o): Update dependencies.
	* rdi-share/host.h (Fail): Declare.
	* remote-rdi.c (Fail): Update to match declaration.
2003-06-15 00:27:54 +00:00
gdbadmin 8212748f29 *** empty log message *** 2003-06-15 00:00:01 +00:00
Andrew Cagney 2a9cda49a4 2003-06-14 Andrew Cagney <cagney@redhat.com>
* config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
	* config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
	* config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
	* config/djgpp/fnchange.lst: Delete "remote-array.c".
	* README: Delete reference to remote-array.
	* Makefile.in (ALLDEPFILES): Remove "remote-array.c".
	(remote-array.o): Delete target.
	* config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
	* remote-array.c: Delete file.
2003-06-14 23:43:15 +00:00
Andrew Cagney ff2e87acc7 2003-06-14 Andrew Cagney <cagney@redhat.com>
Mark Kettenis  <kettenis@gnu.org>

	* gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
	(REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
	parameter with "frame".
	* gdbarch.h, gdbarch.c: Re-generate.
	* frame.h (put_frame_register): Declare.
	* frame.c (put_frame_register): New function.
	* arch-utils.c (legacy_convert_register_p): Add "type" parameter.
	(legacy_register_to_value): Rewrite, use "frame" to get the
	register value.
	(legacy_value_to_register): Rewrite, use "frame" to find the
	register's location before storing.
	* arch-utils.h (legacy_convert_register_p): Update.
	(legacy_register_to_value, legacy_value_to_register): Update.
	* findvar.c (value_from_register): Rewrite, eliminate use of
	REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
	"frame" to REGISTER_TO_VALUE.
	* valops.c (value_assign): Move the CONVERT_REGISTER code to the
	lval_reg_frame_relative + lval_register branch of the switch.  Do
	not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
	* i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
	I386_EDI_REGNUM): New defines.
	(i386_next_regnum, i386_convert_register_p,
	i386_register_to_value, i386_value_to_register): New functions.
	(i386_register_convertible, i386_register_convert_to_virtual,
	i386_convert_to_raw): Remove functions.
	(i386_gdbarch_init): Set convert_register_p, register_to_value and
	value_to_register instead of register_convertible,
	register_convert_to_virtual and register_convert_to_raw.
	* mips-tdep.c (mips_convert_register_p): New function.
	(mips_value_to_register): Replace mips_register_convert_from_type.
	(mips_register_to_value): Replace mips_register_convert_to_type.
	(mips_gdbarch_init): Set conver_register_p, value_to_register and
	register_to_value.
	* alpha-tdep.c (alpha_convert_register_p): Update.
	(alpha_value_to_register): Update, store the register.
	(alpha_register_to_value): Update, fetch the register.
2003-06-14 22:35:25 +00:00
Andrew Cagney 81a58f5b70 2003-06-14 Andrew Cagney <cagney@redhat.com>
* gdb.base/store.exp: Test longest and doublest.  Test all
	parameters.  Weaken return statement match.
	* gdb.base/store.c: Add longest and doublest - aka long long and
	long double functions.  Put all parameters into local register
	variables.  Use negative values.
2003-06-14 22:10:47 +00:00
Theodore A. Roth 98be1e7766 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
(avr_gdbarch_init): Remove avr_call_dummy_words variable.
Don't set deprecated_call_dummy_words.
Remove commented out set_gdbarch_believe_pcc_promotion() call.
Don't set remote_translate_xfer_address.
(avr_io_reg_read_command): Remove commented out debug printf.
Wrap a long line.
2003-06-14 21:00:46 +00:00
Theodore A. Roth 57bc612204 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
causes gdb to seg fault.
2003-06-14 20:33:39 +00:00
Andrew Cagney b257a0d30a 2003-06-14 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>.  Gag
	-Wformat errors.  Add lost line.  Use WEXITSTATUS to get system
	exit status.
	* gdb.base/fileio.exp: Disable target when nointerrupts and
	noinferiorio, instead of limiting it to remote.  Use remote_exec
	instead of system.
2003-06-14 16:51:42 +00:00
Daniel Jacobowitz eb01fc6294 * sparc-nat.c (fetch_inferior_registers): Correct
a reference to "registers".
2003-06-14 16:22:23 +00:00
Daniel Jacobowitz 3b3e6beefb * Makefile.in (exc_request_U_h): Define
(exc_request_S_h): Likewise.
	(msg_reply_S_h): Likewise.
	(msg_U_h): Likewise.
	(notify_S_h): Likewise.
	(process_reply_S_h): Likewise.
	(gnu-nat.o): Depend on gdb_obstack_h
	* gnu-nat.c: Include "gdb_obstack.h".
2003-06-14 16:18:32 +00:00
gdbadmin 760b6b5d55 *** empty log message *** 2003-06-14 00:00:33 +00:00
Andrew Cagney b8de82830d 2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
	* gdbarch.h, gdbarch.c: Re-generate.
2003-06-13 23:07:06 +00:00
Andrew Cagney f3be58bcd8 2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
	when deprecated REGISTER macros can be deleted.
	* gdbarch.h, gdbarch.c: Re-generate.
2003-06-13 22:18:49 +00:00
Jim Blandy 4c0122c8af * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
Linux entry point symbols for _dl_debug_state, too.
2003-06-13 21:56:27 +00:00
Andrew Cagney 3e210248bd 2003-06-13 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
	available, do not use the FP register, and always save the TOS.
	* dummy-frame.c (dummy_frame_this_id): Do not assert
	SAVE_DUMMY_FRAME_TOS.
	* i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
	(i386_gdbarch_init): Do not set save_dummy_frame_tos.
	(i386_push_dummy_call): Add 8 to the returned SP.
	* frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
	* d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
	(d10v_gdbarch_init): Do not set save_dummy_frame_tos.
	* x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
	(x86_64_push_dummy_call): Return "sp + 16".
	(x86_64_init_abi): Do not set save_dummy_frame_tos.
	* alpha-tdep.c (alpha_gdbarch_init): Do not set
	save_dummy_frame_tos.
2003-06-13 20:37:28 +00:00
Jim Blandy e3305dd95b Fix typo in ChangeLog. 2003-06-13 20:24:20 +00:00
Jim Blandy 0b65af49d8 * frv-tdep.c (frv_use_struct_convention): Delete static
declaration for function deleted in my change of 2003-06-12.
2003-06-13 20:19:13 +00:00
Andrew Cagney 2dd0da42a3 2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Deprecate
	REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT, and
	BIG_REMOTE_BREAKPOINT.  Cross reference BREAKPOINT_FROM_PC.
2003-06-13 18:30:38 +00:00
Theodore A. Roth 4ea2465e32 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
(avr_pointer_to_address): Shift code addrs left 1 bit.
(avr_convert_from_func_ptr_addr): Delete function since operation is
better handled by avr_address_to_pointer and avr_pointer_to_address.
(avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2003-06-13 17:52:28 +00:00
Mark Kettenis 1581182a44 From Kelley Cook <kelleycook@wideopenwest.com>:
* configure.host: Accept i[34567]86 variants.
* configure.tgt: Likewise.
* nlm/configure.in: Likewise.
* nlm/configure: Regenerated.
2003-06-13 17:49:52 +00:00
Richard Earnshaw 6671a52204 * arm-tdep.c (solib-svr4.h): Dont' include it.
(arm_linux_svr4_fetch_link_map_offsets): Move to ...
* arm-linux-tdep.c: ... here.  Make static.
(arm_linux_init_abi): Register it.
(solib-svr4.h): Include it.
* Makefile.in: Update dependencies.
* config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
(arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2003-06-13 15:28:29 +00:00
Richard Earnshaw 08356d1bbb Missed include update in previous commit. 2003-06-13 14:15:51 +00:00
Richard Earnshaw 7aa1783e88 * arm-tdep.c (solib-svr4.h): Dont' include it.
(arm_linux_svr4_fetch_link_map_offsets): Move to ...
* arm-linux-tdep.c: ... here.  Make static.
(arm_linux_init_abi): Register it.
(solib-svr4.h): Include it.
* Makefile.in: Update dependencies.
* config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
(arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2003-06-13 14:13:13 +00:00
Corinna Vinschen 0261a0d095 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
indicate registers used for return values.
	(struct frame_extra_info): Drop args_pointer and locals_pointer.
	(h8300_examine_prologue): Remove initializing dropped frame_extra_info
	members.
	(h8300_init_extra_frame_info): Ditto.
	(h8300_frame_locals_address): Removed.
	(h8300_frame_args_address): Removed.
	(h8300_extract_return_value): Use new regcache structure. Only care
	for 16 bit CPUs.
	(h8300h_extract_return_value): Same function for 32 bit CPUs.
	(h8300_store_return_value): Use new regcache structure. Only care
	for 16 bit CPUs.
	(h8300h_store_return_value): Same function for 32 bit CPUs.
	(h8300_store_struct_return): Removed.
	(h8300_extract_struct_value_address): Use new regcache structure.
	(h8300h_extract_struct_value_address): Removed.
	(h8300_push_dummy_code): New function.
	(h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
	Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
	set_gdbarch_store_return_value architecture dependent.
	Call set_gdbarch_push_dummy_code and
	set_gdbarch_extract_struct_value_address.
	Remove calls to set_gdbarch_frame_args_address,
	set_gdbarch_frame_locals_address,
	set_gdbarch_deprecated_store_struct_return,
	set_gdbarch_deprecated_extract_return_value,
	set_gdbarch_deprecated_extract_struct_value_address,
	set_gdbarch_deprecated_call_dummy_words and
	set_gdbarch_deprecated_sizeof_call_dummy_words.
2003-06-13 10:17:05 +00:00
Corinna Vinschen 055c394ab6 * h8300-tdep.c (h8300_register_byte): Remove.
(h8300h_register_byte): Remove.
	(h8300_register_virtual_type): Remove.  Substitute by...
	(h8300_register_type): New function.
	(h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
	(h8300h_extract_struct_value_address): Ditto.
	(h8300_gdbarch_init): Drop calls to
	set_gdbarch_deprecated_register_byte and
	set_gdbarch_deprecated_register_virtual_type.
	Add call to set_gdbarch_register_type.
2003-06-13 08:11:56 +00:00
Andrew Cagney 9c04cab7f1 2003-06-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Update comments on registers, re-order.
	(deprecated_register_byte): Rename register_byte.
	(deprecated_register_raw_size): Rename register_raw_size.
	(deprecated_register_virtual_size): Rename register_virtual_size.
	(deprecated_register_virtual_type): Rename register_virtual_type.
	* gdbarch.h, gdbarch.c: Re-generate.
	* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
	* vax-tdep.c (vax_gdbarch_init): Update.
	* v850-tdep.c (v850_gdbarch_init): Update.
	* sparc-tdep.c (sparc_gdbarch_init): Update.
	* sh-tdep.c (sh_gdbarch_init): Update.
	* s390-tdep.c (s390_gdbarch_init): Update.
	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
	* ns32k-tdep.c: Update.
	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
	* mips-tdep.c (mips_gdbarch_init): Update.
	* mcore-tdep.c (mcore_gdbarch_init): Update.
	* m68k-tdep.c (m68k_gdbarch_init): Update.
	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
	* ia64-tdep.c (ia64_gdbarch_init): Update.
	* hppa-tdep.c (hppa_gdbarch_init): Update.
	* h8300-tdep.c (h8300_gdbarch_init): Update.
	* frv-tdep.c (frv_gdbarch_init): Update.
	* cris-tdep.c (cris_gdbarch_init): Update.
	* avr-tdep.c (avr_gdbarch_init): Update.
	* alpha-tdep.c (alpha_gdbarch_init): Update.
	* arm-tdep.c (arm_gdbarch_init): Update.
2003-06-13 04:40:34 +00:00
Andrew Cagney b060cbeaa4 2003-06-13 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
	mips_o32_use_struct_convention with always_use_struct_convention.
2003-06-13 04:19:08 +00:00
David Carlton 0fc9922abc 2003-06-12 David Carlton <carlton@kealia.com>
* cp-namespace.c (cp_set_block_scope): Comment out
	processing_has_namespace_info branch.
2003-06-13 00:55:43 +00:00
Jim Blandy f470a70ae3 Recognize and skip 64-bit PowerPC Linux linkage functions.
* ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
insn_pattern, insns_match_pattern, d_field, ds_field): New
functions, macros, and types for working with PPC instructions.
(ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
ppc64_skip_trampoline_code): New functions, variables, and macros
for recognizing and skipping linkage functions.
(ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2003-06-13 00:06:11 +00:00
Jim Blandy 49ff75ad91 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
register offsets for both the 32- and 64-bit interfaces.
2003-06-13 00:03:03 +00:00
gdbadmin e850da0b12 *** empty log message *** 2003-06-13 00:00:32 +00:00
Jim Blandy 6974274f54 Actually finish the job started by my change of 2003-05-29.
* config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
other #definition of this.
(ppc_linux_skip_trampoline_code): Remove declaration.
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
static.
(ppc_linux_init_abi): Register it as the skip_trampoline_code
method for GDBARCH.
2003-06-12 23:58:07 +00:00
Jim Blandy bd918c830c * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
'long' on ppc64-*-linux*.
2003-06-12 23:36:21 +00:00
Jim Blandy f8c592535f * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
isn't #defined, assume the register doesn't exist: act as if
tdep->ppc_mq_regnum were -1.
2003-06-12 23:30:40 +00:00
Jim Blandy 8fbb30b124 * configure.host, configure.tgt: Add entries for
powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
powerpc/linux.mt.
* config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
New files.
2003-06-12 23:30:39 +00:00
Jim Blandy 1fd355687c * arch-utils.c (always_use_struct_convention): New function.
* arch-utils.h (always_use_struct_convention): New prototype.
* alpha-tdep.c (alpha_use_struct_convention): Delete.
(alpha_gdbarch_init): Register always_use_struct_convention,
instead of alpha_use_struct_convention.
* cris-tdep.c (cris_use_struct_convention): Delete.
(cris_gdbarch_init): Register always_use_struct_convention,
instead of cris_use_struct_convention.
* frv-tdep.c (frv_use_struct_convention): Delete.
(frv_gdbarch_init): Register always_use_struct_convention,
instead of frv_use_struct_convention.
* h8300-tdep.c (h8300_use_struct_convention): Delete.
(h8300_gdbarch_init): Register always_use_struct_convention,
instead of h8300_use_struct_convention.
* mips_o32-tdep.c (mips_o32_use_struct_convention): Delete.
(mips_o32_gdbarch_init): Register always_use_struct_convention,
instead of mips_o32_use_struct_convention.
2003-06-12 23:25:37 +00:00
Andrew Cagney e14e6e9cdd 2003-06-12 Andrew Cagney <cagney@redhat.com>
* wince.c: Include "mips-tdep.h".
	* mips-tdep.h (mips_next_pc): Declare.
	* mcore-tdep.c: Make more local functions static.
	* Makefile.in (wince.o): Update dependencies.
2003-06-12 18:01:28 +00:00
Jeff Johnston 21c3830442 2003-06-12 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/float.exp: Add ia64 support.
2003-06-12 17:55:06 +00:00
David Carlton 2335f48e6f 2003-06-12 David Carlton <carlton@kealia.com>
* symtab.c (lookup_symbol_aux_minsyms): Replace
	DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
	(find_pc_sect_line, search_symbols, rbreak_command): Ditto.
	(COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
	SYMBOL_NATURAL_NAME.
2003-06-12 15:52:08 +00:00
Andreas Schwab f70a7d6187 * Makefile.in (tuiDisassem.o): Update dependencies.
tui:
	* tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc.
	* tuiSourceWin.c (tuiHorizontalSourceScroll): Likewise.
	* tuiStack.c (tui_get_function_from_frame): Likewise.
	(tuiShowFrameInfo): Likewise.
	* tuiWin.c (_makeVisibleWithNewHeight): Likewise.
	* tui-hooks.c (tui_selected_frame_level_changed_hook): Likewise.
	* tuiDisassem.c (tuiVerticalDisassemScroll): Likewise.
	Include "disasm.h".
2003-06-12 15:44:24 +00:00
David Carlton b64296285d 2003-06-12 David Carlton <carlton@bactrian.org>
* symtab.h: Delete declaration of make_symbol_overload_list.
	Add declaration of lookup_partial_symbol.
	* symtab.c (remove_params): Move to cp-support.c.
	(overload_list_add_symbol, make_symbol_overload_list)
	(sym_return_val_size, sym_return_val_index): Ditto.
	(lookup_partial_symbol): Make extern.
	* cp-support.h: Add declaration of make_symbol_overload_list.
	* cp-support.c: Include dictionary.h, objfiles.h, frame.h,
	symtab.h, and block.h.
	(remove_params): Move here from symtab.c.
	(overload_list_add_symbol, make_symbol_overload_list)
	(sym_return_val_size, sym_return_val_index): Ditto.
	* valops.c: Include cp-support.h.
	* Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
	frame_h, and block_h.
	(valops.o): Depend on cp_support_h.
2003-06-12 15:33:45 +00:00
Corinna Vinschen 084edea536 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
substitute by NUM_REGS throughout.
	(h8300_register_name): Only care for H8/300 and H8/300H registers.
	(h8300s_register_name): New function for H8S registers.
	(h8300sx_register_name): Ditto for H8SX registers.
	(h8300_print_register): Revise register printing, avoid depending
	on 32 bit long.
	(h8300_register_byte); Only care for H8/300 registers.
	(h8300h_register_byte): New function for any other architecture.
	(h8300_register_raw_size): Remove.
	(h8300_register_virtual_type): Revise to return actually useful
	type.
	(h8300_extract_struct_value_address): Only care for H8/300 registers.
	(h8300h_extract_struct_value_address): New function for any other
	architecture.
	(h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
	set_gdbarch_register_name, set_gdbarch_register_byte,
	set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
	Remove calls to set_gdbarch_deprecated_register_size,
	set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
	set_gdbarch_deprecated_max_register_raw_size,
	set_gdbarch_register_virtual_size and
	set_gdbarch_deprecated_max_register_virtual_size entirely.
	Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
	set_gdbarch_long_double_bit.
2003-06-12 13:33:14 +00:00
Corinna Vinschen 1bcdb42447 * gdb.base/fileio.exp: Run only on remote targets. 2003-06-12 09:49:05 +00:00
gdbadmin af2816fce5 *** empty log message *** 2003-06-12 00:00:01 +00:00
Jeff Johnston 0619414842 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
* doublest.c (convert_doublest_to_floatformat): When dealing
        with the implied integer bit, only alter mant_bits if we are
        processing a full 32 bits of mantissa.
2003-06-11 23:34:53 +00:00
David Carlton de4f826b0f 2003-06-11 David Carlton <carlton@bactrian.org>
* dictionary.h: New.
	* dictionary.c: New.
	* block.h: Add opaque declaration for struct dictionary.
	(struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
	'sym' members.
	(BLOCK_DICT): New macro.
	Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
	BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
	BLOCK_SHOULD_SORT.
	(ALL_BLOCK_SYMBOLS): Update definition.
	* Makefile.in (SFILES): Add dictionary.c.
	(dictionary_h): New.
	(COMMON_OBS): Add dictionary.o.
	(dictionary.o): New.
	(ada-lang.o): Depend on dictionary_h.
	(buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
	(stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
	(mi-cmd-stack.o): Ditto.
	(gdbtk-cmds.o): Update dependencies.
	(gdbtk-stack.o): Ditto.
	* ada-lang.c: Include dictionary.h.
	(symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
	(fill_in_ada_prototype, debug_print_block): Ditto.
	(ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
	explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
	'is_sorted'.
	* mdebugread.c: Include dictionary.h.
	(struct parse_stack): Delete 'maxsyms' member.
	(parse_symbol): Update calls to new_block.  Delete calls to
	shrink_block.  Use dictionary methods.
	(psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
	Update calls to new_symtab.  Don't maintain maxsyms data.
	(mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
	(add_symbol): Just call dict_add_symbol.
	(new_symtab): Delete 'maxsyms' argument.
	(new_symtab): Update calls to new_block.
	(new_block): Delete 'maxsyms' argument; add 'function' argument.
	(shrink_block): Delete function.
	(fixup_sigtramp): Update call to new_block.  Add symbol via
	dict_add_symbol.
	* jv-lang.c: Include dictionary.h.
	(get_java_class_symtab): Set the BLOCK_DICT of the blocks
	appropriately.  Set class_symtab->free_func.  Make sure the
	blockvector is big enough to hold two blocks.
	(add_class_symtab_symbol): Use dictionary methods.
	(free_class_block): New function.
	(type_from_class): Replace explicit iteration by
	ALL_BLOCK_SYMBOLS.
	* symtab.h (struct symtab): Replace 'free_ptr' method by
	'free_func'.
	* dwarf2read.c (psymtab_to_symtab_1): Delete call to
	sort_symtab_syms.
	* dwarfread.c (psymtab_to_symtab_1): Delete call to
	sort_symtab_syms.
	* coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
	Include dictionary.h.
	(patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
	* dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
	sort_symtab_syms.
	* objfiles.c: Include dictionary.h.
	(objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
	* buildsym.c: Include dictionary.h.
	(finish_block): Use dictionary methods.
	(end_symtab): Set free_func to NULL, not free_ptr.
	* tracepoint.c: Include dictionary.h.
	(add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
	(scope_info): Ditto.
	* stack.c: Include dictionary.h.
	(print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
	(print_block_frame_labels, print_frame_arg_vars)
	(print_frame_args): Ditto.
	* symmisc.c (free_symtab_block): Use dictionary methods.
	(dump_symtab): Ditto.
	(free_symtab): Replace use of 'free_ptr' by 'free_func'.
	Include	dictionary.h.
	* symfile.h: Delete declarations of sort_block_syms,
	sort_symtab_syms.
	* symfile.c (sort_block_syms): Delete.
	(sort_symtab_syms): Delete.
	* symtab.c: Include dictionary.h.
	(lookup_block_symbol): Use dictionary iterators.
	(find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
	(search_symbols, make_symbol_completion_list): Ditto.
	(make_symbol_overload_list): Ditto.
	* valops.c (value_of_local): Use dict_empty.
	Include dictionary.h.

2003-06-11  David Carlton  <carlton@bactrian.org>

	* generic/gdbtk-stack.c: Include dictionary.h.
	(gdb_block_vars): Update use of ALL_BLOCK_SYMBOLS.
	(gdb_get_blocks, gdb_get_vars_command): Ditto.
	* generic/gdbtk-cmds.c: Include dictionary.h.
	(gdb_listfuncs): Update use of ALL_BLOCK_SYMBOLS.

2003-06-11  David Carlton  <carlton@bactrian.org>

	* mi-cmd-stack.c: Include dictionary.h.
	(list_args_or_locals): Update use of ALL_BLOCK_SYMBOLS.
2003-06-11 23:29:49 +00:00
Joel Brobecker a31f978cb0 * win32-nat.c (solib_symbols_add): Fix a small compilation error. 2003-06-11 22:36:04 +00:00
David Carlton 526e70c05f 2003-06-11 David Carlton <carlton@bactrian.org>
* block.h (BLOCK_SHOULD_SORT): Delete.
	* symtab.c (lookup_block_symbol): Don't worry about sorted linear
	blocks.
	* ada-lang.c (ada_add_block_symbols): Ditto.
	* symfile.c (sort_block_syms): Delete.
	(sort_symtab_syms): Ditto.
	* symfile.h: Delete sort_symtabs_syms and sort_block_syms
	declarations.
	* coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
	* dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
	* dwarf2read.c (psymtab_to_symtab_1): Ditto.
	* dwarfread.c (psymtab_to_symtab_1): Ditto.
	* hpread.c (hpread_psymtab_to_symtab_1): Ditto.
	* mdebugread.c (psymtab_to_symtab_1): Ditto.
	* xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2003-06-11 22:27:17 +00:00