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

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