binutils-gdb/gdb/mi
Pedro Alves 64ce06e4cd Remove 'step' parameters from 'proceed' and 'resume'
The "step" parameters of 'proceed' and 'resume' aren't really useful
as indication of whether run control wants to single-step the target,
as that information must already be retrievable from
currently_stepping.  In fact, if currently_stepping disagrees with
whether we single-stepped the target, then things break.  Thus instead
of having the same information in two places, this patch removes those
parameters.

Setting 'step_start_function' is the only user of proceed's 'step'
argument, other than passing the 'step' argument down to 'resume' and
debug log output.  Move that instead to set_step_frame, where we
already set other related fields.

clear_proceed_status keeps its "step" parameter for now because it
needs to know which set of threads should have their state cleared,
and is called before the "stepping_command" flag is set.

Tested on x86_64 Fedora 20, native and gdbserver.

gdb/ChangeLog:
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 17:55:53 +00:00
..
ChangeLog-1999-2003
mi-cmd-break.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-break.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-catch.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-disas.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-env.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-file.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-info.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-stack.c Split TRY_CATCH into TRY + CATCH 2015-03-07 15:14:14 +00:00
mi-cmd-target.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmd-var.c C++ keyword cleanliness, mostly auto-generated 2015-02-27 16:33:07 +00:00
mi-cmds.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-cmds.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-common.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-common.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-console.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-console.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-getopt.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-getopt.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-interp.c Split TRY_CATCH into TRY + CATCH 2015-03-07 15:14:14 +00:00
mi-main.c Remove 'step' parameters from 'proceed' and 'resume' 2015-03-24 17:55:53 +00:00
mi-main.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-out.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-out.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-parse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-parse.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-symbol-cmds.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00