Move internal_{,v}warning to common/errors.[ch]
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 59a3db7e7d1a72fcee5879cf891eea93db5825a7..4ce6d87e0ac360fd77cf06dc5b1425170262f2bb 100644 (file)
@@ -1,3 +1,350 @@
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * common/errors.h (internal_warning): New declaration.
+       (internal_vwarning): Likewise.
+       * common/errors.c (internal_warning): New function.
+       * utils.h (internal_warning): Don't declare.
+       (internal_vwarning): Likewise.
+       * utils.c (internal_warning): Removed.
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * main.c (captured_main): Use warning during startup.
+       Prefix startup warning messages with command name.
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * main.c (captured_main): Handle usage errors with error.
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * go32-nat.c (go32_create_inferior): Replace a fprintf/
+       exit pair with a call to error.  Wrap the message with _().
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * main.c (captured_main): Replace a fprintf/exit
+       pair with a call to error.  Wrap the message with _().
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
+       pairs with calls to error.  Wrap the message with _().
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * utils.c (vwarning): Protect calls to target_terminal_ours
+       and wrap_here.
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * exceptions.c (print_flush): Protect calls to
+       target_terminal_ours and wrap_here.
+
+2014-08-29  Gary Benson  <gbenson@redhat.com>
+
+       * utils.h (filtered_printing_initialized): New declaration.
+       * utils.c (abort_with_message): New function.
+       (internal_vproblem): Use abort_with_message for first level
+       recursive internal problems, and if gdb_stderr is not set up.
+       Protect calls to target_terminal_ours, begin_line and query.
+
+2014-08-28  Doug Evans  <dje@google.com>
+
+       * symtab.c (in_prologue): Move definition to better spot.
+       (skip_prologue_using_sal): Ditto.
+
+2014-08-28  Doug Evans  <dje@google.com>
+
+       * symtab.c (find_function_start_sal): Move definition to better spot.
+
+2014-08-28  Yao Qi  <yao@codesourcery.com>
+
+       * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
+       found_stack_adjust in forward scan.  Remove condition check
+       on found_stack_adjust which is always true.  Indent the code.
+
+2014-08-28  Yao Qi  <yao@codesourcery.com>
+
+       * dwarf2read.c (dwarf_decode_lines): Update declaration.
+       (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
+       (dwarf_decode_lines): Remove argument
+       want_line_info.  Remove condition check on want_line_info.
+       Callers update.
+
+2014-08-27  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dwarf_record_line): Fix typo.
+
+2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * target.h (struct target_ops::to_terminal_save_ours): Remove
+       declaration.
+       (target_terminal_save_ours): Remove macro.
+       * target-delegates.c: Regenerate.
+       * inf-child.c (inf_child_target): Don't set the nonexistent
+       field to_terminal_save_ours.
+       * inferior.h (child_terminal_save_ours): Remove declaration.
+       * terminal.h (gdb_save_tty_state): New declaration.
+       * inflow.c (child_terminal_save_ours): Rename to ...
+       (gdb_save_tty_state): ... this.
+       * tui/tui.c: Include terminal.h.
+       (tui_enable): Use gdb_save_tty_state instead of
+       target_terminal_save_ours.
+       (tui_disable): Likewise.
+
+2014-08-25  Doug Evans  <dje@google.com>
+
+       * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
+       Pass NULL instead of 0 for context pointer.
+
+2014-08-25  Yao Qi  <yao@codesourcery.com>
+
+       * dwarf2read.c: Fix grammatical error.
+
+2014-08-24  Yao Qi  <yao@codesourcery.com>
+
+       * dwarf2read.c (scan_partial_symbols):  Update comments.
+       Rename argument 'need_pc' with 'set_addrmap'.
+       (add_partial_namespace): Rename argument 'need_pc' with
+       'set_addrmap'.
+       (add_partial_module): Likewise.
+       (add_partial_subprogram): Likewise.  Update comments.
+       (dwarf2_name): Fix typo.
+
+2014-08-22  Doug Evans  <dje@google.com>
+
+       PR 17276
+       * dwarf2read.c (dwarf_record_line_p): New function.
+       (dwarf_decode_lines_1): Ignore subsequent line number entries
+       for the same line if any entry had a non-zero discriminator.
+
+2014-08-22  Doug Evans  <dje@google.com>
+
+       * buildsym.h (record_line_ftype): New typedef.
+       (record_line): Use it.
+       * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
+       (dwarf_decode_lines_1): Call them.
+
+2014-08-22  Yao Qi  <yao@codesourcery.com>
+
+       * ctf.c (CTF_FILE_MIN_SIZE): Remove.
+       (ctf_end): Remove code.
+
+2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
+       (linux_make_corefile_notes): call update_thread_list, protected against
+       exceptions.
+
+2014-08-21  Pedro Alves  <palves@redhat.com>
+
+       * infcmd.c (attach_command): Remove comment.
+
+2014-08-21  Bin Cheng  <bin.cheng@arm.com>
+
+       * aarch64-linux-nat.c (dr_changed_t): Change the type from
+       unsigned LONGEST to ULONGEST.
+
+2014-08-20  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (check-read1): New rule.
+
+2014-08-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * value.c (value_from_contents_and_address): Strip resolved_type's
+       typedef layers before checking its TYPE_DATA_LOCATION.
+
+2014-08-20  Pedro Alves  <palves@redhat.com>
+
+       * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
+
+2014-08-20  Yao Qi  <yao@codesourcery.com>
+
+       * amd64-tdep.c (amd64_classify): Add a blank line after the
+       example.  Move "*/" to a new line.
+       * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
+       * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
+       * dwarf2read.c (psymtab_include_file_name): Likewise.
+
+2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
+           Pedro Alves  <palves@redhat.com>
+
+       PR symtab/14604
+       PR symtab/14605
+       * ada-lang.c (coerce_unspec_val_to_type): Use
+       value_contents_copy_raw.
+       * ada-valprint.c (val_print_packed_array_elements): Adjust.
+       * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
+       * cp-valprint.c (cp_print_value_fields): Let the common printing
+       code handle optimized out values.
+       (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
+       * d-valprint.c (dynamic_array_type): Use
+       value_bits_any_optimized_out.
+       * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
+       check_any_valid fields.
+       (check_pieced_value_bits): Delete and inline ...
+       (check_pieced_synthetic_pointer): ... here.
+       (check_pieced_value_validity): Delete.
+       (check_pieced_value_invalid): Delete.
+       (pieced_value_funcs): Remove check_validity and check_any_valid
+       fields.
+       (read_pieced_value): Use mark_value_bits_optimized_out.
+       (write_pieced_value): Switch to use
+       mark_value_bytes_optimized_out.
+       (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
+       of assuming the whole value is optimized out.
+       * findvar.c (read_frame_register_value): Remove special handling
+       of optimized out registers.
+       (value_from_register): Use mark_value_bytes_optimized_out.
+       * frame-unwind.c (frame_unwind_got_optimized): Use
+       mark_value_bytes_optimized_out.
+       * jv-valprint.c (java_value_print): Adjust.
+       (java_print_value_fields): Let the common printing code handle
+       optimized out values.
+       * mips-tdep.c (mips_print_register): Remove special handling of
+       optimized out registers.
+       * opencl-lang.c (lval_func_check_validity): Delete.
+       (lval_func_check_any_valid): Delete.
+       (opencl_value_funcs): Remove check_validity and check_any_valid
+       fields.
+       * p-valprint.c (pascal_object_print_value_fields): Let the common
+       printing code handle optimized out values.
+       * stack.c (read_frame_arg): Remove special handling of optimized
+       out values.  Fetch both VAL and ENTRYVAL before comparing
+       contents.  Adjust to value_available_contents_eq rename.
+       * valprint.c (valprint_check_validity)
+       (val_print_scalar_formatted): Use value_bits_any_optimized_out.
+       (val_print_array_elements): Adjust.
+       * value.c (struct value) <optimized_out>: Now a VEC(range_s).
+       (value_bits_any_optimized_out): New function.
+       (value_entirely_covered_by_range_vector): New function, factored
+       out from value_entirely_unavailable.
+       (value_entirely_unavailable): Reimplement.
+       (value_entirely_optimized_out): New function.
+       (insert_into_bit_range_vector): New function, factored out from
+       mark_value_bits_unavailable.
+       (mark_value_bits_unavailable): Reimplement.
+       (struct ranges_and_idx): New struct.
+       (find_first_range_overlap_and_match): New function, factored out
+       from value_available_contents_bits_eq.
+       (value_available_contents_bits_eq): Rename to ...
+       (value_contents_bits_eq): ... this.  Check both unavailable
+       contents and optimized out contents.
+       (value_available_contents_eq): Rename to ...
+       (value_contents_eq): ... this.
+       (allocate_value_lazy): Remove reference to the old optimized_out
+       boolean.
+       (allocate_optimized_out_value): Use
+       mark_value_bytes_optimized_out.
+       (require_not_optimized_out): Adjust to check whether the
+       optimized_out vec is empty.
+       (ranges_copy_adjusted): New function, factored out from
+       value_contents_copy_raw.
+       (value_contents_copy_raw): Also copy the optimized out ranges.
+       Assert the destination ranges aren't optimized out.
+       (value_contents_copy): Update comment, remove call to
+       require_not_optimized_out.
+       (value_contents_equal): Adjust to check whether the optimized_out
+       vec is empty.
+       (set_value_optimized_out, value_optimized_out_const): Delete.
+       (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
+       New functions.
+       (value_entirely_optimized_out, value_bits_valid): Delete.
+       (value_copy): Take a VEC copy of the 'optimized_out' field.
+       (value_primitive_field): Remove special handling of optimized out.
+       (value_fetch_lazy): Assert that lazy values have no unavailable
+       regions.  Use value_bits_any_optimized_out.  Remove some special
+       handling for optimized out values.
+       * value.h: Add intro comment about <optimized out> and
+       <unavailable>.
+       (struct lval_funcs): Remove check_validity and check_any_valid
+       fields.
+       (set_value_optimized_out, value_optimized_out_const): Remove.
+       (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
+       New declarations.
+       (value_bits_any_optimized_out): New declaration.
+       (value_bits_valid): Delete declaration.
+       (value_available_contents_eq): Rename to ...
+       (value_contents_eq): ... this, and extend comments.
+
+2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix -fsanitize=address on unreadable inferior strings.
+       * valprint.c (val_print_string): Fix access before BUFFER.
+
+2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * target.c (target_struct_size): Remove.
+       (target_struct_allocsize): Remove.
+       (DEFAULT_ALLOCSIZE): Remove.
+       (target_ops_p): New typedef.
+       (DEF_VEC_P (target_ops_p)): New vector type.
+       (target_structs): Change type to VEC (target_ops_p).
+       (add_target_with_completer): Replace "push" code by VEC_safe_push.
+       (find_default_run_target): Rewrite for loop following changes to
+       target_structs.
+
+2014-08-19  Joel Brobecker  <brobecker@adacore.com>
+
+       * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
+       Adjust code accordingly.  Adjust function description comment.
+
+2014-08-19  Yao Qi  <yao@codesourcery.com>
+
+       * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
+       types.
+
+2014-08-19  Alan Modra  <amodra@gmail.com>
+
+       * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2014-08-19  Tom Tromey  <tromey@redhat.com>
+           Gary Benson  <gbenson@redhat.com>
+
+       * common/common-debug.h: New file.
+       * common/common-debug.c: Likewise.
+       * debug.c: Likewise.
+       * Makefile.in (SFILES): Add common/common-debug.c.
+       (HFILES_NO_SRCDIR): Add common/common-debug.h.
+       (COMMON_OBS): Add common-debug.o and debug.o.
+       (common-debug.o): New rule.
+       * common/common-defs.h: Include common-debug.h.
+       * common/agent.c (debug_agent_printf): New function.
+       (DEBUG_AGENT): Redefine.
+       * nat/i386-dregs.c (debug_printf): Undefine.
+
+2014-08-19  Gary Benson  <gbenson@redhat.com>
+
+       * common/common-defs.h: Include print-utils.h.
+       * utils.h: Do not include print-utils.h.
+
+2014-08-19  Tom Tromey  <tromey@redhat.com>
+           Gary Benson  <gbenson@redhat.com>
+
+       * common/common-types.h: New file.
+       * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
+       * common/common-defs.h: Include common-types.h.
+       * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
+       (ULONGEST): Remove.
+
+2014-08-19  Tom Tromey  <tromey@redhat.com>
+           Gary Benson  <gbenson@redhat.com>
+
+       * common/errors.h: New file.
+       * common/errors.c: Likewise.
+       * Makefile.in (SFILES): Add common/errors.c.
+       (HFILES_NO_SRCDIR): Add common/errors.h.
+       (COMMON_OBS): Add errors.o.
+       (errors.o): New rule.
+       * common/common-defs.h: Include errors.h.
+       * utils.h (perror_with_name, error, verror, warning, vwarning):
+       Don't declare.
+       * common/common-utils.h: (malloc_failure, internal_error):
+       Likewise.
+
 2014-08-19  Gary Benson  <gbenson@redhat.com>
 
        * utils.c (internal_vproblem): Always print the message.
This page took 0.028053 seconds and 4 git commands to generate.