Blame SOURCES/gdb-rhbz1187581-power8-regs-1of7.patch

4c2ad1
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
4c2ad1
From: Jan Kratochvil <jan.kratochvil@redhat.com>
4c2ad1
Date: Thu, 9 Aug 2018 17:09:48 +0200
4c2ad1
Subject: gdb-rhbz1187581-power8-regs-1of7.patch
4c2ad1
4c2ad1
;; Add GDB support to access/display POWER8 registers (IBM, RH BZ 1187581).
4c2ad1
4c2ad1
commit 05abfc39c719e740530000059bb963ad33462479
4c2ad1
Author: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4c2ad1
Date:   Mon Aug 6 16:24:55 2018 -0300
4c2ad1
4c2ad1
    Fix indentation in remote_target::download_tracepoint
4c2ad1
4c2ad1
    gdb/ChangeLog:
4c2ad1
    2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4c2ad1
4c2ad1
            * remote.c (remote_target::download_tracepoint): Fix indentation
4c2ad1
            in for block.
4c2ad1
4c2ad1
diff --git a/gdb/remote.c b/gdb/remote.c
4c2ad1
--- a/gdb/remote.c
4c2ad1
+++ b/gdb/remote.c
4c2ad1
@@ -12912,24 +12912,24 @@ remote_target::download_tracepoint (struct bp_location *loc)
4c2ad1
 	error (_("Error on target while setting tracepoints."));
4c2ad1
     }
4c2ad1
 
4c2ad1
-    for (auto action_it = stepping_actions.begin ();
4c2ad1
-	 action_it != stepping_actions.end (); action_it++)
4c2ad1
-      {
4c2ad1
-	QUIT;	/* Allow user to bail out with ^C.  */
4c2ad1
-
4c2ad1
-	bool is_first = action_it == stepping_actions.begin ();
4c2ad1
-	bool has_more = action_it != stepping_actions.end ();
4c2ad1
-
4c2ad1
-	xsnprintf (buf, BUF_SIZE, "QTDP:-%x:%s:%s%s%s",
4c2ad1
-		   b->number, addrbuf, /* address */
4c2ad1
-		   is_first ? "S" : "",
4c2ad1
-		   action_it->c_str (),
4c2ad1
-		   has_more ? "-" : "");
4c2ad1
-	putpkt (buf);
4c2ad1
-	remote_get_noisy_reply ();
4c2ad1
-	if (strcmp (rs->buf, "OK"))
4c2ad1
-	  error (_("Error on target while setting tracepoints."));
4c2ad1
-      }
4c2ad1
+  for (auto action_it = stepping_actions.begin ();
4c2ad1
+       action_it != stepping_actions.end (); action_it++)
4c2ad1
+    {
4c2ad1
+      QUIT;	/* Allow user to bail out with ^C.  */
4c2ad1
+
4c2ad1
+      bool is_first = action_it == stepping_actions.begin ();
4c2ad1
+      bool has_more = action_it != stepping_actions.end ();
4c2ad1
+
4c2ad1
+      xsnprintf (buf, BUF_SIZE, "QTDP:-%x:%s:%s%s%s",
4c2ad1
+		 b->number, addrbuf, /* address */
4c2ad1
+		 is_first ? "S" : "",
4c2ad1
+		 action_it->c_str (),
4c2ad1
+		 has_more ? "-" : "");
4c2ad1
+      putpkt (buf);
4c2ad1
+      remote_get_noisy_reply ();
4c2ad1
+      if (strcmp (rs->buf, "OK"))
4c2ad1
+	error (_("Error on target while setting tracepoints."));
4c2ad1
+    }
4c2ad1
 
4c2ad1
   if (packet_support (PACKET_TracepointSource) == PACKET_ENABLE)
4c2ad1
     {