Move low-level Linux x86 debug register code to a shared file
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 7ad050c0bb3744c7169f500e6afd71fa2eda490f..7dcec1fdbe25ca54c116d57e1851cff7372da131 100644 (file)
@@ -1,3 +1,232 @@
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * nat/x86-linux-dregs.h: New file.
+       * nat/x86-linux-dregs.c: Likewise.
+       * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
+       (x86-linux-dregs.o): New rule.
+       * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
+       * config/i386/linux64.mh (NATDEPFILES): Likewise.
+       * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
+       (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
+       (x86_linux_dr_get): Likewise.
+       (x86_linux_dr_set): Likewise.
+       (x86_linux_dr_get_addr): Likewise.
+       (x86_linux_dr_get_control): Likewise.
+       (x86_linux_dr_get_status): Likewise.
+       (update_debug_registers_callback): Likewise.
+       (x86_linux_dr_set_control): Likewise.
+       (x86_linux_dr_set_addr): Likewise.
+       (x86_linux_update_debug_registers): Likewise.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * x86-linux-nat.c (x86_linux_update_debug_registers):
+       New function, factored out from...
+       (x86_linux_prepare_to_resume): ...this.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * x86-linux-nat.c (x86_linux_dr_get): Update comments.
+       (x86_linux_dr_set): Likewise.
+       (x86_linux_dr_get_addr): Likewise.
+       (x86_linux_dr_get_control): Likewise.
+       (x86_linux_dr_get_status): Likewise.
+       (update_debug_registers_callback): Likewise.
+       (x86_linux_dr_set_control): Likewise.
+       (x86_linux_dr_set_addr): Likewise.
+       (x86_linux_prepare_to_resume): Likewise.
+       (x86_linux_new_thread): Likewise.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
+       (x86_linux_new_thread): Rename argument.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * nat/x86-linux.h: New file.
+       * nat/x86-linux.c: Likewise.
+       * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
+       (x86-linux.o): New rule.
+       * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
+       * config/i386/linux64.mh (NATDEPFILES): Likewise.
+       * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
+       (lwp_set_arch_private_info): New declaration.
+       (lwp_arch_private_info): Likewise.
+       * linux-nat.c (lwp_set_arch_private_info): New function.
+       (lwp_arch_private_info): Likewise.
+       * x86-linux-nat.c: Include nat/x86-linux.h.
+       (arch_lwp_info): Removed structure.
+       (update_debug_registers_callback):
+       Use lwp_set_debug_registers_changed.
+       (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
+       and lwp_set_debug_registers_changed.
+       (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * nat/linux-nat.h (ptid_of_lwp): New declaration.
+       (lwp_is_stopped): Likewise.
+       (lwp_stop_reason): Likewise.
+       * linux-nat.c (ptid_of_lwp): New function.
+       (lwp_is_stopped): Likewise.
+       (lwp_is_stopped_by_watchpoint): Likewise.
+       * x86-linux-nat.c (update_debug_registers_callback):
+       Use lwp_is_stopped.
+       (x86_linux_prepare_to_resume): Use ptid_of_lwp and
+       lwp_stop_reason.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * linux-nat.h (linux_stop_lwp): Move declaration to...
+       * nat/linux-nat.h (linux_stop_lwp): New declaration.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * linux-nat.h: Include nat/linux-nat.h.
+       (iterate_over_lwps): Move declaration to nat/linux-nat.h.
+       * nat/linux-nat.h (struct lwp_info): New forward declaration.
+       (iterate_over_lwps_ftype): New typedef.
+       (iterate_over_lwps): New declaration.
+       * linux-nat.h (iterate_over_lwps): Update comment.  Use
+       iterate_over_lwps_ftype.  Update callback return value check.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * x86-nat.h (x86_debug_reg_state): Move declaration to...
+       * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * nat/linux-nat.h (current_lwp_ptid): New declaration.
+       * linux-nat.c (current_lwp_ptid): New function.
+       * x86-linux-nat.c: Include nat/linux-nat.h.
+       (x86_linux_dr_get_addr): Use current_lwp_ptid.
+       (x86_linux_dr_get_control): Likewise.
+       (x86_linux_dr_get_status): Likewise.
+       (x86_linux_dr_set_control): Likewise.
+       (x86_linux_dr_set_addr): Likewise.
+
+2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
+
+       PR breakpoints/16466
+       * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
+
+2015-03-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * ser-mingw.c (ser_windows_setparity): Fix indentation.
+       * ser-unix.c (hardwire_setparity): Likewise.
+
+2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
+
+       * NEWS: Mention set/show serial parity command.
+       * monitor.c (monitor_open): Call serial_setparity.
+       * remote.c (remote_open_1): Likewise.
+       * ser-base.c (ser_base_serparity): New function.
+       * ser-base.h (ser_base_setparity): Add  declaration.
+       * ser-go32.c (dos_ops): Set "setparity" field.
+       * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
+       state.Parity.
+       (ser_windows_setparity): New function.
+       (hardwire_ops): Add ser_windows_setparity.
+       (tty_ops): Add NULL for setparity field.
+       (pipe_ops): Add ser_base_setparity.
+       (tcp_ops): Likewise.
+       * ser-pipe.c (pipe_ops): Likewise.
+       * ser-tcp.c (tcp_ops): Likewise.
+       * ser-unix.c (hardwire_setparity): Add declaration.
+       (hardwire_raw): Don't reset PARENB flag.
+       (hardwire_setparity): New function.
+       (hardwire_ops): Add hardwire_setparity.
+       * serial.c (serial_setparity): New function.
+       (serial_parity): New global.
+       (parity_none, parity_odd, parity_even, parity_enums, parity):
+       New static globals.
+       (set_parity): New function.
+       (_initialize_serial): Add set/show serial parity commands.
+       * serial.h (GDBPARITY_NONE): Define.
+       (GDBPARITY_ODD): Define.
+       (GDBPARITY_EVEN): Define.
+       (serial_setparity) Add declaration.
+       (struct serial_ops): Add setparity field.
+       * target.h (serial_parity): Add declaration.
+
+2015-03-23  Keith Seitz  <keiths@redhat.com>
+
+       * linespec.c (linespec_lexer_lex_keyword): Update comment.
+
+2015-03-23  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoint.c (parse_breakpoint_sals): Use
+       linespec_lexer_lex_keyword to ascertain if the user specified
+       a NULL location.
+       * linespec.c [IF_KEYWORD_INDEX]: Define.
+       (linespec_lexer_lex_keyword): Export.
+       (struct ls_parser) <keyword_ok>: Remove.
+       A keyword is only a keyword if not followed by another keyword.
+       (linespec_lexer_lex_one): Remove keyword_ok handling.
+       Add comment explaining why the parsing stream is not advanced
+       when a keyword is seen.
+       (parse_linespec): Remove parser->keyword_ok.
+       * linespec.h (linespec_lexer_lex_keyword): Add declaration.
+
+2015-03-23  Keith Seitz  <keiths@redhat.com>
+
+       PR gdb/18021
+       * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
+       if we find a static method with DW_AT_vtable_elem_location.
+
+2015-03-21  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
+       before the second loop, to avoid undefined behavior.  Reported by
+       Anton Blanchard <anton@samba.org>.
+
+2015-03-20  Keven Boell  <keven.boell@intel.com>
+
+       * gdbtypes.c (resolve_dynamic_type_internal): Adapt
+       data_location usage to linked list.
+       (resolve_dynamic_type_internal): Adapt data_location to
+       linked list.
+       (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
+       (copy_type_recursive, copy_type): Add copy of linked list.
+       * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
+       (struct dynamic_prop_list): New struct.
+       * dwarf2read.c (set_die_type): Set data_location data.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
+       inner block and make it const.
+       * machoread.c (get_archive_prefix_len): Make "lparen" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
+       * breakpoint.h (set_breakpoint_condition): Update declaration.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
+       (nto_init_solib_absolute_prefix): Likewise.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
+       * spu-tdep.c (spu_gdbarch_init): Make "name" const.
+
 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * config/djgpp/README: Remove gdb.hp.
This page took 0.04561 seconds and 4 git commands to generate.