aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2018-08-08 11:14:20 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-08-08 11:31:11 +0100
commitff36536c9273734af6f84832b583c10f44c5010e (patch)
tree15cbb2055ac873421910a9dbb0d2924530a132d7 /gdb/remote.c
parentf6f9ed015ea683ee2b00591aa31a4cacedb7a810 (diff)
downloadgdb-ff36536c9273734af6f84832b583c10f44c5010e.zip
gdb-ff36536c9273734af6f84832b583c10f44c5010e.tar.gz
gdb-ff36536c9273734af6f84832b583c10f44c5010e.tar.bz2
Fix gdb/remote.c build failure
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*.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 33f6cd5..3b19da7 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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