aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-01-10 16:40:54 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-01-17 05:51:41 -0500
commit8bf10e2e77f3b4e19fe01e95d25c0c2caf7eef3b (patch)
tree5c00738ce808e1283e494a996ee382fd75d6251d /gdb
parentab31da6aff52fe3206cba98c03d7f74159da8677 (diff)
downloadgdb-8bf10e2e77f3b4e19fe01e95d25c0c2caf7eef3b.zip
gdb-8bf10e2e77f3b4e19fe01e95d25c0c2caf7eef3b.tar.gz
gdb-8bf10e2e77f3b4e19fe01e95d25c0c2caf7eef3b.tar.bz2
gdb/infrun: rename variable and move to more specific scope
Move the "started" variable to the scope it's needed, and rename it to "step_over_started". Change-Id: I56f3384dbd328f55198063bb855edda10f1492a3
Diffstat (limited to 'gdb')
-rw-r--r--gdb/infrun.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 793d83a..2335fc7 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3055,7 +3055,6 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal)
CORE_ADDR pc;
struct execution_control_state ecss;
struct execution_control_state *ecs = &ecss;
- bool started;
/* If we're stopped at a fork/vfork, follow the branch set by the
"set follow-fork-mode" command; otherwise, we'll just proceed
@@ -3204,8 +3203,7 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal)
{
scoped_disable_commit_resumed disable_commit_resumed ("proceeding");
-
- started = start_step_over ();
+ bool step_over_started = start_step_over ();
if (step_over_info_valid_p ())
{
@@ -3213,7 +3211,7 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal)
other thread was already doing one. In either case, don't
resume anything else until the step-over is finished. */
}
- else if (started && !target_is_non_stop_p ())
+ else if (step_over_started && !target_is_non_stop_p ())
{
/* A new displaced stepping sequence was started. In all-stop,
we can't talk to the target anymore until it next stops. */