diff options
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c index 7d0c9c0..9d8bf6e 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)); |