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