+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ * value.h (value_available_contents_eq): Declare.
+ * value.c (find_first_range_overlap): New function.
+ (value_available_contents_eq): New function.
+ * valprint.c (val_print_array_elements): Use
+ value_available_contents_eq.
+ * ada-valprint.c (val_print_packed_array_elements): Use
+ value_available_contents_eq.
+ * jv-valprint.c (java_value_print): Use
+ value_available_contents_eq.
+
+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ * target.c (target_read_live_memory): New function.
+ (memory_xfer_live_readonly_partial): New.
+ (memory_xfer_partial): If reading from a traceframe, fallback to
+ reading unavailable read-only memory from read-only regions of
+ live target memory.
+ * tracepoint.c (disconnect_tracing): Adjust.
+ (set_current_traceframe): New, factored out from
+ set_traceframe_number.
+ (set_traceframe_number): Reimplement to only change the traceframe
+ number on the GDB side.
+ (do_restore_current_traceframe_cleanup): Adjust.
+ (make_cleanup_restore_traceframe_number): New.
+ (cur_traceframe_number): New global.
+ (tfile_open): Set cur_traceframe_number to no traceframe.
+ (set_tfile_traceframe): New function.
+ (tfile_trace_find): If looking up a traceframe using any method
+ other than by number, make sure the current tfile traceframe
+ matches gdb's current traceframe. Update the current tfile
+ traceframe if the lookup succeeded.
+ (tfile_fetch_registers, tfile_xfer_partial)
+ (tfile_get_trace_state_variable_value): Make sure the remote
+ traceframe matches gdb's current traceframe.
+ * remote.c (remote_traceframe_number): New global.
+ (remote_open_1): Set it to -1.
+ (set_remote_traceframe): New function.
+ (remote_fetch_registers, remote_store_registers)
+ (remote_xfer_memory, remote_xfer_partial)
+ (remote_get_trace_state_variable_value): Make sure the remote
+ traceframe matches gdb's current traceframe.
+ (remote_trace_find): If looking up a traceframe using any method
+ other than by number, make sure the current remote traceframe
+ matches gdb's current traceframe. Update the current remote
+ traceframe if the lookup succeeded.
+ * infrun.c (fetch_inferior_event): Adjust.
+ * tracepoint.h (set_current_traceframe): Declare.
+ (get_traceframe_number, set_traceframe_number): Add describing
+ comments.
+
+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ Mark pieces of values as unavailable if the corresponding memory
+ is unavailable.
+
+ * valops.c: Include tracepoint.h.
+ (value_fetch_lazy): Use read_value_memory.
+ (read_value_memory): New.
+ * value.h (read_value_memory): Declare.
+ * dwarf2loc.c (read_pieced_value): Use read_value_memory.
+ * exec.c (section_table_available_memory): New function.
+ * exec.h (section_table_available_memory): Declare.
+
+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (SFILES): Add memrange.c.
+ (HFILES_NO_SRCDIR): Add memrange.h.
+ (COMMON_OBS): Add memrange.o.
+ * memrange.c: New file.
+ * memrange.h: New file.
+ * tracepoint.c: Include memrange.h.
+ (struct mem_range): Delete.
+ (mem_range_s): Delete.
+ (traceframe_available_memory): New function.
+ * tracepoint.h (traceframe_available_memory): Declare.
+
+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (struct traceframe_info): Forward declare.
+ (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
+ (struct target_ops) <to_traceframe_info>: New field.
+ (target_traceframe_info): New.
+ * target.c (update_current_target): Inherit and default
+ to_traceframe_info.
+ * remote.c (PACKET_qXfer_traceframe_info): New.
+ (remote_protocol_features): Register qXfer:traceframe-info:read.
+ (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
+ (remote_traceframe_info): New.
+ (init_remote_ops): Install it.
+ (_initialize_remote): Install "set/show remote traceframe-info"
+ commands.
+ * tracepoint.h (parse_traceframe_info): Declare.
+ * tracepoint.c (struct mem_range): New.
+ (mem_range_s): New typedef.
+ (struct traceframe_info): New.
+ (traceframe_info): New global.
+ (free_traceframe_info): New function.
+ (clear_traceframe_info): New function.
+ (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
+ info.
+ (build_traceframe_info): New function.
+ (tfile_traceframe_info): New function.
+ (init_tfile_ops): Install tfile_traceframe_info.
+ (traceframe_info_start_memory, free_result): New functions.
+ (memory_attributes, traceframe_info_elements): New globals.
+ (parse_traceframe_info, get_traceframe_info): New functions.
+ * features/traceframe-info.dtd: New file.
+ * Makefile.in (XMLFILES): Add traceframe-info.dtd.
+
+2011-02-14 Pedro Alves <pedro@codesourcery.com>
+
+ Base support for <unavailable> value contents.
+
+ * value.h (value_bytes_available): Declare.
+ (mark_value_bytes_unavailable): Declare.
+ * value.c (struct range): New struct.
+ (range_s): New typedef.
+ (ranges_overlap): New function.
+ (range_lessthan): New function.
+ (ranges_contain_p): New function.
+ (struct value) <unavailable>: New field.
+ (value_bytes_available): New function.
+ (mark_value_bytes_unavailable): New function.
+ (require_not_optimized_out): Constify parameter.
+ (require_available): New function.
+ (value_contents_all, value_contents): Require all bytes be
+ available.
+ (value_free): Free `unavailable'.
+ (value_copy): Copy `unavailable'.
+ * valprint.h (val_print_unavailable): Declare.
+ * valprint.c (valprint_check_validity): Rename `offset' parameter
+ to `embedded_offset'. If printing a scalar, check whether the
+ value chunk is available.
+ (val_print_unavailable): New.
+ (val_print_scalar_formatted): Check whether the value is
+ available.
+ * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
+ pretty-printing unavailable values.
+
+2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix const/volatile qualifiers of C++ types, PR c++/12328.
+ * c-typeprint.c (c_type_print_args): Update the function comment. New
+ variable param_type, initialize it. Remove const/volatile qualifiers
+ for language_cplus and !show_artificial. Use param_type.
+
+2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symtab.c (find_pc_sect_line): New variable objfile, initialize it
+ from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
+ * symtab.h (struct symtab) <next>: Comment extension.
+
+2011-02-12 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in (CLEANDIRS): Remove duplicated common dir.
+
+2011-02-11 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (proceed): Move switching out and in of tfind mode from
+ here ...
+ (fetch_inferior_event): ... to here.
+
+2011-02-11 Yao Qi <yao@codesourcery.com>
+
+ * Makefile.in: Remove signals.o from COMMON_OBS. Link
+ libcommon.a.
+ * configure.ac: Add common to sub dir.
+ * configure: Regenerate.
+
+2011-02-10 Pedro Alves <pedro@codesourcery.com>
+
+ * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
+ side of the parenthesis.
+
+ Merge from GCC:
+ 2010-07-13 Jakub Jelinek <jakub@redhat.com>
+ * vec.h (VEC_block_remove): Fix comment.
+
+2011-02-08 Michael Snyder <msnyder@vmware.com>
+
+ * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
+
+2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
+ in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
+ psubd and paddd.
+
+2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR 12361.
+ * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
+ phsubsw.
+ (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
+ (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
+
+2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * dwarf2read.c (read_subroutine_type): Set special calling
+ convention flag for functions compiled by IBM XL C for OpenCL.
+ * ppc-sysv-tdep.c: Include "dwarf2.h"
+ (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
+ calling convention.
+ (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
+ IBM OpenCL vector types calling convention.
+ (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
+ (ppc_sysv_abi_broken_return_value): Likewise.
+ (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
+ types calling convention.
+ (ppc64_sysv_abi_return_value): Likewise.
+ * spu-tdep.c: Include "dwarf2.h"
+ (spu_return_value): Implement IBM OpenCL vector types calling
+ convention.
+
+2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
+ correct ABI for AltiVec vector arguments.
+
+2011-02-07 Pedro Alves <pedro@codesourcery.com>
+
+ * valprint.c (val_print): Extend comment.
+ * ada-valprint.c (ada_valprint): Rewrite comment deferring
+ interface explanation to val_print.
+ (ada_val_print_array): Adjust comment to current interface.
+ (print_field_values): Adjust comment to current interface.
+ * c-valprint.c (c_val_print): Rewrite comment deferring interface
+ explanation to val_print.
+ * f-valprint.c (f_val_print): Ditto.
+ * jv-valprint.c (java_val_print): Ditto.
+ * m2-valprint.c (m2_val_print): Ditto.
+ * p-valprint.c (pascal_val_print): Ditto.
+
+2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * breakpoint.c (parse_breakpoint_sals): Fix description.
+
+2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
+ Oguz Kayral <oguzkayral@gmail.com>
+
+ * python/py-inferior.c (python_on_normal_stop): New function.
+ (python_on_resume): New function.
+ (python_inferior_exit): New function.
+ (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
+ inferior_exit observers.
+ * python/py-evtregistry.c: New file.
+ * python/py-threadevent.c : New file.
+ * python/py-event.c: New file.
+ * python/py-evts.c: New file.
+ * python/py-continueevent.c: New file.
+ * python/py-bpevent.c: New file.
+ * python/py-signalevent.c: New file.
+ * python/py-exetiedevent.c: New file.
+ * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
+ Move struct breakpoint_object from here...
+ * python/python-internal.h: ... to here.
+ * python/py-event.h: New file.
+ * python/py-events.h: New file.
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
+ py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
+ py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
+ (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
+ py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
+ py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
+ Add build rules for all the above.
+
+2011-02-04 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dwarf2_section_empty_p): New function.
+ (dwarf2_read_section): Use dwarf2_section_empty_p.
+ (dwarf2_section_size): New function.
+ (dwarf2_get_section_info): Unconditionally read section.
+ (dwarf2_read_index): Use dwarf2_section_empty_p.
+ (partial_read_comp_unit_head): Use dwarf2_section_size.
+ (dwarf2_symbol_mark_computed): Likewise.
+
+2011-02-04 David Daney <ddaney@caviumnetworks.com>
+
+ * NEWS: Add item for "catch syscall" on mips*-linux* targets.
+
+2011-02-04 David Daney <ddaney@caviumnetworks.com>
+
+ * mips-linux-tdep.c: Include xml-syscall.h.
+ (mips_linux_get_syscall_number): New function.
+ (mips_linux_init_abi): Add calls to
+ mips_linux_get_syscall_number() and set_xml_syscall_file_name().
+ * data-directory/Makefile.in (SYSCALLS_FILES): Add
+ mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
+ * syscalls/mips-n32-linux.xml: New file.
+ * syscalls/mips-n64-linux.xml: New file.
+ * syscalls/mips-o32-linux.xml: New file.
+
2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
* dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.