[PR gdb/19893] Fix handling of synthetic C++ references
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 3b4b9d362ab8bb00216766bc424f060c56c3f160..7b25bc0d0a535a415e2810c9039073d385fc0bb2 100644 (file)
@@ -1,3 +1,271 @@
+2016-05-31  Martin Galvan  <martin.galvan@tallertechnologies.com>
+
+       PR c++/19893
+       * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
+       fetch_const_value_from_synthetic_pointer): New functions.
+       (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
+       (pieced_value_funcs): Implement coerce_ref.
+       * valops.c (value_addr): Call coerce_ref for synthetic references.
+       * valprint.c (valprint_check_validity): Return true for synthetic
+       references.  Also, don't show "<synthetic pointer>" if they reference
+       addressable values.
+       (generic_val_print_ref): Handle synthetic references.  Also move some
+       code to print_ref_address.
+       (print_ref_address, get_value_addr_contents): New functions.
+
+2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR c++/15231
+       * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
+       (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
+       (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
+       (read_call_site_scope): Adjust callers.
+       (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
+       (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
+
+2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
+       * dwarf2read.c (enum pc_bounds_kind) New.
+       (dwarf2_get_pc_bounds): Use it in the declaration.
+       (process_psymtab_comp_unit_reader): Adjust caller.  Rename has_pc_info
+       to cu_bounds_kind.
+       (read_func_scope, read_lexical_block_scope, read_call_site_scope):
+       Adjust callers.
+       (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
+       (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
+
+2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * NEWS (QCatchSyscalls): Remove the parameter.  Include ...
+       (QCatchSyscalls:1 in qSupported) ... this separate entry which got
+       deleted.
+
+2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * NEWS (N stop reply): Remove empty line.
+
+2016-05-28  Alan Modra  <amodra@gmail.com>
+
+       * compile/compile-object-load.c (link_callbacks_multiple_definition,
+       link_callbacks_warning, link_callbacks_undefined_symbol,
+       link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
+       link_callbacks_reloc_dangerous,
+       link_callbacks_unattached_reloc): Return void.
+
+2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * opencl-lang.c (evaluate_subexp_opencl): If
+       EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
+       the returned value in the STRUCTOP_STRUCT case.
+
+2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
+       mode, forward the VALUE_LVAL attribute to the returned value in
+       the STRUCTOP_PTR case.
+
+2016-05-25  Tom Tromey  <tom@tromey.com>
+
+       * python/py-value.c (value_object_as_number): Use correct spelling
+       of HAVE_LIBPYTHON2_4.
+
+2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * f-typeprint.c (f_type_print_base): Replace 0 by show.
+
+2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * f-typeprint.c (f_type_print_base): Decrease show by one.
+
+2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
+
+2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * f-typeprint.c (f_type_print_base): Take print level into account.
+
+2016-05-24  Tom Tromey  <tom@tromey.com>
+
+       PR python/17386:
+       * python/py-value.c (value_object_as_number): Add
+       nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
+
+2016-05-24  Tom Tromey  <tom@tromey.com>
+
+       * python/py-value.c (value_object_as_number): Add
+       nb_inplace_divide for Python 2.
+
+2016-05-23  Tom Tromey  <tom@tromey.com>
+
+       PR python/17981:
+       * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
+       when there are no breakpoints.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
+       resumed, and add the thread to GDB's thread list.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-nat.c (get_pending_status): If the thread reported the
+       event to the core and it's pending, use the pending status signal
+       number.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-nat.c (lwp_lwpid_htab): New htab.
+       (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
+       (lwp_lwpid_htab_add_lwp): New functions.
+       (lwp_list): Tweak comment.
+       (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
+       functions.
+       (purge_lwp_list): Rewrite, using htab_traverse_noresize.
+       (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
+       (delete_lwp): Use lwp_list_remove.  Remove htab too.
+       (find_lwp_pid): Search in htab.
+       (_initialize_linux_nat): Call lwp_lwpid_htab_create.
+       * linux-nat.h (struct lwp_info) <prev>: New field.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-nat.c (lwp_lwpid_htab): New htab.
+       (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
+       (lwp_lwpid_htab_add_lwp): New functions.
+       (lwp_list): Tweak comment.
+       (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
+       functions.
+       (purge_lwp_list): Rewrite, using htab_traverse_noresize.
+       (add_initial_lwp): Add lwp to htab too.  Use lwp_list_add.
+       (delete_lwp): Use lwp_list_remove.  Remove htab too.
+       (find_lwp_pid): Search in htab.
+       (_initialize_linux_nat): Call lwp_lwpid_htab_create.
+       * linux-nat.h (struct lwp_info) <prev>: New field.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
+       field.
+       (linux_nat_update_thread_list): Don't fetch the core if already
+       known.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-tdep.c (find_mapping_size): Delete.
+       (linux_vsyscall_range_raw): Rewrite reading from
+       /proc/PID/task/PID/maps directly instead of using
+       gdbarch_find_memory_regions.
+
+2016-05-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19828
+       * linux-nat.c (report_thread_events): New global.
+       (linux_handle_extended_wait): Report
+       TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
+       enabled.
+       (wait_lwp, linux_nat_filter_event): Report all thread exits if
+       thread event reporting is enabled.  Remove comment.
+       (filter_exit_event): New function.
+       (linux_nat_wait_1): Use it.
+       (linux_nat_thread_events): New function.
+       (linux_nat_add_target): Install it as target_thread_events method.
+
+2016-05-24  Yan-Ting Lin  <currygt52@gmail.com>
+
+       * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
+
+2016-05-23  Yao Qi  <yao.qi@arm.com>
+
+       * arch-utils.c (default_code_of_frame_writable): New function.
+       * arch-utils.h (default_code_of_frame_writable): Declare.
+       * arm-tdep.c (arm_code_of_frame_writable): New function.
+       (arm_gdbarch_init): Install gdbarch method
+       code_of_frame_writable if the target is M-profile.
+       * frame.c (skip_unwritable_frames): New function.
+       * frame.h (skip_unwritable_frames): Declare.
+       * gdbarch.sh (code_of_frame_writable): New.
+       * gdbarch.c, gdbarch.h: Re-generated.
+       * infcmd.c (finish_command): Call skip_unwritable_frames.
+
+2016-05-23  Tom Tromey  <tom@tromey.com>
+
+       PR python/19438, PR python/18393:
+       * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
+       * python/py-progspace.c (pspy_initialize): Initialize self->dict.
+
+2016-05-23  Gary Benson  <gbenson@redhat.com>
+
+       * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
+       * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
+       Remove field.
+       (try_thread_db_load_1): Remove td_thr_validate initialization.
+
+2016-05-23  Jon Boden  <jon@ubuntubsd.org>  (tiny change)
+
+       * configure.ac: Search for libutil-freebsd as alternative to libutil.
+       * configure: Re-generated.
+
+2016-05-19  Andreas Schwab  <schwab@suse.de>
+
+       * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
+       (libunwind_frame_set_descr): Likewise.
+       (libunwind_frame_cache): Likewise.
+       (libunwind_frame_dealloc_cache): Likewise.
+       (libunwind_frame_sniffer): Likewise.
+       (libunwind_search_unwind_table): Likewise.
+       (libunwind_sigtramp_frame_sniffer): Likewise.
+       (libunwind_get_reg_special): Likewise.
+       (libunwind_load): Likewise.
+       * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
+       (ia64_linux_store_register): Likewise.
+       (ia64_linux_xfer_partial): Likewise.
+       * ia64-tdep.c (ia64_access_reg): Likewise.
+       (ia64_access_fpreg): Likewise.
+       (ia64_access_rse_reg): Likewise.
+       (ia64_access_rse_fpreg): Likewise.
+
+2016-05-18  Tom Tromey  <tom@tromey.com>
+
+       * rust-lang.c (rust_subscript): Initialize "high".
+
+2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       PR gdb/20045
+       * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
+       of target_is_async_p.
+
+2016-05-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       PR gdb/18077
+       * mi/mi-main.c (run_one_inferior): Use run target to determine
+       whether to run async or not.
+       (mi_cmd_exec_run): Likewise.
+
+2016-05-17  Tom Tromey  <tom@tromey.com>
+
+       * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
+       * rust-lang.c: Don't include f-lang.h.
+       (rust_range, rust_compute_range, rust_subscript)
+       (rust_evaluate_subexp): Update.
+       * rust-exp.y: Don't include f-lang.h.
+       (ast_range, convert_ast_to_expression): Update.
+       * parse.c (operator_length_standard): Update.
+       * f-lang.h (enum f90_range_type): Move to expression.h.
+       * f-exp.y: Use OP_RANGE.
+       * expression.h (enum range_type): New enum; renamed from
+       f90_range_type.
+       * expprint.c: Don't include f-lang.h.
+       (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
+       * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
+
 2016-05-17  Tom Tromey  <tom@tromey.com>
 
        * NEWS: Add Rust item.
This page took 0.035953 seconds and 4 git commands to generate.