|
|
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:10:46 +0200
|
|
|
4c2ad1 |
Subject: gdb-rhbz1187581-power8-regs-2of7.patch
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
;; Add GDB support to access/display POWER8 registers (IBM, RH BZ 1187581).
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
commit aa6f3694ce867884e43d1c0406c64df08ea24bd3
|
|
|
4c2ad1 |
Author: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
|
|
|
4c2ad1 |
Date: Mon Aug 6 16:24:55 2018 -0300
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
Remove trailing '-' from the last QTDP action packet
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
The has_more predicate in remote_target::download_tracepoint always
|
|
|
4c2ad1 |
evaluates to true, so the last action packet will be sent with a
|
|
|
4c2ad1 |
trailing '-'. This patch changes the predicate to remove the last
|
|
|
4c2ad1 |
trailing '-'.
|
|
|
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 the has_more
|
|
|
4c2ad1 |
predicate in the QTDP action list iteration.
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
diff --git a/gdb/remote.c b/gdb/remote.c
|
|
|
4c2ad1 |
--- a/gdb/remote.c
|
|
|
4c2ad1 |
+++ b/gdb/remote.c
|
|
|
4c2ad1 |
@@ -12899,7 +12899,7 @@ remote_target::download_tracepoint (struct bp_location *loc)
|
|
|
4c2ad1 |
{
|
|
|
4c2ad1 |
QUIT; /* Allow user to bail out with ^C. */
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
- bool has_more = (action_it != tdp_actions.end ()
|
|
|
4c2ad1 |
+ bool has_more = ((action_it + 1) != tdp_actions.end ()
|
|
|
4c2ad1 |
|| !stepping_actions.empty ());
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
xsnprintf (buf, BUF_SIZE, "QTDP:-%x:%s:%s%c",
|
|
|
4c2ad1 |
@@ -12918,7 +12918,7 @@ remote_target::download_tracepoint (struct bp_location *loc)
|
|
|
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 |
+ bool has_more = (action_it + 1) != stepping_actions.end ();
|
|
|
4c2ad1 |
|
|
|
4c2ad1 |
xsnprintf (buf, BUF_SIZE, "QTDP:-%x:%s:%s%s%s",
|
|
|
4c2ad1 |
b->number, addrbuf, /* address */
|