gdb: fix printing of flag enums with multi-bit enumerators
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index c603987521ea222b1cfd62da4a0a36262fce3ec8..ca9f36474535fe1cbe6d27d3304d64497b1bc121 100644 (file)
@@ -1,3 +1,179 @@
+2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf2/read.c: Include "count-one-bits.h".
+       (update_enumeration_type_from_children): If an enumerator has
+       multiple bits set, don't treat the enumeration as a "flag enum".
+       * valprint.c (generic_val_print_enum_1): Assert that enumerators
+       of flag enums have 0 or 1 bit set.
+
+2020-02-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
+       conversion.
+       * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
+       * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
+       * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
+       * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
+       * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
+
+2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
+
+       * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
+
+2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
+
+       * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
+       displaced_step_closure_up.
+       * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
+       (struct displaced_step_closure_up):
+       * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
+       * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
+       * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
+       Likewise.
+       * gdbarch.sh (displaced_step_copy_insn): Likewise.
+       * gdbarch.c, gdbarch.h: Re-generate.
+       * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
+       displaced_step_closure_up.
+       * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
+       * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
+       * infrun.h (displaced_step_closure_up): New type alias.
+       (struct displaced_step_inferior_state) <step_closure>: Change
+       type to displaced_step_closure_up.
+       * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
+       displaced_step_closure_up.
+       * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
+
+2020-02-14  Tom Tromey  <tom@tromey.com>
+
+       * minidebug.c (gnu_debug_key): New global.
+       (find_separate_debug_file_in_section): Use it.
+
+2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbarch.sh (displaced_step_copy_insn): Change return type to an
+       std::unique_ptr.
+       * gdbarch.c: Re-generate.
+       * gdbarch.h: Re-generate.
+       * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
+       change.
+       * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
+       type to std::unique_ptr.
+       * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
+       * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
+       * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
+       * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
+       * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
+       * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
+       * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
+       * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
+       * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
+
+2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
+
+       * infrun.c (get_displaced_step_closure_by_addr): Adjust to
+       std::unique_ptr.
+       (displaced_step_clear): Rename to...
+       (displaced_step_reset): ... this.  Just call displaced->reset ().
+       (displaced_step_clear_cleanup): Rename to...
+       (displaced_step_reset_cleanup): ... this.
+       (displaced_step_prepare_throw): Adjust to std::unique_ptr.
+       (displaced_step_fixup): Likewise.
+       (resume_1): Likewise.
+       (handle_inferior_event): Restore child's memory before calling
+       displaced_step_fixup on the parent.
+       * infrun.h (displaced_step_inferior_state) <reset>: Adjust
+       to std::unique_ptr.
+       <step_closure>: Change type to std::unique_ptr.
+
+2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
+
+       * arm-tdep.c: Include count-one-bits.h.
+       (cleanup_block_store_pc): Use count_one_bits.
+       (cleanup_block_load_pc): Use count_one_bits.
+       (arm_copy_block_xfer): Use count_one_bits.
+       (thumb2_copy_block_xfer): Use count_one_bits.
+       (thumb_copy_pop_pc_16bit): Use count_one_bits.
+       * arch/arm-get-next-pcs.c: Include count-one-bits.h.
+       (thumb_get_next_pcs_raw): Use count_one_bits.
+       (arm_get_next_pcs_raw): Use count_one_bits_l.
+       * arch/arm.c (bitcount): Remove.
+       * arch/arm.h (bitcount): Remove.
+
+2020-02-14  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
+       Update.
+       * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
+       * dwarf2/loc.c (call_site_find_chain_1): Return
+       unique_xmalloc_ptr.
+       (call_site_find_chain): Likewise.
+
+2020-02-14  Richard Biener  <rguenther@suse.de>
+
+       * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
+       on expression with division operators.
+
+2020-02-13  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
+
+       * MAINTAINERS (Write After Approval): Adding myself.
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * event-loop.c (event_data, gdb_event, event_handler_func):
+       Remove.
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
+       (dwarf2_frame_objfile_data): Add comment.
+       (find_comp_unit, set_comp_unit): New functions.
+       (dwarf2_frame_find_fde): Use find_comp_unit.
+       (dwarf2_build_frame_info): Use set_comp_unit.
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
+       (comp_unit): Don't initialize objfile.
+       (execute_cfa_program): Add text_offset parameter.
+       (execute_cfa_program_test, dwarf2_fetch_cfa_info)
+       (dwarf2_frame_cache): Update.
+       (dwarf2_build_frame_info): Don't set "objfile" member.
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
+       (decode_frame_entry): Likewise.
+       (dwarf2_build_frame_info): Update.
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
+       (decode_frame_entry_1): Use the comp_unit obstack.
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/frame.c (struct comp_unit): Add initializers and
+       constructor.
+       (dwarf2_frame_objfile_data): Store a comp_unit.
+       (dwarf2_frame_find_fde): Update.
+       (dwarf2_build_frame_info): Use "new".
+
+2020-02-12  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
+       (dwarf2_fde_table): Typedef for std::vector.
+       (dwarf2_frame_objfile_data): Remove the deleter.  Now static.
+       (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
+       (decode_frame_entry): Update.
+       (dwarf2_build_frame_info): Use "new".
+
+2020-02-12  Christian Biesinger  <cbiesinger@google.com>
+
+       * arm-tdep.c (arm_gdbarch_init): Update.
+       * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
+       have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
+       have_neon, is_m>: Change to bool.
+
 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
 
        * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
This page took 0.025258 seconds and 4 git commands to generate.