Blame SOURCES/gdb-rhbz1187581-power8-regs-not-in-8.2-01of15.patch

689258
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
689258
From: Keith Seitz <keiths@redhat.com>
689258
Date: Fri, 11 Jan 2019 17:02:12 -0500
689258
Subject: gdb-rhbz1187581-power8-regs-not-in-8.2-01of15.patch
689258
689258
;; Fix remote.c build failure
689258
;; Szabolcs Nagy, RH BZ 1187581
689258
689258
Fix gdb/remote.c build failure
689258
689258
Add const qualifier to fix
689258
689258
/S/gdb/common/gdb_locale.h:35:27: error: deprecated conversion from string c
689258
 # define _(String) (String)
689258
                           ^
689258
/S/gdb/remote.c:12844:19: note: in expansion of macro '_'
689258
   char *err_msg = _("Tracepoint packet too large for target.");
689258
                   ^
689258
gdb/ChangeLog:
689258
689258
    * remote.c (remote_target::download_tracepoint): Change char* to
689258
    const char*.
689258
689258
diff --git a/gdb/remote.c b/gdb/remote.c
689258
--- a/gdb/remote.c
689258
+++ b/gdb/remote.c
689258
@@ -12808,7 +12808,7 @@ remote_target::download_tracepoint (struct bp_location *loc)
689258
   struct tracepoint *t = (struct tracepoint *) b;
689258
   struct remote_state *rs = get_remote_state ();
689258
   int ret;
689258
-  char *err_msg = _("Tracepoint packet too large for target.");
689258
+  const char *err_msg = _("Tracepoint packet too large for target.");
689258
   size_t size_left;
689258
 
689258
   /* We use a buffer other than rs->buf because we'll build strings