+2004-06-13 Andrew Cagney <cagney@gnu.org>
+
+ * infcmd.c (print_return_value): Fix logic, allow
+ DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
+
+ * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
+ defining any macros.
+ * gdbarch.h: Re-generate.
+
+ * gdbarch.sh: Delete "level" attribute. Only check for a macro
+ redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
+ * gdbarch.h: Re-generate.
+
+ * values.c (generic_use_struct_convention): Don't check gcc_p.
+
+ * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
+ (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
+ (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
+ * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
+ deprecated_max_register_raw_size and
+ deprecated_max_register_virtual_size.
+ * v850-tdep.c (v850_gdbarch_init): Ditto.
+ * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
+ * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
+ * mcore-tdep.c (mcore_gdbarch_init): Ditto.
+ * cris-tdep.c (cris_gdbarch_init): Ditto.
+
+ * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
+ * gdbarch.h, gdbarch.c: Re-generate.
+ * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
+ (m68hc11_use_struct_convention): Delete function.
+ (m68hc11_extract_struct_value_address): Delete function.
+ (m68hc11_return_value): New function.
+ (m68hc11_gdbarch_init): Instead of store_return_value,
+ extract_return_value, return_value_on_stack,
+ deprecated_extract_struct_value_address and use_struct_convention,
+ set return_value.
+ * values.c (using_struct_return): Do not call
+ RETURN_VALUE_ON_STACK.
+ * arch-utils.h (generic_return_value_on_stack_not): Delete
+ declaration.
+ * arch-utils.c (generic_return_value_on_stack_not): Delete
+ function.
+
+2004-06-12 Andrew Cagney <cagney@gnu.org>
+
+ * values.c (register_value_being_returned): Delete function.
+ * infcmd.c (legacy_return_value): Delete function.
+ * infcall.c (call_function_by_hand): Inline
+ "register_value_being_returned", simplify.
+ * values.c (using_struct_return): Update comment, refer to
+ print_return_value instead of register_value_being_returned.
+ * infcmd.c (print_return_value): Inline calls to
+ register_value_being_returned and legacy_return_value. Simplify.
+
+2004-06-11 Randolph Chung <tausq@debian.org>
+
+ * somread.c (som_symtab_read): Exclude gcc local symbols.
+
+2004-06-11 Randolph Chung <tausq@debian.org>
+
+ * infrun.c (handle_inferior_event): Handle the case when a trampoline
+ ends up in the runtime resolver, and if the trampoline has no name.
+ Rearrange the code so that all the trampoline processing happens before
+ other step-out-of-range handling.
+
+2004-06-11 Martin Hunt <hunt@redhat.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
+ has no fpu.
+
+2004-06-10 Andrew Cagney <cagney@gnu.org>
+
+ * blockframe.c (legacy_inside_entry_func): Delete.
+ (legacy_frame_chain_valid): Inline call to
+ legacy_inside_entry_func, simplify.
+
+2004-06-10 Bob Rossi <bob@brasko.net>
+
+ * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
+ * dwarf2read.c (partial_die_info) : Add dirname field.
+ (dwarf2_build_psymtabs_hard) : Set pst->dirname when known.
+ (read_partial_die) : Save away DW_AT_comp_dir.
+ * defs.h (symtab_to_filename) : Removed.
+ * source.c (find_and_open_source) : Added.
+ (open_source_file): Just calls find_and_open_source.
+ (symtab_to_filename) : Removed.
+ (symtab_to_fullname, psymtab_to_fullname ) : Added.
+ * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
+ * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
+ symtab_to_filename.
+ * symtab.h (partial_symtab): Add dirname field.
+ * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
+ (mi_cmd_file_list_exec_source_file): Call new function symtab_to_fullname
+ to find fullname.
+ (mi_cmd_file_list_exec_source_files): Added.
+ * mi/mi-cmds.c (mi_cmd_mi_cmds) : Add -file-list-exec-source-files.
+ * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
+
+2004-06-10 Andrew Cagney <cagney@gnu.org>
+
+ * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
+ to generic_use_struct_convention, the default value.
+
+ * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
+ of abort.
+
+ * ns32k-tdep.c (ns32k_push_arguments): New function.
+ (ns32k_gdbarch_init): Set deprecated_push_arguments.
+ * infcall.c (call_function_by_hand): Call error instead of
+ legacy_push_arguments.
+ * value.h (legacy_push_arguments): Delete declaration.
+ * valops.c (legacy_push_arguments): Delete function.
+ (value_push): Delete function.
+
+2004-06-10 Brian Ford <ford@vss.fsi.com>
+
+ * coffread.c (coff_symfile_read): Prevent mixed debugging formats
+ from corrupting/reinitializing the psymtab. Support DWARF 2 frame
+ info.
+ * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
+
+2004-06-10 Andrew Cagney <cagney@gnu.org>
+
+ * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
+ * gdbarch.h, gdbarch.c: Re-generate.
+ * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
+ parameters.
+ * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
+ * arm-tdep.c (arm_pc_is_thumb_dummy): Call
+ deprecated_pc_in_call_dummy instead of
+ DEPRECATED_PC_IN_CALL_DUMMY.
+ (arm_skip_prologue): Ditto.
+ * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
+ (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
+ * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
+ (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
+ Ditto.
+ * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
+ (sh64_init_extra_frame_info, sh64_get_saved_register)
+ (sh64_pop_frame): Ditto.
+ * mips-tdep.c (non_heuristic_proc_desc): Ditto.
+ * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
+ (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
+ * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
+ (h8300_pop_frame): Ditto.
+ * blockframe.c (legacy_inside_entry_func)
+ (legacy_frame_chain_valid): Ditto.
+ * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
+ to deprecated_pc_in_call_dummy.
+
+2004-06-09 Andrew Cagney <cagney@gnu.org>
+
+ * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
+ provide a default value.
+ (CONVERT_REGISTER_P): Default to generic_convert_register_p.
+ * gdbarch.h, gdbarch.c: Re-generate.
+ * arch-utils.c (generic_convert_register_p): Rename
+ legacy_convert_register_p
+ (legacy_register_to_value, legacy_value_to_register): Delete
+ functions.
+ * arch-utils.h (generic_convert_register_p): Rename
+ legacy_convert_register_p.
+ (legacy_register_to_value, legacy_value_to_register): Delete
+ declarations.
+
+ * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
+ (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
+ (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
+ * gdbarch.h, gdbarch.c: Re-generate.
+ * infcmd.c (default_print_registers_info): Simplify.
+ * findvar.c (value_of_register): Simplify.
+ * mi/mi-main.c (get_register): Simplify.
+ * arch-utils.c (legacy_convert_register_p): Always return 0.
+ (legacy_register_to_value, legacy_value_to_register): Always call
+ internal_error.
+
+ * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
+ #ifdef CLEAR_INSN_CACHE code.
+ * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
+ Delete #ifdef CLEAR_DEFERRED_STORES code.
+
+ * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
+
+ * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
+ copyright.
+ * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
+
+ * config/mips/mipsv4.mh: Delete file.
+
+ * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
+ unreferenced macro.
+ (hpread_adjust_stack_address): Delete declaration.
+
+2004-06-08 Andrew Cagney <cagney@gnu.org>
+
+ * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
+ (attach, detach): When neither PT_ATTACH / PT_DETACH nor
+ PTRACE_ATTACH / PTRACE_DETACH available call error.
+ (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
+ * infttrace.c (update_thread_state_after_attach, attach, detach):
+ Remove #ifdef wrappers.
+ * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
+ * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
+ * config/nm-bsd.h (ATTACH_DETACH): Delete.
+ * config/nm-sysv4.h (ATTACH_DETACH): Delete.
+ * config/nm-nbsd.h (ATTACH_DETACH): Delete.
+ * config/nm-linux.h (ATTACH_DETACH): Delete.
+ * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
+ * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
+ * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
+ * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
+ * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
+
+2004-06-08 Corinna Vinschen <vinschen@redhat.com>
+
+ * configure.in: Set $configdir to the right OS specific value.
+ Use value when setting $tcldir and $tkdir.
+ * configure: Regenerate.
+
+2004-06-06 Paul Brook <paul@codesourcery.com>
+
+ * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
+ records.
+
+2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
+
+ * ada-lang.c (lookup_symbol_in_language): New function to allow
+ re-use of another language's symbol lookup code. (Placed here
+ temporarily while Ada support is being integrated into the public
+ tree).
+ (restore_language): New auxiliary function for
+ lookup_symbol_in_language.
+ * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
+ temporarily while Ada support is being integrated into the public
+ tree).
+
+2004-06-08 Alexandre Oliva <aoliva@redhat.com>
+
+ * Makefile.in (check//%): New.
+
+ * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
+ (mn10300_store_return_value): Rewrite.
+ (mn10300_type_align): New.
+ (mn10300_use_struct_convention): Rewrite.
+ (mn10300_return_value): New, using all of the above.
+ (mn10300_pop_frame_regular): Add saved_regs_size.
+ (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
+
+ * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
+ regs if PC is on movm.
+
+2004-06-07 Jim Blandy <jimb@redhat.com>
+
+ Add native Linux support for the PowerPC E500.
+ * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
+ * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
+ all architectures except the E500.
+ * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
+ #definitions.
+ (struct gdb_evrregset_t): New type.
+ (have_ptrace_getsetevrregs): New variable.
+ (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
+ fetch_spe_registers): New functions.
+ (fetch_register): Call fetch_spe_register as appropriate.
+ Assert that we're only passed raw register numbers.
+ (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
+ Don't fetch gprs if they're pseudoregisters.
+ (set_spe_registers, write_spliced_spe_reg, store_spe_register,
+ store_spe_registers): New functions.
+ (store_register): Call store_spe_register as appropriate.
+ Assert that we're only passed raw register numbers.
+ (store_ppc_registers): Call store_spe_registers as appropriate.
+ Don't store gprs if they're pseudoregisters.
+
+2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
+
+ * thread-db.c (thread_get_info_callback): Fill in the thread_info
+ struct if one exists, even if we are dealing with a zombie thread.
+
+2004-06-07 Andrew Cagney <cagney@gnu.org>
+
+ * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
+ * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
+ Rename PC_REQUIRES_RUN_BEFORE_USE.
+ * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
+ #ifdef.
+
+2004-06-07 Randolph Chung <tausq@debian.org>
+
+ * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
+ unwinding after sp has been saved to the stack but before the end
+ of the prologue, and after the fp has been modified but before it has
+ been saved to the stack.
+ (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
+ Remove superfluous definitions.
+ (hppa_gdbarch_init): Remove superfluous frame base sniffer.
+
+2004-06-07 Guy Martin <gmsoft@gentoo.org>
+
+ Committed by Randolph Chung.
+ * hppa-linux-nat.c: Include the correct version of the header file
+ depending on the kernel version.
+
+2004-06-06 Randolph Chung <tausq@debian.org>
+
+ * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
+ (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
+
+2004-06-06 Randolph Chung <tausq@debian.org>
+
+ * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
+ (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
+ * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
+ * hppa-tdep.c (hppa_symbol_address): New function definition.
+ * hppa-tdep.h (hppa_symbol_address): New function declaration.
+
+2004-06-06 Randolph Chung <tausq@debian.org>
+
+ * hppa-tdep.h (struct value): Forward declaration.
+ (gdbarch_tdep): Define tdep find_global_pointer method.
+ * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
+ associated with the function we are trying to call, and write it
+ to the gp register.
+ (hppa32_convert_from_funct_ptr_addr): New function.
+ (hppa_find_global_pointer): New function.
+ (hppa_gdbarch_init): Set default find_global_pointer method; set
+ convert_from_func_ptr_addr method.
+ * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
+ (hppa_linux_init_abi): Set find_global_pointer method.
+ * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
+
+2004-06-06 Randolph Chung <tausq@debian.org>
+
+ * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
+ to struct value *function.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Likewise.
+ * infcall.c (call_function_by_hand): Pass entire function value
+ to push_dummy_call.
+
+ * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
+ (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
+ * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
+ * amd64-tdep.c (amd64_push_dummy_call): Likewise.
+ * arm-tdep.c (arm_push_dummy_call): Likewise.
+ * avr-tdep.c (avr_push_dummy_call): Likewise.
+ * cris-tdep.c (cris_push_dummy_call): Likewise.
+ * d10v-tdep.c (d10v_push_dummy_call): Likewise.
+ * frv-tdep.c (frv_push_dummy_call): Likewise.
+ * h8300-tdep.c (h8300_push_dummy_call): Likewise.
+ * hppa-tdep.c (hppa32_push_dummy_call)
+ (hppa64_push_dummy_call): Likewise.
+ * i386-tdep.c (i386_push_dummy_call): Likewise.
+ * ia64-tdep.c (ia64_push_dummy_call): Likewise.
+ * m32r-tdep.c (m32r_push_dummy_call): Likewise.
+ * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
+ * m68k-tdep.c (m68k_push_dummy_call): Likewise.
+ * m88k-tdep.c (m88k_push_dummy_call): Likewise.
+ * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
+ (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
+ * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
+ (ppc64_sysv_abi_push_dummy_call): Likewise.
+ * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
+ (ppc64_sysv_abi_push_dummy_call): Likewise.
+ * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
+ * s390-tdep.c (s390_push_dummy_call): Likewise.
+ * sh-tdep.c (sh_push_dummy_call_fpu)
+ (sh_push_dummy_call_nofpu): Likewise.
+ * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
+ * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
+ * vax-tdep.c (vax_push_dummy_call): Likewise.
+
+2004-06-04 Jim Blandy <jimb@redhat.com>
+
+ * ppc-linux-nat.c (fetch_register): Don't forget to pass the
+ gdbarch argument to register_size.
+
+ * rs6000-tdep.c (rs6000_store_return_value): Use
+ regcache_cooked_write_part instead of
+ deprecated_write_register_bytes.
+ (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
+ not gdbarch_deprecated_store_return_value.
+
+ * ppc-linux-nat.c (store_register, fetch_register): Remove
+ incorrect assertions. Simplify and generalize handling of
+ transfers whose sizes are not multiples of, or less than, sizeof
+ (PTRACE_XFER_TYPE).
+
+2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
+
+ * infrun.c (handle_inferior_event): Don't treat an invalid ptid
+ as a new thread event.
+ * thread_db.c (thread_get_info_callback): If the thread is a
+ zombie, return TD_THR_ZOMBIE.
+ * (thread_from_lwp): If thread_get_info_callback returns
+ TD_THR_ZOMBIE, check if the thread is still on the thread list
+ and return a -1 ptid if not found.
+ (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
+ change the status to TARGET_WAITKIND_SPURIOUS.
+
+2004-06-03 Corinna Vinschen <vinschen@redhat.com>
+
+ * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
+ double values in little endian mode.
+
+2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
+
+ Committed by Andrew Cagney.
+ * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
+ after last enum constant to avoid error from IBM C
+ compiler.
+
2004-06-02 Jim Blandy <jimb@redhat.com>
* ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
to 'message', and make it local to the lone block that uses it.
+ * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
+
2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
* ada-exp.y: Synchronize with current ACT sources.