+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * infrun.c (handle_inferior_event): Do not insert breakpoints at
+ TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
+
+2008-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * parse.c (parse_exp_in_context): Don't override
+ expression_context_pc if get_selected_block returned a valid
+ block.
+
+2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
+ * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
+ * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
+ Delete.
+ * c-typeprint.c (c_type_print_base): Delete handling of template
+ instantiations.
+ * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
+ (METHOD_PTR_TO_VOFFSET): Delete.
+ * defs.h (QUIT_FIXME): Delete.
+ * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
+ (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
+ * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
+ ninstantiations, and instantiations.
+ (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
+ (TYPE_FN_FIELD_INLINED): Delete.
+ * srec.h (SREC_BINARY): Delete.
+ * symtab.c (symbol_init_demangled_name): Delete.
+ * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
+ (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
+ (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
+ (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
+ (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
+ (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
+ * target.h (enum thread_control_capabilities): Delete tc_switch.
+ (target_can_switch_threads): Delete.
+
+2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (objfiles.o): Update.
+ * exec.c (exec_set_section_address): Support p->addr != 0.
+ * objfiles.c (objfile_relocate): Update exec_ops section
+ addresses.
+ * symfile.c (place_section): Move exec_set_section_address call...
+ (default_symfile_offsets): ...to here.
+
+2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * Makefile.in (ppc_linux_tdep_h): New macro.
+ (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
+ (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
+ (powerpc_e500l_c): Likewise.
+ (ppc-linux-nat.o): Update dependencies.
+ (ppc-linux-tdep.o): Update dependencies.
+ (rs6000-tdep.o): Update dependencies.
+
+ * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
+ (ppc_linux_svr4_fetch_link_map_offsets): Remove.
+ (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
+ (ppc_supply_reg, ppc_collect_reg): Add prototypes.
+ (tdesc_powerpc_e500): Remove.
+
+ * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
+ and "features/rs6000/powerpc-altivec64.c".
+ (ppc_supply_reg, ppc_collect_reg): Make global.
+ (variants): Use tdesc_powerpc_32 for "powerpc" and
+ tdesc_powerpc_altivec64 for "powerpc64".
+ (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
+
+ * ppc-linux-tdep.h: New file.
+
+ * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
+ Include "features/rs6000/powerpc-32l.c".
+ Include "features/rs6000/powerpc-altivec32l.c".
+ Include "features/rs6000/powerpc-64l.c".
+ Include "features/rs6000/powerpc-altivec64l.c".
+ Include "features/rs6000/powerpc-e500l.c".
+ (ppc_linux_supply_gregset): New function.
+ (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
+ (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
+ (ppc64_linux_gregset): Likewise.
+ (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
+ (ppc_linux_trap_reg_p): New function.
+ (ppc_linux_write_pc): New function.
+ (ppc_linux_core_read_description): New function.
+ (ppc_linux_init_abi): Install ppc_linux_write_pc and
+ ppc_linux_core_read_description. Install orig_r3 and trap
+ registers if present in the target description.
+ (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
+
+ * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
+ (PT_ORIG_R3, PT_TRAP): Define if necessary.
+ (ppc_register_u_addr): Handle orig_r3 and trap registers.
+ (fetch_ppc_registers): Likewise.
+ (store_ppc_registers): Likewise.
+ (store_register): Likewise.
+ (ppc_linux_read_description): Check whether AltiVec is supported.
+ Check whether inferior is 32-bit or 64-bit. Return the appropriate
+ Linux target description.
+
+ * features/Makefile (WHICH): Use rs6000/powerpc-32l and
+ rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
+ Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
+ of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
+ rs6000/powerpc-e500. Update -expedite variables accordingly.
+
+ * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
+ * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
+ * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
+ * features/rs6000/powerpc-e500.c: Regenerate.
+ * features/rs6000/powerpc-32.c: Regenerate.
+ * features/rs6000/powerpc-64.c: Regenerate.
+
+ * features/rs6000/power-linux.xml: New file.
+ * features/rs6000/power64-linux.xml: New file.
+ * features/rs6000/powerpc-32l.xml: New file.
+ * features/rs6000/powerpc-altivec32l.xml: New file.
+ * features/rs6000/powerpc-64l.xml: New file.
+ * features/rs6000/powerpc-altivec64l.xml: New file.
+ * features/rs6000/powerpc-e500l.xml: New file.
+ * features/rs6000/powerpc-32l.c: New (generated) file.
+ * features/rs6000/powerpc-altivec32l.c: New (generated) file.
+ * features/rs6000/powerpc-64l.c: New (generated) file.
+ * features/rs6000/powerpc-altivec64l.c: New (generated) file.
+ * features/rs6000/powerpc-e500l.xml: New (generated) file.
+
+ * regformats/reg-ppc.dat: Remove.
+ * regformats/reg-ppc64.dat: Remove.
+ * regformats/rs6000/powerpc-32.dat: Remove.
+ * regformats/rs6000/powerpc-64.dat: Remove.
+ * regformats/rs6000/powerpc-e500.dat: Remove.
+ * regformats/rs6000/powerpc-32l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-64l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
+ * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
+
+2008-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * thread.c (delete_thread): Call observer_notify_thread_exit.
+ * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
+ thread_exit observer.
+ (mi_thread_exit): New.
+
+2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * breakpoint.c (create_exception_catchpoint): Remove prototype
+ for already deleted function.
+ * breakpoint.h (ep_is_exception_catchpoint): Likewise.
+ * frame.h (show_stack_frame): Remove prototype.
+ * stack.c (show_stack_frame): Remove empty, unused function.
+ * source.c (symtab_to_fullname, print_source_lines): Small fix
+ in comment.
+ * value.c (show_values): Update comments to mention "show values"
+ command instead of "info history".
+
+2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * linespec.c: Include "target.h".
+ (minsym_found): Handle minimal symbols pointing to function
+ descriptors. Use find_function_start_pc.
+ * minsyms.c (msymbol_objfile): New function.
+ * parse.c (write_exp_msymbol): Handle minimal symbols pointing
+ to function descriptors.
+ * symtab.c (fixup_section): Only use minimal symbol at the same
+ address to determine section of a symbol.
+ (find_function_start_pc): New function.
+ (find_function_start_sal): Use it.
+ * symtab.h (msymbol_objfile): Add prototype.
+ (find_function_start_pc): Likewise.
+ * value.c: Include "objfiles.h".
+ (value_fn_field): Handle minimal symbols pointing to function
+ descriptors.
+ * Makefile.in (linespec.o): Update dependencies.
+ (value.o): Likewise.
+
+2008-05-02 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (unwrap_value): Handle the case where the "F" field
+ inside a PAD type is a bitfield.
+
+2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
+ TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
+ Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
+ Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
+ Allow typedefs when checking for function pointer arguments.
+ Right-align small structs passed on the stack.
+ (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
+ TYPE_CODE_CHAR the same as TYPE_CODE_INT.
+ Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (arm-tdep.o): Update.
+ * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
+ (struct arm_per_objfile, arm_compare_mapping_symbols): New.
+ (arm_pc_is_thumb): Use mapping symbols.
+ (arm_objfile_data_cleanup, arm_record_special_symbol): New.
+ (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
+ (_initialize_arm_tdep): Initialize arm_objfile_data_key.
+ * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
+ * gdbarch.sh: Add record_special_symbol.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * objfiles.c (struct objfile_data): Add cleanup member.
+ (register_objfile_data_with_cleanup): New function, from
+ register_objfile_data.
+ (register_objfile_data): Use it.
+ (objfile_free_data): Call clear_objfile_data.
+ (clear_objfile_data): Call cleanup functions.
+ * objfiles.h (register_objfile_data_with_cleanup): Declare.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * objfiles.c (init_entry_point_info): Handle shared libraries.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
+ lowest_pc.
+
+2008-05-02 Jim Blandy <jimb@codesourcery.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ Implement displaced stepping.
+
+ * gdbarch.sh (max_insn_length): New 'variable'.
+ (displaced_step_copy, displaced_step_fixup)
+ (displaced_step_free_closure, displaced_step_location): New
+ functions.
+ (struct displaced_step_closure): Add forward declaration.
+ * gdbarch.c, gdbarch.h: Regenerated.
+
+ * arch-utils.c: #include "objfiles.h".
+ (simple_displaced_step_copy_insn)
+ (simple_displaced_step_free_closure)
+ (displaced_step_at_entry_point): New functions.
+ * arch-utils.h (simple_displaced_step_copy_insn)
+ (simple_displaced_step_free_closure)
+ (displaced_step_at_entry_point): New prototypes.
+
+ * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
+ (I386_MAX_MATCHED_INSN_LEN): ... this.
+ (i386_absolute_jmp_p, i386_absolute_call_p)
+ (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
+ (i386_displaced_step_fixup): New functions.
+ (struct i386_insn, i386_match_insn): Update.
+ (i386_gdbarch_init): Set gdbarch_max_insn_length.
+ * i386-tdep.h (I386_MAX_INSN_LEN): New.
+ (i386_displaced_step_fixup): New prototype.
+ * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
+ Register gdbarch_displaced_step_copy,
+ gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
+ and gdbarch_displaced_step_location functions.
+
+ * infrun.c (debug_displaced): New variable.
+ (show_debug_displaced): New function.
+ (struct displaced_step_request): New struct.
+ (displaced_step_request_queue, displaced_step_ptid)
+ (displaced_step_gdbarch, displaced_step_closure)
+ (displaced_step_original, displaced_step_copy)
+ (displaced_step_saved_copy, can_use_displaced_stepping): New
+ variables.
+ (show_can_use_displaced_stepping, use_displaced_stepping)
+ (displaced_step_clear, cleanup_displaced_step_closure)
+ (displaced_step_dump_bytes, displaced_step_prepare)
+ (displaced_step_clear_cleanup, write_memory_ptid)
+ (displaced_step_fixup): New functions.
+ (resume): Call displaced_step_prepare.
+ (proceed): Call read_pc once, and remember the value. If using
+ displaced stepping, don't remove breakpoints.
+ (handle_inferior_event): Call displaced_step_fixup. Add some
+ debugging output. When we try to step over a breakpoint, but get
+ a signal to deliver to the thread instead, ensure the step-resume
+ breakpoint is actually inserted. If a thread hop is needed, and
+ displaced stepping is enabled, don't remove breakpoints.
+ (init_wait_for_inferior): Call displaced_step_clear.
+ (_initialize_infrun): Add "set debug displaced" command. Add
+ "maint set can-use-displaced-stepping" command. Clear
+ displaced_step_ptid.
+ * inferior.h (debug_displaced): Declare variable.
+ (displaced_step_dump_bytes): Declare function.
+
+ * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
+ dependencies.
+
+2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
+ (arm_force_mode_string, arm_show_fallback_mode)
+ (arm_show_force_mode): New.
+ (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
+ arm_frame_is_thumb.
+ (_initialize_arm_tdep): Add "set arm fallback-mode"
+ and "set arm force-mode".
+ * NEWS: Document new commands.
+
+2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * main.h (batch_silent): Declare.
+ * event-top.c: Include main.h.
+ (gdb_setup_readline): Remove extern batch_silent declaration.
+ * infrun.c (normal_stop): Don't print source location when running in
+ --batch-silent mode.
+ * Makefile.in (event-top.o): Add main.h dependency.
+
+2008-05-02 Andreas Schwab <schwab@suse.de>
+
+ * target.h (struct target_ops): Add
+ to_watchpoint_addr_within_range.
+ (target_watchpoint_addr_within_range): New function.
+ * target.c (update_current_target): Inherit
+ to_watchpoint_addr_within_range, defaulting to
+ default_watchpoint_addr_within_range.
+ (default_watchpoint_addr_within_range): New function.
+ (debug_to_watchpoint_addr_within_range): New function.
+ (setup_target_debug): Set to_watchpoint_addr_within_range.
+ * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
+ New function.
+ (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
+ * breakpoint.c (watchpoints_triggered): Use
+ target_watchpoint_addr_within_range.
+
+2008-05-01 Pedro Alves <pedro@codesourcery.com>
+
+ * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
+ (i[34567]86-*-dicos*, x86_64-*-dicos*):
+ Set gdb_osabi to GDB_OSABI_DICOS.
+
+ * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
+ * osabi.c (gdb_osabi_name): Add "DICOS".
+
+ * i386-dicos-tdep.c: New file.
+
+ * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
+ (ALLDEPFILES): Add i386-dicos-tdep.c.
+ (i386-dicos-tdep.o): New rule.
+
+2008-05-01 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
+ and register the fork's PTID as a thread.
+
+2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
+
+ PR gdb/1665
+ * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
+ assign its value to the breakpoint created.
+ (create_breakpoints): Add breakpoint_ops argument and pass it
+ to create_breakpoint call.
+ (break_command_really): Add breakpoint_ops argument and pass/assign
+ appropriately.
+ (break_command_1): Pass NULL as ops argument.
+ (set_breakpoint): Pass NULL as ops argument.
+ (print_one_exception_catchpoint): Print <PENDING> if no loc available.
+ (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
+ catch and throw catchpoints.
+
+2008-05-01 Aleksandar Riswtovski <aristovski@qnx.com>
+
+ PR gdb/2343
+ * corelow.c (core_open): Use gdbarch_target_signal_from_host to
+ translate signal numeric value from the target to GDB's enum
+ target_signal.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * gdbarch.sh: Added two new functions target_signal_from_host and
+ target_signal_to_host.
+ * target.h (default_target_signal_from_host,
+ default_target_signal_to_host): New functions - declarations.
+ * signals/signals.c (struct gdbarch): New declaration.
+ (default_target_signal_to_host, default_target_signal_from_host): New
+ functions.
+
+2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
+ * arm-tdep.c (arm_frame_is_thumb): New.
+ (arm_pc_is_thumb): Clarify comment.
+ (thumb_analyze_prologue): Remove PC special case.
+ (thumb_scan_prologue): Take a block_addr argument. Use it for
+ find_pc_partial_function. Remove unused variables.
+ (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
+ for find_pc_partial_function. Remove PC special case.
+ (arm_prologue_prev_register): Add special handling for PC and CPSR.
+ (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
+ (arm_get_next_pc): Use arm_frame_is_thumb.
+ (arm_write_pc): Use CPSR_T instead of 0x20.
+ (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
+ * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
+ (CPSR_T): Define.
+ * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
+ DWARF2_FRAME_REG_FN.
+ * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
+ DWARF2_FRAME_REG_FN.
+ (struct dwarf2_frame_state_reg): Add FN to loc union.
+
+2008-05-01 Nick Roberts <nickrob@snap.net.nz>
+
+ * exec.c (print_section_info): Add missing '\n'.
+
+2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
+
+ * thread.c (add_thread): Move observer call to ...
+ (add_thread_silent): ... here.
+
+2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * rs6000-tdep.c: Update for unwinder changes.
+ * ppcobsd-tdep.c: Likewise.
+
+2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * s390-tdep.c: Update for unwinder changes.
+
+2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-tdep.c: Update for unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
+ ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
+ sparc64-linux-tdep.c: Update for unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
+ for unwinder changes.
+ * mips-tdep.c: Likewise.
+ (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
+ raw one.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
+ unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Update i386 and amd64 ports for unwinder changes.
+
+ * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
+ (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
+ (amd64_frame_unwind): Use default_frame_sniffer.
+ (amd64_frame_sniffer): Delete.
+ (amd64_sigtramp_frame_cache): Expect this_frame.
+ (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
+ (amd64_sigtramp_frame_sniffer): Update signature.
+ (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
+ (amd64_frame_base_address): Expect this_frame.
+ (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
+ this_frame.
+ (amd64_init_abi): Use set_gdbarch_dummy_id and
+ frame_unwind_append_unwinder.
+ * i386-tdep.c (i386_frame_cache): Expect this_frame.
+ (i386_frame_this_id, i386_frame_prev_register): Update signature.
+ (i386_frame_unwind): Use default_frame_sniffer.
+ (i386_frame_sniffer): Delete.
+ (i386_sigtramp_frame_cache): Expect this_frame.
+ (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
+ (i386_sigtramp_frame_sniffer): Update signature.
+ (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
+ (i386_frame_base_address): Update signature.
+ (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
+ (i386_push_dummy_call): Update comment.
+ (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
+ Expect this_frame.
+ (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
+ and frame_unwind_append_unwinder.
+ * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
+ amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
+ i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
+ i386nbsd-tdep.c: Update for unwinder changes.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
+ (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
+ this_frame.
+ (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
+ * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
+ (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
+ signature.
+ * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
+ this_frame.
+ (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
+ Update signature.
+ * tramp-frame.h (struct tramp_frame): Update signature of init.
+ * Makefile.in (trad-frame.o): Update.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
+ (execute_stack_op): Put this_frame in the baton.
+ (execute_cfa_program): Take this_frame.
+ (struct dwarf2_frame_ops): Update comment for signal_frame_p.
+ (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
+ (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
+ (dwarf2_frame_this_id): Adjust to work on this_frame.
+ (dwarf2_signal_frame_this_id): Delete.
+ (dwarf2_frame_prev_register): Update signature. Use new frame
+ unwind methods.
+ (dwarf2_frame_sniffer): Update signature. Expect this_frame.
+ (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
+ dwarf2_frame_sniffer.
+ (dwarf2_append_unwinders): New.
+ (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
+ this_frame.
+ * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
+ (sparc32_dwarf2_frame_init_reg): Expect this_frame.
+ * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
+ * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
+ * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
+ * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
+ * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
+ * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
+ (dwarf2_append_unwinders): Declare.
+ (dwarf2_frame_base_sniffer): Update declaration.
+ * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
+ this_frame.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Convert frame unwinders to use the current frame and
+ "struct value".
+
+ * frame.c (frame_debug): Make global.
+ (get_frame_id): Pass this frame to unwinder routines.
+ (frame_pc_unwind): Remove unused unwind->prev_pc support.
+ (do_frame_register_read): Do not discard the return value of
+ frame_register_read.
+ (frame_register_unwind): Remove debug messages. Use
+ frame_unwind_register_value.
+ (frame_unwind_register_value, get_frame_register_value): New
+ functions.
+ (create_new_frame, get_frame_base_address, get_frame_locals_address)
+ (get_frame_args_address, get_frame_type): Pass this frame to
+ unwinder routines.
+ (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
+ functions.
+ * frame.h: Update comments.
+ (frame_debug, frame_unwind_register_value, get_frame_register_value)
+ (frame_prepare_for_sniffer): Declare.
+ * frame-unwind.h: Update comments and parameter names.
+ (default_frame_sniffer): Declare.
+ (frame_prev_register_ftype): Return a struct value *.
+ (struct frame_unwind): Remove prev_pc member.
+ (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
+ (frame_unwind_append_unwinder, frame_unwind_got_optimized)
+ (frame_unwind_got_register, frame_unwind_got_memory)
+ (frame_unwind_got_constant, frame_unwind_got_address): Declare.
+ * frame-base.h: Update comments and parameter names.
+ * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
+ if necessary. Add debugging output.
+ * sentinel-frame.c (sentinel_frame_prev_register)
+ (sentinel_frame_this_id): Update for new signature.
+ (sentinel_frame_prev_pc): Delete.
+ (sentinel_frame_unwinder): Remove prev_pc.
+ * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
+ prev_pc.
+ * libunwind-frame.c (libunwind_frame_unwind): Likewise.
+ * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
+ (frame_unwind_append_sniffer): Delete.
+ (frame_unwind_append_unwinder): New function.
+ (frame_unwind_find_by_frame): Take this frame. Only use sniffers
+ from unwinders. Use frame_prepare_for_sniffer.
+ (default_frame_sniffer, frame_unwind_got_optimized)
+ (frame_unwind_got_register, frame_unwind_got_memory)
+ (frame_unwind_got_constant, frame_unwind_got_address): New functions.
+ * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
+ (dummy_frame_prev_register, dummy_frame_this_id): Update for new
+ signature.
+ * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
+ * gdbarch.c, gdbarch.c: Regenerated.
+ * frame-base.c (default_frame_base_address)
+ (default_frame_locals_address, default_frame_args_address): Update
+ for new signature.
+ (frame_base_find_by_frame): Pass this frame to unwinder routines.
+ * infcall.c (call_function_by_hand): Update comments.
+ * Makefile.in (frame-unwind.o): Update dependencies.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * ada-lang.c (ada_value_primitive_packed_val): Only check
+ value_lazy for memory lvals.
+ * findvar.c (value_of_register_lazy): New function.
+ (locate_var_value): Only check value_lazy for memory lvals.
+ * valarith.c (value_subscripted_rvalue): Likewise.
+ * valops.c (value_fetch_lazy): Handle both memory and register
+ lvals.
+ (search_struct_field, value_slice): Only check value_lazy for memory
+ lvals.
+ * value.c (struct value): Update comment for lazy.
+ (value_primitive_field): Only check value_lazy for memory lvals.
+ * value.h (value_lazy): Update comment.
+ (value_of_register_lazy): Declare.
+
+2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * corefile.c (reopen_exec_file): Close any open files.
+
+2008-04-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
+ show_memory_breakpoints to 1 while reading the instruction bundle.
+
+2008-04-29 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbarch.sh: Document the return_value method. Explain that
+ the FUNCTYPE parameter might be NULL.
+ * gdbarch.h: Regenerated.
+ * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
+ type when calling using_struct_return, as this is unnecessary
+ on this target.
+
+2008-04-28 Joel Brobecker <brobecker@adacore.com>
+
+ * terminal.h (create_tty_session): Fix return type.
+
+2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-interp.c (mi_new_thread): Quote the thread id.
+
+2008-04-26 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (condition_command, commands_from_control_command)
+ (break_command_really): Minor reformatting.
+
+2008-04-25 Pedro Alves <pedro@codesourcery.com>
+
+ * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
+
+2008-04-25 Pedro Alves <pedro@codesourcery.com>
+
+ * amd64-tdep.c (amd64_get_longjmp_target): New.
+ (amd64_init_abi): Register amd64_get_longjmp_target as
+ gdbarch_get_longjmp_target callback.
+ * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
+
+2008-04-25 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.h (enum bpstat_what_main_action): Delete
+ BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
+
+ * breakpoint.c (clrs): Delete.
+ (bpstat_what): Update table.
+
+ * infrun.c (handle_inferior_event): Remove
+ BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
+ Adjust all prototypes using mi_cmd_args_ftype to use
+ mi_cmd_argv_ftype.
+ (struct mi_cmd): Remove the args_func field.
+ * mi/mi-cmds.c: Don't provide value for the args_func field.
+ * mi/mi-main.c (mi_execute_async_cli_command)
+ (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
+ (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
+ (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
+ (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
+ (mi_cmd_target_download): Adjust.
+ (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
+ (mi_cmd_execute): Do not check for args_func.
+ (mi_execute_async_cli_command): Adjust.
+ * mi/mi-parse.c: Don't check for args_func.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.c (bpstat_check_location)
+ (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
+ New, extracted from bpstat_stop_status.
+ (bpstat_stop_status): Use the above.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-main.c (last_async_command): Rename to current_token.
+ (previous_async_command): Remove.
+ (mi_cmd_gdb_exit): Adjust.
+ (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
+ (mi_cmd_target_select): Adjust.
+ (mi_cmd_execute): Don't set previous_async_command. Free token
+ here even in async mode.
+ (mi_execute_async_cli_command): Adjust.
+ (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
+ token.
+ (mi_load_progress): Adjust.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * infcmd.c (step_1_continuation): Always disable longjmp
+ breakpoint if we're not going to do another step.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ exec_cleanup murder.
+ * breakpoint.c (until_break_command_continuation): Add
+ the 'error' parameter. Directly delete the breakoint as
+ opposed to running cleanups.
+ (until_break_command): Install continuation only
+ after starting the target. Don't use exec cleanups,
+ use ordinary cleanups. Discard cleanups is successfully
+ started the target in async mode.
+ (make_cleanup_delete_breakpoint): Remove.
+ * breakpoint.h (make_cleanup_delete_breakpoint): Remove
+ declaration.
+ * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
+ declarations.
+ (struct continations): Add the 'error' parameter to the
+ continuation_hook field.
+ (add_continuation, do_all_continuations)
+ (add_intermediate_continuation)
+ (do_all_intermediate_continuations): Add the 'error' parameter.
+ * exceptions.c (throw_exception): Don't call do_exec_cleanups.
+ * inf-loop.c (inferior_event_handler): Instead of calling
+ discard_all_continuations, use do_all_continuations with 1 as
+ 'error' parameter. Pass 0 as 'error' parameter in existing uses
+ of discard_all_continuations.
+ * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
+ cleanups.
+ (step_once): Install continuation only after resuming the target.
+ (step_1_continuation): Disable longjmp breakpoint on error.
+ (finish_command_continuation): Add the error parameter. Delete
+ the finish breakpoint directly, do not use cleanups.
+ (finish_command): Do not use exec_cleanups. Always setup
+ continuation. For sync case, immediately run them.
+ (attach_command_continuation): Add the error parameter.
+ * infrun.c (fetch_inferior_event): Do not use exec cleanups to
+ remove step_resume_breakpoint -- adjust delete it directly.
+ * interps.c (interp_set): Adjust call to do_all_continations.
+ * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
+ do exec cleanups.
+ * mi/mi-main.c (mi_cmd_target_select): Do not do exec
+ cleanups.
+ (mi_cmd_execute): Do not use exec_cleanup.
+ (mi_execute_async_cli_command): Simplify the string concatenation
+ logic. Do no use exec cleanup.
+ (mi_exec_async_cli_cmd_continuation): New parameter error.
+ Free last_async_command.
+ * top.c (command_line_handler_continuation): New parameter error.
+ * utils.c (exec_cleanup_chain, make_exec_cleanup)
+ (do_exec_cleanups): Remove.
+ (add_continuation, do_all_continations)
+ (add_intermediate_continuation)
+ (do_all_intermediate_continuations): New parameter error.
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.h (bp_location_p): New typedef.
+ Register a vector of bp_location_p.
+ * breakpoint.c (always_inserted_mode)
+ (show_always_inserted_mode): New.
+ (unlink_locations_from_global_list): Remove.
+ (update_global_location_list)
+ (update_global_location_list_nothrow): New.
+ (update_watchpoint): Don't free locations.
+ (should_insert_location): New.
+ (insert_bp_location): Use should_insert_location.
+ (insert_breakpoint_locations): Copied from
+ insert_breakpoints.
+ (insert_breakpoint): Use insert_breakpoint_locations.
+ (bpstat_stop_status): Call update_global_location_list
+ when disabling breakpoint.
+ (allocate_bp_location): Don't add to bp_location_chain.
+ (set_raw_breakpoint)
+ (create_longjmp_breakpoint, enable_longjmp_breakpoint)
+ (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
+ (enable_overlay_breakpoints, disable_overlay_breakpoints)
+ (set_longjmp_resume_breakpoint)
+ (enable_watchpoints_after_interactive_call_stop)
+ (disable_watchpoints_before_interactive_call_start)
+ (create_internal_breakpoint)
+ (create_fork_vfork_event_catchpoint)
+ (create_exec_event_catchpoint, set_momentary_breakpoint)
+ (create_breakpoints, break_command_1, watch_command_1)
+ (create_exception_catchpoint)
+ (handle_gnu_v3_exceptions)
+ (disable_breakpoint, breakpoint_re_set_one)
+ (create_thread_event_breakpoint, create_solib_event_breakpoint)
+ (create_ada_exception_breakpoint): : Don't call check_duplicates.
+ Call update_global_location_list.
+ (delete_breakpoint): Don't remove locations and don't
+ try to reinsert them. Call update_global_location_list.
+ (update_breakpoint_locations): Likewise.
+ (restore_always_inserted_mode): New.
+ (update_breakpoints_after_exec): Temporary disable
+ always inserted mode.
+ * Makefile.in: Update dependencies.
+
+ * infrun.c (proceed): Remove breakpoints while stepping
+ over breakpoint.
+ (handle_inferior_event): Don't remove or insert
+ breakpoints.
+ * linux-fork.c (checkpoint_command): Remove breakpoints
+ before fork and insert after.
+ (linux_fork_context): Remove breakpoints before switch
+ and insert after.
+ * target.c (target_disconnect, target_detach): Remove
+ breakpoints from target.
+
+
+2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ * breakpoint.c (print_one_breakpoint_location): In MI
+ mode, report the location string the breakpoint was
+ originally created with.
+
+2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
+
+ * Makefile.in (xtensa-tdep.o): Update dependencies.
+ * configure.tgt (xtensa*): Update dependencies.
+ * xtensa-tdep.c (arreg_number): Renamed from areg_number.
+ Local variable areg renamed to arreg.
+ (areg_number): New function.
+ (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
+ (xtensa_extract_return_value, xtensa_store_return_value): areg_number
+ replaced by arreg_number.
+ (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
+ (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
+ (xtensa_scan_prologue): New function.
+ (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
+ when ENTRY instraction hasn't been executed yet. Get the frame pointer
+ value based on prologue analysis. Fix the bugs preventing WS and
+ AR4-AR7/A11 registers from getting right values for intermediate frames,
+ whose registers have been already spilled.
+ (xtensa_frame_prev_register): Fix WS register value. Use are_number
+ and arreg_number appropriately.
+ (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
+ svr4_ilp32_fetch_link_map_offsets.
+
+2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
+ (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
+
+2008-04-23 Paolo Bonzini <bonzini@gnu.org>
+
+ * acinclude.m4: Add override.m4.
+ * configure: Regenerate.
+
+2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * ada-lang.c (get_selections): Variable PROMPT made non-const and
+ initialized with a trailing space now. Use PROMPT_ARG of
+ COMMAND_LINE_INPUT instead of printing it ourselves.
+
+2008-04-22 Joel Brobecker <brobecker@adacore.com>
+
+ * NEWS: Document support for 64-bit core file.
+
+2008-04-22 Corinna Vinschen <vinschen@redhat.com>
+
+ * NEWS: Add information on calling convention and new SH CLI options.
+
+ * sh-tdep.c (sh_cc_gcc): New static string.
+ (sh_cc_renesas): Ditto.
+ (sh_cc_enum): New static string array.
+ (sh_active_calling_convention): New static string pointer denoting
+ active user chosen ABI.
+ (sh_is_renesas_calling_convention): New function to return function
+ specific ABI, or user choice if necessary.
+ (sh_use_struct_convention): Rename first argument and turn around its
+ meaning. Check for renesas ABI and return accordingly.
+ (sh_use_struct_convention_nofpu): New function.
+ (sh_next_flt_argreg): Get function type as third parameter. Check
+ for renesas ABI and choose floating registers accordingly.
+ (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
+ struct return slot accordingly.
+ (sh_push_dummy_call_nofpu): Ditto.
+ (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
+ Evaluate ABI and give to sh_use_struct_convention_nofpu.
+ (sh_return_value_fpu): Evaluate ABI and give to
+ sh_use_struct_convention.
+ (show_sh_command): New function.
+ (set_sh_command): Ditto.
+ (_initialize_sh_tdep): Initialize `set/show sh calling-convention
+ CLI command.
+
+ * gdbarch.sh (return_value): Add func_type argument.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Ditto.
+ * eval.c (evaluate_subexp_standard): Rename local variable value_type to
+ val_type so as not to collide with value_type function. Call
+ using_struct_return with additional function type argument.
+ * infcall.c (call_function_by_hand): Call using_struct_return and
+ gdbarch_return_value with additional function type argument.
+ * infcmd.c (print_return_value): Take addition func_type argument.
+ Call gdbarch_return_value with additional function type argument.
+ (finish_command_continuation): Call print_return_value with additional
+ function type argument.
+ (finish_command): Ditto.
+ * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
+ additional function type argument.
+ * stack.c (return_command): Call using_struct_return and
+ gdbarch_return_value with additional function type argument.
+ * value.c (using_struct_return): Take additional function type argument.
+ * value.h (using_struct_return): Accommodate declaration.
+ * alpha-tdep.c (alpha_return_value): Add func_type argument.
+ * amd64-tdep.c (amd64_return_value): Ditto.
+ * arm-tdep.c (arm_return_value): Ditto.
+ * avr-tdep.c (avr_return_value): Ditto.
+ * cris-tdep.c (cris_return_value): Ditto.
+ * frv-tdep.c (frv_return_value): Ditto.
+ * h8300-tdep.c (h8300_return_value): Ditto.
+ (h8300h_return_value): Ditto.
+ * hppa-tdep.c (hppa32_return_value): Ditto.
+ (hppa64_return_value): Ditto.
+ * i386-tdep.c (i386_return_value): Ditto.
+ * ia64-tdep.c (ia64_return_value): Ditto.
+ * iq2000-tdep.c (iq2000_return_value): Ditto.
+ * m32c-tdep.c (m32c_return_value): Ditto.
+ * m32r-tdep.c (m32r_return_value): Ditto.
+ * m68hc11-tdep.c (m68hc11_return_value): Ditto.
+ * m68k-tdep.c (m68k_return_value): Ditto.
+ (m68k_svr4_return_value): Ditto.
+ * m88k-tdep.c (m88k_return_value): Ditto.
+ * mep-tdep.c (mep_return_value): Ditto.
+ * mips-tdep.c (mips_eabi_return_value): Ditto.
+ (mips_n32n64_return_value): Ditto.
+ (mips_o32_return_value): Ditto.
+ (mips_o64_return_value): Ditto.
+ * mn10300-tdep.c (mn10300_return_value): Ditto.
+ * mt-tdep.c (mt_return_value): Ditto.
+ * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
+ * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
+ (ppc_sysv_abi_broken_return_value): Ditto.
+ (ppc64_sysv_abi_return_value): Ditto.
+ * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
+ (ppc_sysv_abi_broken_return_value): Ditto.
+ (ppc64_sysv_abi_return_value): Ditto.
+ * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
+ * rs6000-tdep.c (rs6000_return_value): Ditto.
+ * s390-tdep.c (s390_return_value): Ditto.
+ * score-tdep.c (score_return_value): Ditto.
+ * sh-tdep.c (sh_return_value_nofpu): Ditto.
+ (sh_return_value_fpu): Ditto.
+ * sh64-tdep.c (sh64_return_value): Ditto.
+ * sparc-tdep.c (sparc32_return_value): Ditto.
+ * sparc64-tdep.c (sparc64_return_value): Ditto.
+ * spu-tdep.c (spu_return_value): Ditto.
+ * v850-tdep.c (v850_return_value): Ditto.
+ * vax-tdep.c (vax_return_value): Ditto.
+ * xstormy16-tdep.c (xstormy16_return_value): Ditto.
+ * xtensa-tdep.c (xtensa_return_value): Ditto.
+
+ * gdbtypes.h (struct type): Add calling_convention member.
+ * dwarf2read.c (read_subroutine_type): Add calling convention read
+ from DW_AT_calling_convention attribute to function type.
+
+2008-04-22 Markus Deuling <deuling@de.ibm.com>
+
+ * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
+ multi_f77_subscript to support values from registers.
+ * valarith.c (value_subscripted_rvalue): Remove prototype and static.
+ * value.h (value_subscripted_rvalue): Add prototype.
+
+ * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
+ Fix output.
+ * f-valprint.c (f_val_print): Likewise.
+
+2008-04-21 Craig Silverstein <csilvers@google.com>
+
+ * dwarf2read.c (zlib_decompress_section): Define abfd in the
+ !HAVE_ZLIB_H case.
+
+2008-04-21 Pedro Alves <pedro@codesourcery.com>
+
+ * symfile.c (syms_from_objfile): Don't warn if lowest loadable
+ section is not a code section.
+
+2008-04-19 Craig Silverstein <csilvers@google.com>
+
+ * NEWS: Add information on compressed debug sections.
+
+2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-cmd-var.c (varobj_update_one): Print new
+ value for variable objects that changed type.
+
+2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
+
+ * varobj.c (varobj_invalidate): Don't touch floating
+ varobjs.
+
+2008-04-19 Mark Kettenis <kettenis@gnu.org>
+
+ * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
+ (multiple_symbols_cancel): Remove extra const.
+ * symtab.h: Likewise.
+
+2008-04-19 Nick Roberts <nickrob@snap.net.nz>
+
+ * interps.c (top_level_interpreter): Rename static variable...
+ (top_level_interpreter_ptr): ...to this.
+ (top_level_interpreter): New function.
+
+ * interps.h: New extern for top_level_interpreter.
+
+ * linespec.c: Include interps.h and mi/mi-cmds.h.
+ (decode_line_2): When using MI, always set all breakpoints in menu.
+
+ * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
+
+2008-04-18 Craig Silverstein <csilvers@google.com>
+
+ * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
+ * config.in, configure: Regenerate.
+ * dwarf2read.c: Include zlib.h if present.
+ Modified *_SECTION macros.
+ (section_is_p): New.
+ (dwarf2_locate_sections): Use section_is_p instead of strcmp
+ (dwarf2_resize_section): New.
+ to determine whether a given section has a given name.
+ (zlib_decompress_section): New.
+ (dwarf2_read_section): Read the compressed section if present
+ in the binary.
+ * MAINTAINERS: Added myself to section Write After Approval.
+
+2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * defs.h (exec_set_section_offsets): Remove prototype.
+ * exec.c (exec_set_section_offsets): Remove function.
+
+2008-04-18 Joel Brobecker <brobecker@adacore.com>
+
+ * stabsread.c (cleanup_undefined_types_1): Add instance flags check
+ in the search for the matching symbol.
+
+2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * breakpoint.c (update_watchpoint): Always reparse
+ condition.
+
+2008-04-17 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (print_one_breakpoint_location): Make sure to print
+ the breakpoint address only once.
+
+2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
+
+ * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
+ rather than a hard-coded architecture, for xcoff executables.
+
+2008-04-17 Doug Evans <dje@google.com>
+
+ * buildsym.c (watch_main_source_file_lossage): New fn.
+ (end_symtab): Call it.
+
+ * source.c (find_and_open_source): Add some comments clarifying
+ handling of FULLNAME argument. Make static. Remove pointless
+ xstrdup/xfree.
+
+2008-04-17 Pedro Alves <pedro@codesourcery.com>
+
+ * inf-loop.c (inferior_event_handler): Also run the intermediate
+ continuations in the INF_EXEC_COMPLETE case.
+
+2008-04-16 Tom Tromey <tromey@redhat.com>
+
+ * cli/cli-decode.h (CMD_ASYNC_OK): New define.
+ (set_cmd_async_ok, get_cmd_async_ok): Declare.
+ * cli/cli-decode.c (set_cmd_async_ok): New function.
+ (get_cmd_async_ok): New function.
+ * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
+ "show" as async-ok.
+ * top.c (execute_command): Use get_cmd_async_ok.
+ * infcmd.c: Include cli/cli-decode.h.
+ (_initialize_infcmd): Mark "interrupt" as async-ok.
+ * Makefile.in (infcmd.o): Depend on cli_decode_h.
+
+2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ PR gdb/2445
+ * exec.c: Correct "arch-utils.h" include.
+
+2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
+
+ PR gdb/2424
+ * infrun.c (normal_stop) Move breakpoint_auto_delete further down
+ to allow printing to 'see' real reason of stop. This fixes PR 2424.
+ * breakpoint.c (bpdisp_texst): New function. The function takes over
+ the role of bpstats static array in print_one_breakpoint_location.
+ (print_it_typical): Print "Temporary breakpoint" instead
+ of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
+ protocols, print disp field.
+ (print_one_breakpoint_location): Removed bpdisps static definition.
+ Call new bpstat_text function to get value for 'disp' field.
+ (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
+
+2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
+ gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
+ by rerunning gnulib-tool with --aux-dir=gnulib/extra.
+ * gnulib/Makefile.in: Regenerate.
+
+2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (GNULIB_H): New. Trigger all-lib.
+ (defs_h): Use $(GNULIB_H).
+ (all-lib): Depend on gnulib/Makefile.
+ (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
+ * config.in, gnulib/Makefile.in: Regenerated.
+
+2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (LIBGNU, INCGNU): Define.
+ (INTERNAL_CFLAGS_BASE): Add INCGNU.
+ (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
+ (CLEANDIRS): New.
+ ($(LIBGNU), all-lib): New rules.
+ (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
+ * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
+ Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
+ * gnulib: New directory, from gnulib-tool.
+ * configure, aclocal.m4: Regenerated.
+
+2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-thread-db.c (have_threads_callback): Check thread->private.
+
+2008-04-13 Nick Roberts <nickrob@snap.net.nz>
+ Vladimir Prus <vladimir@codesourcery.com>
+
+ Fix @-varobjs.
+ * varobj.c (value_of_root): Update the expression for
+ floating varobjs.
+ * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
+ report that.
+
+2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-cmd-var.c: Include "mi-getopt.h".
+ (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
+ (mi_cmd_var_set_format): Use new mi_parse_format.
+ (mi_cmd_var_evaluate_expression): Support for -f option to specify
+ format.
+ * Makefile.in (mi-cmd-var.o): Update dependencies.
+
+ * varobj.h (varobj_get_formatted_value): Declare.
+ * varobj.c (my_value_of_variable): Added format parameter.
+ (cplus_value_of_variable): Likewise.
+ (java_value_of_variable): Likewise.
+ (c_value_of_variable): Likewise. Evaluate expression based
+ on format parameter.
+ (struct language_specific): Add format parameter to function member
+ *value_of_variable.
+ (varobj_get_formatted_value): New.
+ (varobj_get_value): Added format parameter to method call.
+
+2008-04-08 Joel Brobecker <brobecker@adacore.com>
+
+ * stabsread.c (cleanup_undefined_types_noname): Manually set the
+ instance flags of the undefined type before calling replace_type.
+
2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
* target.h (enum strata): Remove the download_stratum.