* gdb/score-tdep.c: Delete dead codes.
[binutils-gdb.git] / gdb / ChangeLog
index 1b3bc4de786d7894f7f35477467d6f0f141d6207..1803dc5677961be7b08e08ef6111be921cce2d8a 100644 (file)
@@ -1,3 +1,439 @@
+2009-10-19  Don Lee  <don.lee@sunplusct.com>
+
+       * score-tdep.c: Delete dead codes.
+
+2009-10-15  Michael Snyder  <msnyder@vmware.com>
+
+       * record.c (struct record_reg_entry): Replace ptr with union 
+       of ptr and buf.
+       (struct record_mem_entry): Ditto.
+       (record_reg_alloc): Don't alloc ptr if reg will fit into buf.
+       (record_mem_alloc): Ditto.
+       (record_reg_release): Don't free ptr if reg was stored in buf.
+       (record_mem_release): Ditto.
+       (record_get_loc): New function.  Return a pointer to where the
+       value (mem or reg) is to be stored.
+       (record_arch_list_add_reg): Call record_get_loc instead of using ptr.
+       (record_arch_list_add_mem): Ditto.
+       (record_wait): Ditto.
+
+2009-10-16  Michael Eager  <eager@eagercon.com>
+
+       * microblaze-linux-tdep.c:
+       microblaze_linux_memory_remove_breakpoint(): Add gdbarch to param,
+       replace frame_pc_unwind with get_frame_address_in_block.
+       * microblaze-tdep.c: Remove MICROBLAZE_REGISTER_SIZE.
+       * microblaze-tdep.h: Add MICROBLAZE_REGISTER_SIZE.
+
+2008-10-15  Steven G. Kargl  <kargl@gcc.gnu.org>  (tiny patch)
+
+       * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
+       support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.
+
+2009-10-15  Michael Eager  <eager@eagercon.com>
+
+       * config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
+       elf32-microblaze.c, microblaze-rom.c, microblaze-linux-tdep.c,
+       microblaze-tdep.h, microblaze-tdep.c, microblaze-opc.h,
+       microblaze-opcm.h, microblaze-dis.c, microblaze-dis.h, sim/microblaze,
+       microblaze.h, and microblaze.isa.
+       * configure.tgt: Add targets microblaze*-linux-*, microblaze*-xilinx-*.
+       * Makefile.in: Build microblaze-tdep.o, microblaze-linux-tdep.o.
+       HFILES_NO_SRCDIR: Add microblaze-tdep.h.
+       * microblaze-linux-tdep.c: New.
+       * microblaze-tdep.c: New.
+       * microblaze-tdep.h: New.
+       * NEWS: Announce Xilinx MicroBlaze support.
+
+2009-10-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       PR gdb/10757
+       * linux-nat.c (linux_nat_post_attach_wait): Adjust assert.
+       (lin_lwp_attach_lwp, linux_nat_attach): Handle disappearing LWP.
+       
+2009-10-15  Michael Snyder  <msnyder@vmware.com>
+
+       * record.c (record_insn_max_num): Make unsigned.
+       (_initialize_record): Use uinteger instead of zinteger for
+       set command, so that it will report "unlimited" for zero.
+
+2009-10-15  Michael Snyder  <msnyder@vmware.com>
+
+       * record.c (record_reg_alloc): New function.
+       (record_reg_release): New function.
+       (record_mem_alloc): New function.
+       (record_mem_release): New function.
+       (record_end_alloc): New function.
+       (record_end_release): New function.
+       (record_entry_release): New function.
+       (record_list_release): Simplify, call record_entry_release.
+       (record_list_release_next): Rename to record_list_release_following.
+       Simplify and call record_entry_release.
+       (record_list_release_first): Simplify, comment, and use
+       record_entry_release.
+       (record_arch_list_add_reg): Simplify, call record_reg_alloc.
+       (record_arch_list_add_mem): Simplify, call record_mem_alloc.
+       (record_arch_list_add_end): Simplify, call record_end_alloc.
+
+2009-10-14  Michael Snyder  <msnyder@vmware.com>
+
+       * record.c (record_list_release_first): Do not decrement
+       record_insn_num.
+       (set_insn_num_max): Remove printf.
+       Decrement record_insn_num in the loop.
+
+2009-10-14  Cary Coutant  <ccoutant@google.com>
+
+       * dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
+
+2009-10-14  Keith Seitz  <keiths@redhat.com>
+
+       * dwarf2read.c (dwarf2_const_value): Fix order of arguments to
+       store_unsigned_integer.
+
+2009-10-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * configure.ac (build_warnings): Add -Wunused-value.
+       * configure: Regenerate.
+
+2009-10-14  Tristan Gingold  <gingold@adacore.com>
+
+       * solib-darwin.c: Remove trailing whitespaces.
+       (darwin_dyld_version_ok): Fix typo.
+
+2009-10-14  Andrew Stubbs  <ams@codesourcery.com>
+
+       * sh-tdep.c (sh_gdbarch_init): Add show_regs settings for
+       bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu,
+       bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu,
+       and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu.
+       Move bfd_mach_sh2a_or_sh4 to use the same configuration as
+       bfd_mach_sh4.
+
+2009-10-13  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * arm-tdep.c (arm_push_dummy_call): Set the low bit of LR for
+       a Thumb entry point.
+       (thumb_get_next_pc): Handle Thumb-2 and ARM v6 instructions.  Refuse
+       to single step into IT blocks.
+
+2009-10-13  Pedro Alves  <pedro@codesourcery.com>
+
+       * infcall.c (call_function_by_hand): Formatting.
+
+2009-10-13  Tristan Gingold  <gingold@adacore.com>
+
+       * solib-darwin.c: Add an empty line after comment for functions.
+       (struct gdb_dyld_all_image_infos): Improve comment.
+       (DYLD_VERSION): Removed and replaced by ...
+       (DYLD_VERSION_MAX, DYLD_VERSION_MIN): ... New macros.
+       (darwin_dyld_version_ok): New function.
+       (darwin_load_image_infos): Call darwin_dyld_version_ok.
+       (darwin_current_sos): Ditto.
+       (darwin_solib_create_inferior_hook): Ditto.
+
+2009-10-13  Tristan Gingold  <gingold@adacore.com>
+
+       * machoread.c: Add an empty line after comment for functions.
+       (oso_el_compare_name): New function.
+       (macho_add_oso_symfile): New function.
+       (macho_oso_symfile): Use macho_add_oso_symfile.  Sort the oso
+       and optimize accesses to libraries.
+
+2009-10-13  Tristan Gingold  <gingold@adacore.com>
+
+       * objfiles.c (objfile_has_symbols): New function.
+       * objfiles.h (objfile_has_symbols): Add prototype.
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): Call
+       objfile_has_symbols.
+       (reread_symbols): Ditto.
+
+2009-10-12  Jiang Jilin  <freephp@gmail.com>
+
+       * i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
+       instructions support.
+
+2009-10-11  Pedro Alves  <pedro@codesourcery.com>
+
+       * procfs.c (procfs_make_note_section): Go back to only outputing
+       an NT_PSTATUS note when UNIXWARE is defined.
+
+2009-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * features/xinclude.dtd: Correct EMPTY typo.
+
+2009-10-10  Michael Snyder  <msnyder@vmware.com>
+
+       * i386-tdep.c (i386_process_record): Or-equals, not not-equals.
+
+2009-10-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
+       Put "break" statements on their own line.
+
+2009-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (linux_nat_wait_1): Bail out, if TARGET_WNOHANG and
+       we found no event while waiting for a specific LWP.
+       * infrun.c (handle_inferior_event): Handle TARGET_WAITKIND_IGNORE
+       before anything else.
+
+2009-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * procfs.c (procfs_make_note_section): Always output a NT_PSTATUS
+       note when NEW_PROC_API is defined.
+
+2009-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * corelow.c (core_has_fake_pid): New.
+       (core_close): Clear it.
+       (add_to_thread_list): Fake a pid if one is not found on a Solaris
+       core.  Add the inferior here.  Always add the thread, don't use
+       thread_change_ptid.
+       (core_open): Don't add the main thread or the inferior here unless
+       we find that the core had no .reg/NN sections.
+       (get_core_register_section): Handle Solaris cores with fake pids.
+
+       * corelow.c (add_to_thread_list): Fix typo.
+
+2009-10-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       PR gdb/10457
+       * elfread.c (elf_symtab_read): Don't use alloca in a loop.
+       
+2009-10-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * i386-nat.c (i386_stopped_by_hwbp): Remove.
+
+2009-10-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Update following the GDB 7.0 release.
+
+2009-10-07  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       ARI fix: OP eol rule.
+       * doublest.c (floatformat_from_length): Avoid operator at end of line.
+       * dwarf2-frame.c (dwarf2_build_frame_info): Idem.
+       * dwarf2read.c (read_array_order, dwarf_decode_macros): Idem.
+       * eval.c (evaluate_subexp_standard): Idem.
+       * event-loop.c (create_timer, handle_timer_event): Idem.
+       * expprint.c (print_subexp_standard): Idem.
+       * f-exp.y (variable): Idem.
+       * f-typeprint.c (f_print_type): Idem.
+
+2009-10-06  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       ARI fix: OP eol rule.
+       * blockframe.c (find_pc_partial_function): Avoid operator at end of
+       line.
+       * buildsym.c (find_symbol_in_list): Idem.
+       (start_subfile, patch_subfile_names): Idem.
+       * c-exp.y (variable, yylex): Idem.
+       * c-typeprint.c (c_print_type, c_type_print_base): Idem.
+       * c-valprint.c (c_val_print): Idem.
+       * coffread.c (patch_opaque_types, process_coff_symbol): Idem.
+       * corelow.c (core_open): Idem.
+       * cris-tdep.c (move_reg_to_mem_movem_op): Idem.
+       * cli/cli-decode.c (help_cmd_list, find_command_name_length): Idem.
+
+2009-10-06  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       ARI fix: OP eol rule.
+       * ada-exp.y (block_lookup): Avoid operator at end of line.
+       * aix-thread.c (pd_enable): Idem.
+       * alpha-tdep.c (alpha_next_pc): Idem.
+       * arm-tdep.c (arm_skip_prologue, arm_scan_prologue): Idem.
+       (condition_true, coff_sym_is_thumb): Idem.
+
+2009-10-06  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.0 released.
+
+2009-10-06  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       ARI fix: "%p" rule.
+       * target.c (debug_to_thread_architecture): Replace %p by %s using
+       host_address_to_string function.
+
+2009-10-06  Tristan Gingold  <gingold@adacore.com>
+
+       * darwin-nat.c: Add __TEXT __info_plist content.
+       (darwin_attach_pid): Update error message.
+
+2009-10-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * MAINTAINERS: Add Tristan Gingold as Maintainer of the Darwin port.
+
+2009-10-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * MAINTAINERS: Add Jan Kratochvil as Maintainer of the ia64 target.
+
+2009-10-05  Pedro Alves  <pedro@codesourcery.com>
+
+       Revert:
+       2009-10-04  Pedro Alves  <pedro@codesourcery.com>
+       * gdbinit.in: Set data-directory to @srcdir@.
+
+2009-10-04  Pedro Alves  <pedro@codesourcery.com>
+
+       * NEWS: Mention non-stop mode.
+
+2009-10-04  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdbinit.in: Set data-directory to @srcdir@.
+
+2009-10-02  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
+       (SYSCALL_SIGTRAP): New.
+       (status_to_str): Adjust.
+       (get_pending_status): Pending events in lp->waitstatus don't map
+       to any signal.  Simplify.
+       (linux_handle_syscall_trap): New.
+       (linux_handle_extended_wait): When handling PTRACE_EVENT_CLONE
+       events, use linux_ops->to_resume instead of direct ptrace with
+       PTRACE_CONT.  Remove all TRAP_IS_SYSCALL handling.
+       (wait_lwp): Handle syscall traps with linux_handle_syscall_trap,
+       and clear the sysgood bit.
+       (status_callback): Make it clearer and add comments.
+       (cancel_breakpoints_callback): Ignore if LP has waitstatus set.
+       (linux_nat_filter_event): Handle syscall traps with
+       linux_handle_syscall_trap, and clear the sysgood bit.  Move the
+       check for storing siginfo to after handling extended statuses and
+       syscall traps.  Store status in the lwp object.
+       (linux_wait_1): Don't swap the pending status out of the lwp
+       object until after deciding we found an lwp with an interesting
+       event.  Requeue a new pending signal if we find one while getting
+       rid or a pending SIGSTOP we sent ourselves.  Don't clear the
+       sysgood bit here.
+
+       * infrun.c (deal_with_syscall_event): Rename to ...
+       (handle_syscall_event): ... this.  Always context switch and set
+       stop_pc, even if not catching the syscall.  If not catching the
+       syscall, always resume with keep_going.
+       (handle_inferior_event): Adjust.
+
+2009-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix compatibility of --with-system-readline and readline-6.0+.
+       * configure.ac <--with-system-readline> (for readline_echoing_p): New
+       test.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2009-10-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * MAINTAINERS: Move Don Lee to the correct section (Write After
+       Approval).
+
+2009-10-01  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * infcall.c (call_function_by_hand): Add a new cleanup branch for
+       std::terminate breakpoints.
+
+2009-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * ia64-tdep.c (ia64_convert_from_func_ptr_addr): New variable buf.
+       Check first the descriptor memory is readable.
+
+2009-09-29  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-value.c (valpy_string): NULL-terminate 'keywords'.
+
+2009-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
+       instead of CORE_ADDR for "amode".
+
+2009-09-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ia64-tdep.c: Update the comments on how we insert/remove
+       breakpoints for L-X instructions.
+       (ia64_memory_insert_breakpoint, ia64_memory_remove_breakpoint):
+       Update the comments inside these functions.
+
+2009-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gdbarch.sh (displaced_step_hw_singlestep): New callback.
+       * gdbarch.c, gdbarch.h: Regenerate.
+       * arch-utils.c (default_displaced_step_hw_singlestep): New function.
+       * arch-utils.h (default_displaced_step_hw_singlestep): Add prototype.
+
+       * ppc-linux-tdep.c (ppc_displaced_step_hw_singlestep): New function.
+       (rs6000_gdbarch_init): Install it.
+
+       * infrun.c (displaced_step_fixup): Use new callback to determine
+       whether to "step" or "continue" displaced copy.
+       (resume): Likewise.  Do not call maybe_software_singlestep
+       for displaced stepping.
+       (maybe_software_singlestep): Do not handle displaced stepping.
+
+2009-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * eval.c (evaluate_subexp_standard) [OP_OBJC_MSGCALL]: Support
+       platforms that use function descriptors.  Prefer to use function
+       pointer types instead of function types.
+       * linespec.c (decode_objc): Support function descriptors.  Fully
+       initialize SAL result.
+       * objc-lang.c (find_methods): Support function descriptors.
+       Do not require function symbol to point to text section.
+
+       * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): When calling
+       via a function pointer, use the descriptor it points to.
+
+2009-09-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix ia64 breakpoints in the L-X slot.
+       * ia64-tdep.c (ia64_memory_insert_breakpoint): Extend the comment.
+       New variable shadow_slotnum, use it appropriately instead of slotnum.
+       Move shadow_len initialization before SLOTNUM adjustment, cover now the
+       whole remaining bundle.  Error now on breakpoints requested for the
+       slot 2 of L-X bundles.  Better sanity check the requested slot 1 of L-X
+       bundles.
+       (ia64_memory_remove_breakpoint): New variable shadow_slotnum, use it
+       appropriately instead of slotnum.  Warn now on breakpoints requested
+       for the slot 2 of L-X bundles.  Better sanity check the requested slot
+       1 of L-X bundles.  Update the assertio check of PLACED_SIZE.
+       (ia64_breakpoint_from_pc): New variable shadow_slotnum, use it
+       appropriately instead of slotnum.  Move *lenptr initialization before
+       SLOTNUM adjustment, cover now the whole remaining bundle.  Error now
+       on breakpoints requested for the slot 2 of L-X bundles.  Better sanity
+       check the requested slot 1 of L-X bundles.  Simplify the returned
+       expression.
+
+2009-09-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * ia64-tdep.c (ia64_memory_insert_breakpoint): Check the slotnum
+       and the type of instruction before deciding which slot to save
+       in the breakpoint shadown contents.
+
+2009-09-28  Doug Evans  <dje@google.com>
+
+       * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.
+       (TRAP_REMOVE_SYSCALL_FLAG): New macro.
+       (linux_nat_wait_1): Mask off is-syscall bit in wait status for
+       TRAP_IS_SYSCALL before passing value to caller.
+
+2009-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * valops.c (value_assign): Respect parent offset when
+       assigning to a bitfield.
+
+2009-09-28  Hui Zhu  <teawater@gmail.com>
+
+       * i386-tdep.c (i386_process_record): Remove "0x" that
+       don't need.
+
+2009-09-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * s390-tdep.c (op_bctr, op_bctgr, op_bct, op1_bctg, op2_bctg,
+       op_bxh, op1_bxhg, op2_bxhg, op_bxle, op1_bxleg, op2_bxleg,
+       op1_brct, op2_brct, op1_brctg, op2_brctg, op_brxh, op1_brxhg,
+       op2_brxhg, op_brxle, op1_brxlg, op2_brxlg): New enum values.
+       (is_rsi, is_rie): New insn format decoder routines.
+       (s390_displaced_step_fixup): New function.
+       (s390_gdbarch_init): Install displaced stepping routines.
+
 2009-09-27  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*):