[pushed] gdb: fix indentation in infrun.c

Message ID 20200121210944.22677-1-simon.marchi@efficios.com
State New
Headers show
Series
  • [pushed] gdb: fix indentation in infrun.c
Related show

Commit Message

Simon Marchi Jan. 21, 2020, 9:09 p.m.
I noticed the indentation there was off, this patch fixes it.

gdb/ChangeLog:

	* infrun.c (proceed): Fix indentation.
---
 gdb/ChangeLog |  4 +++
 gdb/infrun.c  | 74 +++++++++++++++++++++++++--------------------------
 2 files changed, 41 insertions(+), 37 deletions(-)

-- 
2.25.0

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 798fe5b7c494..029e3a050813 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
+
+	* infrun.c (proceed): Fix indentation.
+
 2020-01-21  Tom Tromey  <tromey@adacore.com>
 
 	* source-cache.c (source_cache::ensure): Call ext_lang_colorize.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 1312328b8ffc..9c4a07daba97 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))
       {