From: Aleksandar Ristovski Date: Thu, 31 Jan 2013 16:32:44 +0000 (+0000) Subject: 2013-01-31 Aleksandar Ristovski X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2e8b8271be43dc9386275479383af6543495059;p=binutils-gdb.git 2013-01-31 Aleksandar Ristovski * target.c (target_read_string): Remove unused origlen. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00754.html --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 742f8e5ff0b..b35247eb0c4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-01-31 Aleksandar Ristovski + + * target.c (target_read_string): Remove unused origlen. + 2013-01-31 Aleksandar Ristovski * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec. diff --git a/gdb/target.c b/gdb/target.c index 7d0c9c0735b..9d8bf6e66b1 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1220,7 +1220,7 @@ target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset) int target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop) { - int tlen, origlen, offset, i; + int tlen, offset, i; gdb_byte buf[4]; int errcode = 0; char *buffer; @@ -1235,8 +1235,6 @@ target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop) buffer = xmalloc (buffer_allocated); bufptr = buffer; - origlen = len; - while (len > 0) { tlen = MIN (len, 4 - (memaddr & 3));