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

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