Remove 'step' parameters from 'proceed' and 'resume'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 3c59d09308900b48cb8dde6882615736cd3ae26f..c2a55209ea64e09d34f3deae3872fdfa26d50769 100644 (file)
@@ -1,3 +1,227 @@
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (until_break_command): Adjust call to proceed.
+       * gdbthread.h (struct thread_control_state) <stepping_command>:
+       New field.
+       * infcall.c (run_inferior_call): Adjust call to proceed.
+       * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
+       Adjust calls to proceed.
+       (set_step_frame): Set the current thread's step_start_function
+       here.
+       (step_once): Adjust calls to proceed.
+       (jump_command, signal_command, until_next_command)
+       (finish_backward, finish_forward, proceed_after_attach_callback)
+       (attach_command_post_wait): Adjust calls to proceed.
+       * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
+       (do_target_resume): New function, factored out from ...
+       (resume): ... here.  Remove 'step' parameter.  Instead, check
+       currently_stepping to determine whether the thread should be
+       single-stepped.
+       (proceed): Remove 'step' parameter and don't set the thread's
+       step_start_function here.  Adjust call to 'resume'.
+       (handle_inferior_event): Adjust calls to 'resume'.
+       (switch_back_to_stepped_thread): Use do_target_resume instead of
+       'resume'.
+       (keep_going): Adjust calls to 'resume'.
+       * infrun.h (proceed): Remove 'step' parameter.
+       (resume): Likewise.
+       * windows-nat.c (do_initial_windows_stuff): Adjust call to
+       'resume'.
+       * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * gdbthread.h (struct thread_control_state) <stepping_command>:
+       New field.
+       * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
+       the thread's stepping_command field.
+       * infrun.c (resume): Check the thread's stepping_command flag to
+       determine which threads should be resumed.  Rename 'entry_step'
+       local to user_step.
+       (clear_proceed_status_thread): Clear 'stepping_command'.
+       (schedlock_applies): Change parameter type to struct thread_info
+       pointer.  Adjust.
+       (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
+       (switch_back_to_stepped_thread): Adjust calls to
+       'schedlock_applies'.
+       (_initialize_infrun): Adjust "set scheduler-locking step" help.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (step_start_function): Delete and ...
+       * gdbthread.h (struct thread_control_state) <step_start_function>:
+       ... now a field here.
+       * infrun.c (clear_proceed_status_thread): Clear the thread's
+       step_start_function.
+       (proceed, process_event_stop_test, print_stop_event): Adjust.
+
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (proceed): No longer handle negative step.
+
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * nat/x86-linux.h (x86_linux_new_thread): New declaration.
+       (x86_linux_prepare_to_resume): Likewise.
+       * x86-linux-nat.c (x86_linux_new_thread):
+       Moved to nat/x86-linux.c.
+       (x86_linux_prepare_to_resume): Likewise.
+       * nat/x86-linux.c (x86_linux_new_thread): New function.
+       (x86_linux_prepare_to_resume): Likewise.
+
+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.
This page took 0.035791 seconds and 4 git commands to generate.