Fix gdb/remote.c build failure
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 8 Aug 2018 10:14:20 +0000 (11:14 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 8 Aug 2018 10:31:11 +0000 (11:31 +0100)
Add const qualifier to fix

/S/gdb/common/gdb_locale.h:35:27: error: deprecated conversion from string constant to 'char*' [-Werror=write-strings]
 # define _(String) (String)
                           ^
/S/gdb/remote.c:12844:19: note: in expansion of macro '_'
   char *err_msg = _("Tracepoint packet too large for target.");
                   ^
gdb/ChangeLog:

* remote.c (remote_target::download_tracepoint): Change char* to
const char*.

gdb/ChangeLog
gdb/remote.c

index 6702b445b7c7bbc584a866e293716ebdfe159c01..2f5d1ef8b7b51620c215e688a4c65a595089cab2 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * remote.c (remote_target::download_tracepoint): Change char* to
+       const char*.
+
 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * target.h (target_options_to_string): Return an std::string.
index 33f6cd57aaf8aa824d35e1270b15f1f6fe6c4c3f..3b19da75eaff406632635800f9cf52f985332c41 100644 (file)
@@ -12841,7 +12841,7 @@ remote_target::download_tracepoint (struct bp_location *loc)
   struct tracepoint *t = (struct tracepoint *) b;
   struct remote_state *rs = get_remote_state ();
   int ret;
-  char *err_msg = _("Tracepoint packet too large for target.");
+  const char *err_msg = _("Tracepoint packet too large for target.");
   size_t size_left;
 
   /* We use a buffer other than rs->buf because we'll build strings
This page took 0.03439 seconds and 4 git commands to generate.