Add attribute::as_unsigned method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index dcce8212ca09e7ed95658680ed28ef78583a8086..9c161e421f506ac17bf76ccafa162056d706ae58 100644 (file)
@@ -1,3 +1,222 @@
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (dw2_get_file_names_reader)
+       (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
+       (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
+       (dwarf2_symbol_mark_computed): Use as_unsigned.
+       * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
+       method.
+       <form_is_section_offset>: Update comment.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (dwarf2_access_attribute): Rename from
+       dwarf2_default_access_attribute.  Look up attribute.
+       (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
+       Update.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (skip_one_die): Update.
+       (read_full_die_1): Change how reprocessing is done.
+       (partial_die_info::read): Update.
+       (read_attribute_value): Remove need_reprocess parameter.
+       (read_attribute): Likewise.
+       * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
+       New method.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
+       (dwarf2_const_value_attr, dump_die_shallow)
+       (dwarf2_fetch_constant_bytes): Update.
+       * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
+       comment.
+       <set_address>: New method.
+       (DW_ADDR): Remove.
+       * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
+       (attribute::as_string, attribute::as_address): Add assert.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
+       (read_attribute_reprocess, read_attribute_value): Update.
+       (read_attribute): Clear requires_reprocessing.
+       * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
+       form_requires_reprocessing>: New methods.
+       <string_init>: Clear requires_reprocessing.
+       <set_unsigned_reprocess>: New method.
+       <name>: Shrink by one bit.
+       <requires_reprocessing>: New member.
+       * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
+       method.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_attribute_value): Update.
+       * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
+       set_unsigned>: New methods.
+       * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (get_alignment, read_array_order)
+       (read_attribute_value, dwarf2_const_value_attr)
+       (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
+       * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
+       New methods.
+       (DW_SND): Remove.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_attribute_value, lookup_die_type)
+       (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
+       Update.
+       * dwarf2/attribute.h (struct attribute) <as_signature,
+       set_signature>: New methods.
+       (DW_SIGNATURE): Remove.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_call_site_scope)
+       (handle_data_member_location, dwarf2_add_member_fn)
+       (mark_common_block_symbol_computed, attr_to_dynamic_prop)
+       (partial_die_info::read, read_attribute_value)
+       (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
+       (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
+       (dwarf2_symbol_mark_computed): Update.
+       * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
+       methods.
+       (DW_BLOCK): Remove.
+       * dwarf2/attribute.c (attribute::form_is_block): Add
+       DW_FORM_data16.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (read_cutu_die_from_dwo)
+       (read_attribute_reprocess, read_attribute_value, read_attribute)
+       (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
+       (dwarf2_fetch_constant_bytes): Update.
+       * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
+       <set_string_noncanonical, set_string_canonical>: New methods.
+       <string_is_canonical>: Update comment.
+       <canonical_string_p>: Add assert.
+       (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
+       * dwarf2/attribute.c (attribute::form_is_string): New method.
+       (attribute::string): Use it.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
+       (dump_die_shallow): Use canonical_string_p.
+       * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
+       method.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (partial_die_info::read)
+       (dwarf2_const_value_attr, anonymous_struct_prefix, )
+       (dwarf2_name, dwarf2_fetch_constant_bytes): Use
+       attribute::as_string.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
+       DW_ADDR.
+       (attribute::string): Don't use DW_STRING.
+       (attribute::get_ref_die_offset): Don't use DW_UNSND.
+       (attribute::constant_value): Don't use DW_UNSND or DW_SND.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
+       (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
+       (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
+       * dwarf2/attribute.h (struct attribute): Rename methods.
+       * dwarf2/attribute.c (attribute::as_address): Rename from
+       value_as_address.
+       (attribute::as_string): Rename from value_as_string.
+
+2020-09-29  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/read.c (partial_die_info::read) <case
+       DW_AT_linkage_name>: Use value_as_string.
+       (dwarf2_string_attr): Use value_as_string.
+       * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
+       method.
+       * dwarf2/attribute.c (attribute::value_as_string): New method.
+
+2020-09-29  Pedro Alves  <pedro@palves.net>
+
+       * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
+       defined before using '#pragma GCC diagnostic' instead of checking
+       __clang__.
+
+2020-09-28  Tom Tromey  <tom@tromey.com>
+
+       * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
+       (handle_signal_stop): Update.
+       * procfs.c (procfs_target::insert_watchpoint): Update.
+       * target.h (target_have_steppable_watchpoint): Now a function.
+
+2020-09-28  Tom Tromey  <tom@tromey.com>
+
+       * infrun.c (set_schedlock_func): Update.
+       * target.h (target_can_lock_scheduler): Now a function.
+
+2020-09-28  Tom Tromey  <tom@tromey.com>
+
+       * inferior.h (class inferior) <has_execution>: Update.
+       * windows-tdep.c (windows_solib_create_inferior_hook): Update.
+       * valops.c (find_function_in_inferior)
+       (value_allocate_space_in_inferior): Update.
+       * top.c (kill_or_detach): Update.
+       * target.c (target_preopen, set_target_permissions): Update.
+       (target_has_execution_current): Remove.
+       * sparc64-tdep.c (adi_examine_command, adi_assign_command):
+       Update.
+       * solib.c (update_solib_list, reload_shared_libraries): Update.
+       * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
+       * solib-dsbt.c (enable_break): Update.
+       * score-tdep.c (score7_fetch_inst): Update.
+       * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
+       Update.
+       * remote.c (remote_target::start_remote)
+       (remote_target::remote_check_symbols, remote_target::open_1)
+       (remote_target::remote_detach_1, remote_target::verify_memory)
+       (remote_target::xfer_partial, remote_target::read_description)
+       (remote_target::get_min_fast_tracepoint_insn_len): Update.
+       * record-full.c (record_full_open_1): Update.
+       * record-btrace.c (record_btrace_target_open): Update.
+       * objc-lang.c (lookup_objc_class, lookup_child_selector)
+       (value_nsstring): Update.
+       * linux-thread-db.c (add_thread_db_info)
+       (thread_db_find_new_threads_silently, check_thread_db_callback)
+       (try_thread_db_load_1, record_thread): Update.
+       * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
+       Update.
+       * linux-fork.c (checkpoint_command): Update.
+       * infrun.c (set_non_stop, set_observer_mode)
+       (check_multi_target_resumption, for_each_just_stopped_thread)
+       (maybe_remove_breakpoints, normal_stop)
+       (class infcall_suspend_state): Update.
+       * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
+       (info_program_command, attach_command): Update.
+       * infcall.c (call_function_by_hand_dummy): Update.
+       * inf-loop.c (inferior_event_handler): Update.
+       * gcore.c (gcore_command, derive_heap_segment): Update.
+       * exec.c (exec_file_command): Update.
+       * eval.c (evaluate_subexp): Update.
+       * compile/compile.c (compile_to_object): Update.
+       * cli/cli-dump.c (restore_command): Update.
+       * breakpoint.c (update_watchpoint)
+       (update_inserted_breakpoint_locations)
+       (insert_breakpoint_locations, get_bpstat_thread): Update.
+       * target.h (target_has_execution): Remove macro.
+       (target_has_execution_current): Don't declare.
+       (target_has_execution): Rename from target_has_execution_1.  Add
+       argument default.
+
 2020-09-28  Tom Tromey  <tom@tromey.com>
 
        * mi/mi-main.c (exec_reverse_continue)
This page took 0.033378 seconds and 4 git commands to generate.