Fix PR12616 - gdb does not implement DW_AT_data_bit_offset
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 768a1b33af7cb17377856e17489058435487d75f..22f02cccd50e2e89cf168d31a816c6fdc208308c 100644 (file)
@@ -1,3 +1,425 @@
+2016-11-24  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       PR gdb/12616
+       * dwarf2read.c (dwarf2_add_field): Handle the DWARF V4 attribute
+       DW_AT_data_bit_offset.
+
+2016-11-23  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (SFILES): Add common/run-time-clock.c.
+       (HFILES_NO_SRCDIR): Add common/run-time-clock.h.
+       (COMMON_OBS): Add run-time-clock.o.
+       * common/run-time-clock.c, common/run-time-clock.h: New files.
+       * defs.h (struct timeval, print_transfer_performance): Delete
+       declarations.
+       * event-loop.c (struct gdb_timer) <when>: Now a
+       std::chrono::steady_clock::time_point.
+       (create_timer): use std::chrono::steady_clock instead of
+       gettimeofday.  Use new instead of malloc.
+       (delete_timer): Use delete instead of xfree.
+       (duration_cast_timeval): New.
+       (update_wait_timeout): Use std::chrono::steady_clock instead of
+       gettimeofday.
+       * maint.c: Include <chrono> instead of "gdb_sys_time.h", <time.h>
+       and "timeval-utils.h".
+       (scoped_command_stats::~scoped_command_stats)
+       (scoped_command_stats::scoped_command_stats): Use
+       std::chrono::steady_clock instead of gettimeofday.  Use
+       user_cpu_time_clock instead of get_run_time.
+       * maint.h: Include "run-time-clock.h" and <chrono>.
+       (scoped_command_stats): <m_start_cpu_time>: Now a
+       user_cpu_time_clock::time_point.
+       <m_start_wall_time>: Now a std::chrono::steady_clock::time_point.
+       * mi/mi-main.c: Include "run-time-clock.h" and <chrono> instead of
+       "gdb_sys_time.h" and <sys/resource.h>.
+       (rusage): Delete.
+       (mi_execute_command): Use new instead of XNEW.
+       (mi_load_progress): Use std::chrono::steady_clock instead of
+       gettimeofday.
+       (timestamp): Rewrite in terms of std::chrono::steady_clock,
+       user_cpu_time_clock and system_cpu_time_clock.
+       (timeval_diff): Delete.
+       (print_diff): Adjust to use std::chrono::steady_clock,
+       user_cpu_time_clock and system_cpu_time_clock.
+       * mi/mi-parse.h: Include "run-time-clock.h" and <chrono> instead
+       of "gdb_sys_time.h".
+       (struct mi_timestamp): Change fields types to
+       std::chrono::steady_clock::time_point, user_cpu_time_clock::time
+       and system_cpu_time_clock::time_point, instead of struct timeval.
+       * symfile.c: Include <chrono> instead of <time.h> and
+       "gdb_sys_time.h".
+       (struct time_range): New.
+       (generic_load): Use std::chrono::steady_clock instead of
+       gettimeofday.
+       (print_transfer_performance): Replace timeval parameters with a
+       std::chrono::steady_clock::duration parameter.  Adjust.
+       * utils.c: Include <chrono> instead of "timeval-utils.h",
+       "gdb_sys_time.h", and <time.h>.
+       (prompt_for_continue_wait_time): Now a
+       std::chrono::steady_clock::duration.
+       (defaulted_query, prompt_for_continue): Use
+       std::chrono::steady_clock instead of
+       gettimeofday/timeval_sub/timeval_add.
+       (reset_prompt_for_continue_wait_time): Use
+       std::chrono::steady_clock::duration instead of struct timeval.
+       (get_prompt_for_continue_wait_time): Return a
+       std::chrono::steady_clock::duration instead of struct timeval.
+       (vfprintf_unfiltered): Use std::chrono::steady_clock instead of
+       gettimeofday.  Use std::string.  Use '.' instead of ':'.
+       * utils.h: Include <chrono>.
+       (get_prompt_for_continue_wait_time): Return a
+       std::chrono::steady_clock::duration instead of struct timeval.
+
+2016-11-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * Makefile.in: Fix whitespace formatting.
+
+2016-11-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS,
+       HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
+       * alphabsd-nat.c: Rename to ...
+       * alpha-bsd-nat.c: ... this, adjust include.
+       * alphabsd-tdep.c: Rename to ...
+       * alpha-bsd-tdep.c: ... this, adjust include.
+       * alphabsd-tdep.h: Rename to ...
+       * alpha-bsd-tdep.h: ... this, adjust include barrier and comment.
+       * alphafbsd-tdep.c: Rename to ...
+       * alpha-fbsd-tdep.c: ... this.
+       * alphanbsd-tdep.c: Rename to ...
+       * alpha-nbsd-tdep.c: ... this, adjust include.
+       * alphaobsd-tdep.c: Rename to ...
+       * alpha-obsd-tdep.c: ... this, adjust include.
+       * amd64bsd-nat.c: Rename to ...
+       * amd64-bsd-nat.c: ... this, adjust include.
+       * amd64fbsd-nat.c: Rename to ...
+       * amd64-fbsd-nat.c: ... this, adjust include.
+       * amd64fbsd-tdep.c: Rename to ...
+       * amd64-fbsd-tdep.c: ... this, adjust include.
+       * amd64nbsd-nat.c: Rename to ...
+       * amd64-nbsd-nat.c: ... this.
+       * amd64nbsd-tdep.c: Rename to ...
+       * amd64-nbsd-tdep.c: ... this.
+       * amd64obsd-nat.c: Rename to ...
+       * amd64-obsd-nat.c: ... this.
+       * amd64obsd-tdep.c: Rename to ...
+       * amd64-obsd-tdep.c: ... this.
+       * amd64-tdep.h: Update comments.
+       * armbsd-tdep.c: Rename to ...
+       * arm-bsd-tdep.c: ... this.
+       * armnbsd-nat.c: Rename to ...
+       * arm-nbsd-nat.c: ... this.
+       * armnbsd-tdep.c: Rename to ...
+       * arm-nbsd-tdep.c: ... this.
+       * armobsd-tdep.c: Rename to ...
+       * arm-obsd-tdep.c: ... this.
+       * arm-tdep.h: Update comments.
+       * hppabsd-tdep.c: Rename to ...
+       * hppa-bsd-tdep.c: ... this, adjust include.
+       * hppabsd-tdep.h: Rename to ...
+       * hppa-bsd-tdep.h: ... this, adjust include barrier and comment.
+       * hppanbsd-nat.c: Rename to ...
+       * hppa-nbsd-nat.c: ... this.
+       * hppanbsd-tdep.c: Rename to ...
+       * hppa-nbsd-tdep.c: ... this, adjust include.
+       * hppaobsd-nat.c: Rename to ...
+       * hppa-obsd-nat.c: ... this.
+       * hppaobsd-tdep.c: Rename to ...
+       * hppa-obsd-tdep.c: ... this, adjust include.
+       * i386bsd-nat.c: Rename to ...
+       * i386-bsd-nat.c: ... this, adjust include.
+       * i386bsd-nat.h: Rename to ...
+       * i386-bsd-nat.h: ... this, adjust include barrier and comment.
+       * i386bsd-tdep.c: Rename to ...
+       * i386-bsd-tdep.c: ... this.
+       * i386fbsd-nat.c: Rename to ...
+       * i386-fbsd-nat.c: ... this, adjust include.
+       * i386fbsd-tdep.c: Rename to ...
+       * i386-fbsd-tdep.c: ... this, adjust include.
+       * i386fbsd-tdep.h: Rename to ...
+       * i386-fbsd-tdep.h: ... this, adjust include barrier and comment.
+       * i386gnu-nat.c: Rename to ...
+       * i386-gnu-nat.c: ... this.
+       * i386gnu-tdep.c: Rename to ...
+       * i386-gnu-tdep.c: ... this.
+       * i386nbsd-nat.c: Rename to ...
+       * i386-nbsd-nat.c: ... this, adjust include.
+       * i386nbsd-tdep.c: Rename to ...
+       * i386-nbsd-tdep.c: ... this.
+       * i386obsd-nat.c: Rename to ...
+       * i386-obsd-nat.c: ... this, adjust include.
+       * i386obsd-tdep.c: Rename to ...
+       * i386-obsd-tdep.c: ... this.
+       * i386v4-nat.c: Rename to ...
+       * i386-v4-nat.c: ... this.
+       * i386-tdep.h: Update comments.
+       * m68k-tdep.h: Update comments.
+       * m68kbsd-nat.c: Rename to ...
+       * m68k-bsd-nat.c: ... this.
+       * m68kbsd-tdep.c: Rename to ...
+       * m68k-bsd-tdep.c: ... this.
+       * m68klinux-nat.c: Rename to ...
+       * m68k-linux-nat.c: ... this.
+       * m68klinux-tdep.c: Rename to ...
+       * m68k-linux-tdep.c: ... this.
+       * m88kbsd-nat.c: Rename to ...
+       * m88k-bsd-nat.c: ... this.
+       * mipsnbsd-nat.c: Rename to ...
+       * mips-nbsd-nat.c: ... this, adjust include.
+       * mipsnbsd-tdep.c: Rename to ...
+       * mips-nbsd-tdep.c: ... this, adjust include.
+       * mipsnbsd-tdep.h: Rename to ...
+       * mips-nbsd-tdep.h: ... this, adjust include barrier and comment.
+       * mips64obsd-nat.c: Rename to ...
+       * mips64-obsd-nat.c: ... this.
+       * mips64obsd-tdep.c: Rename to ...
+       * mips64-obsd-tdep.c: ... this.
+       * ppcfbsd-nat.c: Rename to ...
+       * ppc-fbsd-nat.c: ... this, adjust include.
+       * ppcfbsd-tdep.c: Rename to ...
+       * ppc-fbsd-tdep.c: ... this, adjust include.
+       * ppcfbsd-tdep.h: Rename to ...
+       * ppc-fbsd-tdep.h: ... this, adjust include barrier and comment.
+       * ppcnbsd-nat.c: Rename to ...
+       * ppc-nbsd-nat.c: ... this, adjust include.
+       * ppcnbsd-tdep.c: Rename to ...
+       * ppc-nbsd-tdep.c: ... this, adjust include.
+       * ppcnbsd-tdep.h: Rename to ...
+       * ppc-nbsd-tdep.h: ... this, adjust include barrier and comment.
+       * ppcobsd-nat.c: Rename to ...
+       * ppc-obsd-nat.c: ... this, adjust include.
+       * ppcobsd-tdep.c: Rename to ...
+       * ppc-obsd-tdep.c: ... this, adjust include.
+       * ppcobsd-tdep.h: Rename to ...
+       * ppc-obsd-tdep.h: ... this, adjust include barrier and comment.
+       * shnbsd-nat.c: Rename to ...
+       * sh-nbsd-nat.c: ... this.
+       * shnbsd-tdep.c: Rename to ...
+       * sh-nbsd-tdep.c: ... this.
+       * sparcnbsd-nat.c: Rename to ...
+       * sparc-nbsd-nat.c: ... this.
+       * sparcnbsd-tdep.c: Rename to ...
+       * sparc-nbsd-tdep.c: ... this.
+       * sparcobsd-tdep.c: Rename to ...
+       * sparc-obsd-tdep.c: ... this.
+       * sparc64fbsd-nat.c: Rename to ...
+       * sparc64-fbsd-nat.c: ... this.
+       * sparc64fbsd-tdep.c: Rename to ...
+       * sparc64-fbsd-tdep.c: ... this.
+       * sparc64nbsd-nat.c: Rename to ...
+       * sparc64-nbsd-nat.c: ... this.
+       * sparc64nbsd-tdep.c: Rename to ...
+       * sparc64-nbsd-tdep.c: ... this.
+       * sparc64obsd-nat.c: Rename to ...
+       * sparc64-obsd-nat.c: ... this.
+       * sparc64obsd-tdep.c: Rename to ...
+       * sparc64-obsd-tdep.c: ... this.
+       * sparc64-tdep.h: Update comments.
+       * vaxbsd-nat.c: Rename to ...
+       * vax-bsd-nat.c: ... this.
+       * vaxnbsd-tdep.c: Rename to ...
+       * vax-nbsd-tdep.c: ... this.
+       * vaxobsd-tdep.c: Rename to ...
+       * vax-obsd-tdep.c: ... this.
+       * x86bsd-nat.h: Rename to ...
+       * x86-bsd-nat.h: ... this, adjust include barrier and comment.
+       * x86bsd-nat.c: Rename to ...
+       * x86-bsd-nat.c: ... this, adjust include.
+       * configure.tgt: Update renamed files.
+       * config/alpha/fbsd.mh: Update renamed files.
+       * config/alpha/nbsd.mh: Update renamed files.
+       * config/arm/nbsdelf.mh: Update renamed files.
+       * config/djgpp/fnchange.lst: Update renamed files.
+       * config/i386/fbsd.mh: Update renamed files.
+       * config/i386/fbsd64.mh: Update renamed files.
+       * config/i386/i386gnu.mh: Update renamed files.
+       * config/i386/i386sol2.mh: Update renamed files.
+       * config/i386/nbsd64.mh: Update renamed files.
+       * config/i386/nbsdelf.mh: Update renamed files.
+       * config/i386/obsd.mh: Update renamed files.
+       * config/i386/obsd64.mh: Update renamed files.
+       * config/i386/sol2-64.mh: Update renamed files.
+       * config/m68k/linux.mh: Update renamed files.
+       * config/m68k/nbsdelf.mh: Update renamed files.
+       * config/m68k/obsd.mh: Update renamed files.
+       * config/m88k/obsd.mh: Update renamed files.
+       * config/mips/nbsd.mh: Update renamed files.
+       * config/mips/obsd64.mh: Update renamed files.
+       * config/pa/nbsd.mh: Update renamed files.
+       * config/pa/obsd.mh: Update renamed files.
+       * config/powerpc/fbsd.mh: Update renamed files.
+       * config/powerpc/nbsd.mh: Update renamed files.
+       * config/powerpc/obsd.mh: Update renamed files.
+       * config/sh/nbsd.mh: Update renamed files.
+       * config/sparc/fbsd.mh: Update renamed files.
+       * config/sparc/nbsd64.mh: Update renamed files.
+       * config/sparc/nbsdelf.mh: Update renamed files.
+       * config/sparc/obsd64.mh: Update renamed files.
+       * config/vax/nbsdelf.mh: Update renamed files.
+       * config/vax/obsd.mh: Update renamed files.
+
+2016-11-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * Makefile.in: Add comment about file lists ordering.
+       (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_MI_OBS, SUBDIR_MI_SRCS,
+       SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_GCC_COMPILE_OBS,
+       SUBDIR_GCC_COMPILE_SRCS, SUBDIR_GUILE_OBS, SUBDIR_GUILE_SRCS,
+       SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_GDBTK_OBS,
+       SUBDIR_GDBTK_SRCS, XMLFILES, REMOTE_OBS, ALL_64_TARGET_OBS,
+       ALL_TARGET_OBS, SFILES, HFILES_NO_SRCDIR, HFILES_WITH_SRCDIR,
+       COMMON_OBS, YYFILES, YYOBJ, generated_files, ALLDEPFILES):
+       Flatten list and order alphabetically.
+       * data-directory/Makefile.in: Add comment about file lists
+       ordering.
+       (GEN_SYSCALLS_FILES, PYTHON_FILE_LIST): Flatten list and order
+       alphabetically.
+
+2016-11-22  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
+
+        * contrib/expect-read1.sh: Fix spelling in comments.
+        * gdb_buildall.sh: Fix spelling in comments.
+        * gdb_mbuild.sh: Fix spelling in comments.
+
+2016-11-22  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
+
+        * configure.ac: Fix spelling in comments.
+        * configure: Regenerate.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * gdbarch.sh (software_single_step): Change parameter from frame_info
+       to regcache.
+       * gdbarch.c, gdbarch.h: Regenerated.
+       * aarch64-tdep.c (aarch64_software_single_step): Change parameter
+       from frame_info to regcache.  Don't call get_current_regcache.
+       * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
+       (alpha_software_single_step): Likewise.
+       * alpha-tdep.h (alpha_software_single_step): Update declaration.
+       * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
+       * arm-tdep.c (arm_software_single_step): Likewise.
+       * arm-tdep.h (arm_software_single_step): Likewise.
+       * breakpoint.c (insert_single_step_breakpoint): Pass regcache to
+       gdbarch_software_single_step.
+       * cris-tdep.c (cris_software_single_step): Change parameter from
+       frame_info to regcache.  Don't call get_current_regcache.
+       * mips-tdep.c (mips_software_single_step): Likewise.
+       * mips-tdep.h (mips_software_single_step): Update declaration.
+       * moxie-tdep.c (moxie_software_single_step): Likewise.
+       * nios2-tdep.c (nios2_software_single_step): Likewise.
+       * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update declaration.
+       * rs6000-aix-tdep.c (rs6000_software_single_step): Likewise.
+       * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
+       * s390-linux-tdep.c (s390_software_single_step): Likewise.
+       * sparc-tdep.c (sparc_software_single_step): Likewise.
+       * spu-tdep.c (spu_software_single_step): Likewise.
+       * tic6x-tdep.c (tic6x_software_single_step): Likewise.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * spu-tdep.c (spu_software_single_step): Call get_regcache_arch
+       instead of get_frame_arch.  Call regcache_read_pc instead of
+       get_frame_pc.  Call regcache_raw_get_unsigned instead of
+       get_frame_register_unsigned.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * tic6x-tdep.c (tic6x_condition_true): Replace frame with
+       regcache.  Call regcache_raw_get_signed instead of
+       get_frame_register_signed.
+       (tic6x_get_next_pc): Likewise.  Caller updated.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * rs6000-aix-tdep.c (branch_dest): Replace parameter frame with
+       regcache.  Call get_regcache_arch instead of get_frame_arch.
+       Call regcache_raw_get_unsigned instead of
+       get_frame_register_unsigned.
+       (rs6000_software_single_step): Likewise.
+       * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Call
+       get_regcache_arch instead of get_frame_arch.  Call
+       regcache_read_pc instead of get_frame_pc.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * s390-linux-tdep.c (s390_software_single_step): Call
+       get_regcache_arch instead of get_frame_arch.  Call
+       regcache_read_pc instead of get_frame_pc.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * sparc-tdep.c (sparc_analyze_control_transfer): Replace parameter
+       frame with regcache.  Call get_current_frame.
+       (sparc_software_single_step): Call get_regcache_arch instead of
+       get_frame_arch.  Call regcache_raw_get_unsigned instead of
+       get_frame_register_unsigned.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * nios2-tdep.c (nios2_get_next_pc): Replace parameter frame
+       with regcache.  Call regcache_raw_get_signed instead of
+       get_frame_register_unsigned.
+       (nios2_software_single_step): Call get_regcache_arch
+       instead of get_frame_arch.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * moxie-tdep.c (moxie_software_single_step): Call
+       get_regcache_arch instead of get_frame_arch.  Call
+       regcache_read_pc instead of get_frame_pc.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * mips-tdep.c (mips32_bc1_pc): Replace parameter frame with
+       regcache.  Call regcache_raw_get_unsigned instead of
+       get_frame_register_unsigned.
+       (mips32_next_pc): Likewise.
+       (micromips_bc1_pc): Likewise.
+       (micromips_next_pc): Likewise.
+       (extended_mips16_next_pc): Likewise.
+       (mips16_next_pc): Likewise.
+       (mips_next_pc): Likewise.
+       (mips_software_single_step): Call get_regcache_arch instead
+       of get_frame_arch.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * cris-tdep.c (find_step_target): Replace parameter frame
+       with regcache.  Call get_regcache_arch instead of
+       get_frame_arch.  Call regcache_raw_get_unsigned instead of
+       get_frame_register_unsigned.
+       (cris_software_single_step): Call get_regcache_arch instead
+       of get_frame_arch.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * alpha-tdep.c (alpha_deal_with_atomic_sequence): Call
+       get_regcache_arch instead of get_frame_arch.  Call
+       regcache_read_pc instead of get_frame_pc.
+       (alpha_next_pc): Replace parameter frame with regcache.
+       Call regcache_raw_get_unsigned instead of
+       get_frame_register_unsigned.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_software_single_step): Call
+       get_regcache_arch instead of get_frame_arch.  Call
+       regcache_read_pc instead of get_frame_pc.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (regcache_raw_get_signed): New function.
+       * regcache.h (regcache_raw_get_signed): Declare.
+
+2016-11-22  Yao Qi  <yao.qi@linaro.org>
+
+       * value.c (value_from_component): Use VALUE_NEXT_FRAME_ID
+       instead of VALUE_FROM_ID.
+
+2016-11-21  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * Makefile.in (%o: $(srcdir)/mi/%.c): Add missing POSTCOMPILE
+       step.
+
 2016-11-21  Yao Qi  <yao.qi@linaro.org>
 
        * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
This page took 0.030919 seconds and 4 git commands to generate.