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*.
+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.
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