aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-01-21 16:04:51 -0500
committerSimon Marchi <simon.marchi@efficios.com>2020-01-21 16:04:51 -0500
commitf9fac3c81b322a3c0d2e50d19769c06fdada7a94 (patch)
treedbaf1266446da5c3a4a5cb3dd88fd25447cfe321 /gdb/infrun.c
parentf6474de9aacec990d44d2d65a337668b389efd99 (diff)
downloadgdb-f9fac3c81b322a3c0d2e50d19769c06fdada7a94.zip
gdb-f9fac3c81b322a3c0d2e50d19769c06fdada7a94.tar.gz
gdb-f9fac3c81b322a3c0d2e50d19769c06fdada7a94.tar.bz2
gdb: fix indentation in infrun.c
I noticed the indentation there was off, this patch fixes it. gdb/ChangeLog: * infrun.c (proceed): Fix indentation.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 1312328..9c4a07d 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3128,46 +3128,46 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal)
{
switch_to_thread_no_regs (tp);
- if (!tp->inf->has_execution ())
- {
- if (debug_infrun)
- fprintf_unfiltered (gdb_stdlog,
- "infrun: proceed: [%s] target has "
- "no execution\n",
- target_pid_to_str (tp->ptid).c_str ());
- continue;
- }
-
- if (tp->resumed)
- {
- if (debug_infrun)
- fprintf_unfiltered (gdb_stdlog,
- "infrun: proceed: [%s] resumed\n",
- target_pid_to_str (tp->ptid).c_str ());
- gdb_assert (tp->executing || tp->suspend.waitstatus_pending_p);
- continue;
- }
+ if (!tp->inf->has_execution ())
+ {
+ if (debug_infrun)
+ fprintf_unfiltered (gdb_stdlog,
+ "infrun: proceed: [%s] target has "
+ "no execution\n",
+ target_pid_to_str (tp->ptid).c_str ());
+ continue;
+ }
- if (thread_is_in_step_over_chain (tp))
- {
- if (debug_infrun)
- fprintf_unfiltered (gdb_stdlog,
- "infrun: proceed: [%s] needs step-over\n",
- target_pid_to_str (tp->ptid).c_str ());
- continue;
- }
+ if (tp->resumed)
+ {
+ if (debug_infrun)
+ fprintf_unfiltered (gdb_stdlog,
+ "infrun: proceed: [%s] resumed\n",
+ target_pid_to_str (tp->ptid).c_str ());
+ gdb_assert (tp->executing || tp->suspend.waitstatus_pending_p);
+ continue;
+ }
- if (debug_infrun)
- fprintf_unfiltered (gdb_stdlog,
- "infrun: proceed: resuming %s\n",
- target_pid_to_str (tp->ptid).c_str ());
+ if (thread_is_in_step_over_chain (tp))
+ {
+ if (debug_infrun)
+ fprintf_unfiltered (gdb_stdlog,
+ "infrun: proceed: [%s] needs step-over\n",
+ target_pid_to_str (tp->ptid).c_str ());
+ continue;
+ }
- reset_ecs (ecs, tp);
- switch_to_thread (tp);
- keep_going_pass_signal (ecs);
- if (!ecs->wait_some_more)
- error (_("Command aborted."));
- }
+ if (debug_infrun)
+ fprintf_unfiltered (gdb_stdlog,
+ "infrun: proceed: resuming %s\n",
+ target_pid_to_str (tp->ptid).c_str ());
+
+ reset_ecs (ecs, tp);
+ switch_to_thread (tp);
+ keep_going_pass_signal (ecs);
+ if (!ecs->wait_some_more)
+ error (_("Command aborted."));
+ }
}
else if (!cur_thr->resumed && !thread_is_in_step_over_chain (cur_thr))
{