* value.c (value_primitive_field): Handle virtual base classes.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 52e0d74a8f3a7ddfc7af45861be88f39c0b48b10..b511e1a90b40924c3bcfb858beaba1102fc4f8c5 100644 (file)
@@ -1,3 +1,412 @@
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * value.c (value_primitive_field): Handle virtual base classes.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * gdbtypes.h (struct vbase): Remove.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * c-valprint.c (print_function_pointer_address): Move...
+       * valprint.c: ... here.  Make non-static.
+       * m2-valprint.c (print_function_pointer_address): Remove.
+       * valprint.h (print_function_pointer_address): Declare.
+
+2012-03-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Document the fact that one can provide a condition when
+       creating an Ada exception catchpoint.
+
+2012-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * valprint.c (val_print_type_code_flags): Fix placement of
+       trailing brace.
+
+2012-03-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
+       (update_files): Do not set MULTILINE_COMMENT_PREFIXES
+       environment variable before calling update-copyright.
+
+2012-03-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * gnulib/extra/update-copyright: Update to the latest from
+       gnulib's git repository.
+       * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
+       variable to 2 instead of 1.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * varobj.c (c_value_of_variable): Remove dead code.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lex.p (processId): Do not modify already encoded IDs.
+       Update function documentation.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.h (ada_find_renaming_symbol): Replace parameter
+       "name" with "struct symbol *name_sym".
+       * ada-exp.y (write_var_or_type): Update call to
+       ada_find_renaming_symbol.
+       "name" with "struct symbol *name_sym". Adjust Implementation
+       accordingly.  Adjust the function documentation.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
+       * ada-lang.c (ada_find_any_type): Add advance declaration.
+       Make static.  Replace ada_find_any_symbol by
+       ada_find_any_type_symbol.
+       (ada_find_any_type_symbol): Renames ada_find_any_symbol.
+       Improve function description.  Make static.
+       (ada_find_renaming_symbol, find_old_style_renaming_symbol):
+       Replace ada_find_any_symbol by ada_find_any_type_symbol.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (struct tag_args): Delete.
+       (ada_get_tsd_type): Function body moved up in source file.
+       (ada_tag_name_1, ada_tag_name_2): Delete.
+       (ada_get_tsd_from_tag): New function.
+       (ada_tag_name_from_tsd): New function.
+       (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
+       to determine the tag name.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
+       declaration.
+       * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
+       function.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
+       full searches.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (constrained_packed_array_type): If there is a
+       parallel XA type, use it to determine the array index type.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-valprint.c (ada_val_print_1): If our value is a reference
+       to an array descriptor, dereference it before converting it
+       to a simple array.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
+       creating fixed value.
+       (ada_value_ind, ada_coerce_ref, assign_component)
+       (ada_evaluate_subexp): Remove call to unwrap_value before
+       call to ada_to_fixed_value.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (to_fixed_array_type): Set result's type name.
+
+2012-02-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (catch_ada_exception_command_split): Add new
+       argument cond_string.  Add support for condition at end of
+       "catch exception" commands.
+       (ada_decode_exception_location): Add new argument cond_string.
+       Update call to catch_ada_exception_command_split.
+       (create_ada_exception_catchpoint): Add new argument cond_string.
+       Set the breakpoint condition if needed.
+       (catch_ada_exception_command): Update call to
+       ada_decode_exception_location.
+       (ada_decode_assert_location): Add function documentation.
+       Add support for condition at end of "catch assert" command.
+       (catch_assert_command): Update calls to ada_decode_assert_location
+       and create_ada_exception_catchpoint.
+
+2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix disp-step-syscall.exp: fork: single step over fork.
+       * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
+       (i386_linux_get_syscall_number_from_regcache): ... here, new function
+       comment, change parameters gdbarch and ptid to regcache.  Remove
+       parameter regcache, initialize gdbarch from regcache here.
+       (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
+       New functions.
+       (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
+       instead.
+       * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
+       'syscall'.  Make the 'int' check more strict.
+
+2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
+       * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
+       (i386_linux_intx80_sysenter_syscall_record): ... here.
+       (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
+       Use the renamed function name.
+
+2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
+       * breakpoint.c (until_break_command): Likewise.
+       * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
+       * infcall.c (call_function_by_hand): Likewise.
+       * infcmd.c (finish_forward): Likewise.
+       * infrun.c (insert_exception_resume_breakpoint): Likewise.
+
+2012-02-28  Joel Brobecker  <brobecker@adacore.com>
+
+       From Tristan Gingold  <gingold@adacore.com>.
+       * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
+       avoid variable assignments inside condition.
+
+2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix static analysis issue found by cppcheck.
+       * microblaze-tdep.c (microblaze_extract_return_value): Fix
+       uninitialized BUF for size 2.
+
+2012-02-27  Chris Dearman  <chris@mips.com>
+            Nathan Froyd  <froydnj@codesourcery.com>
+            Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
+       (mips16_instruction_has_delay_slot): Likewise.
+       (mips_segment_boundary): Likewise.
+       (mips_adjust_breakpoint_address): Likewise.
+       (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
+
+2012-02-27  Maciej W. Rozycki  <macro@mips.com>
+            Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): Don't proceed through
+       shared library trampolines if stepping at the machine
+       instruction level.
+
+2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
+       too.
+
+2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
+       (sh_stub_unwind_sniffer): New functions.
+       (sh_stub_unwind): New variable.
+       (sh_gdbarch_init): Wire everything.
+
+2012-02-27  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (pid_is_stopped): Delete, moved to common/.
+       (linux_nat_post_attach_wait): Adjust to use
+       linux_proc_pid_is_stopped.
+       * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
+       * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
+       based on pid_is_stopped from both linux-nat.c and
+       gdbserver/linux-low.c, and renamed.
+
+2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * remote.c (remote_watchpoint_addr_within_range): New function.
+       (init_remote_ops): Use it.
+
+2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * target.h (target_watchpoint_addr_within_range): Document macro.
+
+2012-02-24  Pedro Alves  <palves@redhat.com>
+
+       * stack.c (set_last_displayed_sal): Issue internal_error instead
+       of warning, and issue it after clearing the last displayed sal.
+
+2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (until_break_command): Install breakpoints after
+       all frame manipulations.
+
+2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
+
+       * remote.c (remote_supports_cond_breakpoints): New forward
+       declaration.
+       (remote_add_target_side_condition): New function.
+       (remote_insert_breakpoint): Add target-side breakpoint
+       conditional if supported.
+       (remote_insert_hw_breakpoint): Likewise.
+       (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
+       hook.
+
+       * target.c (update_current_target): Inherit
+       to_supports_evaluation_of_breakpoint_conditions.
+       Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
+
+       * target.h (struct target_ops)
+       <to_supports_evaluation_of_breakpoint_conditions>: New field.
+       (target_supports_evaluation_of_breakpoint_conditions): New #define.
+
+       * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
+       (condition_evaluation_both, condition_evaluation_auto,
+       condition_evaluation_host, condition_evaluation_target,
+       condition_evaluation_enums, condition_evaluation_mode_1,
+       condition_evaluation_mode): New static globals.
+       (translate_condition_evaluation_mode): New function.
+       (breakpoint_condition_evaluation_mode): New function.
+       (gdb_evaluates_breakpoint_condition_p): New function.
+       (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
+       (mark_breakpoint_modified): New function.
+       (mark_breakpoint_location_modified): New function.
+       (set_condition_evaluation_mode): New function.
+       (show_condition_evaluation_mode): New function.
+       (bp_location_compare_addrs): New function.
+       (get_first_location_gte_addr): New helper function.
+       (set_breakpoint_condition): Free condition bytecode if locations
+       has become unconditional.  Call mark_breakpoint_modified (...).
+       (condition_command): Call update_global_location_list (1) for
+       breakpoints.
+       (breakpoint_xfer_memory): Use is_breakpoint (...).
+       (is_breakpoint): New function.
+       (parse_cond_to_aexpr): New function.
+       (build_target_condition_list): New function.
+       (insert_bp_location): Handle target-side conditional
+       breakpoints and call build_target_condition_list (...).
+       (update_inserted_breakpoint_locations): New function.
+       (insert_breakpoint_locations): Handle target-side conditional
+       breakpoints.
+       (bpstat_check_breakpoint_conditions): Add comment.
+       (bp_condition_evaluator): New function.
+       (bp_location_condition_evaluator): New function.
+       (print_breakpoint_location): Print information on where the condition
+       will be evaluated.
+       (print_one_breakpoint_location): Likewise.
+       (init_bp_location): Call mark_breakpoint_location_modified (...) for
+       breakpoint location.
+       (force_breakpoint_reinsertion): New functions.
+       (update_global_location_list): Handle target-side breakpoint
+       conditions.
+       Reinsert locations that are already inserted if conditions have
+       changed.
+       (bp_location_dtor): Free agent expression bytecode.
+       (disable_breakpoint): Call mark_breakpoint_modified (...).
+       Call update_global_location_list (...) with parameter 1 for breakpoints.
+       (disable_command): Call mark_breakpoint_location_modified (...).
+       Call update_global_location_list (...) with parameter 1 for breakpoints.
+       (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
+       (enable_command): mark_breakpoint_location_modified (...).
+       (_initialize_breakpoint): Update documentation and add
+       condition-evaluation breakpoint subcommand.
+
+       * breakpoint.h: Include ax.h.
+       (condition_list): New data structure.
+       (condition_status): New enum.
+       (bp_target_info) <cond_list>: New field.
+       (bp_location) <condition_changed, cond_bytecode>: New fields.
+       (is_breakpoint): New prototype.
+
+2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
+
+       * remote.c (remote_state) <cond_breakpoints>: New field.
+       (PACKET_ConditionalBreakpoints): New enum.
+       (remote_cond_breakpoint_feature): New function.
+       (remote_protocol_features): Add new ConditionalBreakpoints entry.
+       (remote_supports_cond_breakpoints): New function.
+       (_initialize_remote): Add new packet configuration for
+       target-side conditional breakpoints.
+
+2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
+
+       * NEWS: Mention target-side conditional breakpoint support,
+       new condition-evaluation breakpoint subcommand and remote
+       packet extensions.
+
+2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
+
+       * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
+       number.
+
+2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
+       (after_prologue): Remove.
+
+2012-02-23  Tom Tromey  <tromey@redhat.com>
+
+       * jv-valprint.c (java_val_print): Remove dead code.
+
+2012-02-23  Tristan Gingold  <gingold@adacore.com>
+
+       * ada-tasks.c (struct ada_tasks_inferior_data): Add
+        known_tasks_element and known_tasks_length fields.
+        (read_known_tasks_array): Change argument type.  Use pointer type
+        and number of elements from DATA.  Adjust.
+        (read_known_tasks_list): Likewise.
+        (get_known_tasks_addr): Remove.
+        (ada_set_current_inferior_known_tasks_addr): Renamed to ...
+        (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
+        type and array length.  Merge former get_known_tasks_addr code.
+
+2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR backtrace/13716
+       * infcmd.c (finish_forward): New variable frame_id, initialize it, use
+       it after set_momentary_breakpoint.
+
+2012-02-22  Sterling Augustine  <saugustine@google.com>
+
+       PR 13689:
+       * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
+
+2012-02-22  Gary Benson  <gbenson@redhat.com>
+
+       * dwarf2read.c (dwarf2_read_index): Correct misspelling.
+       (find_slot_in_mapped_hash): Likewise.
+
+2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR build/13638
+       * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
+       (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
+       * configure: Regenerate.
+
+2012-02-21  Tristan Gingold  <gingold@adacore.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * ia64-tdep.c: Do not include libunwind-ia64.h.
+       * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
+       Include libunwind-ia64.h instead of libunwind.h.
+       * configure.ac (--with-libunwind, $enable_libunwind): Don't check
+       for libunwind.h existence.
+       * configure, config.in: Regenerate.
+
+2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
+
+       * c-valprint.c (c_value_print): Use value_rtti_indirect_type
+       instead of value_rtti_target_type.
+       * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
+       instead of value_rtti_target_type.
+       * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
+       value_rtti_target_type.
+       * valops.c (value_ind): Extract function readjust_indirect_value_type.
+       (value_rtti_target_type): Rename to ...
+       (value_rtti_indirect_type): ... here and make it indirect.  Update
+       function comment.
+       * value.c (readjust_indirect_value_type): New function.
+       (coerce_ref): Support for enclosing type setting for references
+       with readjust_indirect_value_type.
+       * value.h (readjust_value_type): New declaration.
+       (value_rtti_target_type): Rename to ...
+       (value_rtti_indirect_type): ... here.
+
+2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
+
+       * MAINTAINERS (Write After Approval): Add myself to the list.
+
 2012-02-20  Doug Evans  <dje@google.com>
 
        * objfiles.c (add_to_objfile_sections): Remove outdated comments.
This page took 0.02796 seconds and 4 git commands to generate.