2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>

* target.c (target_read_string): Remove unused origlen.

Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00754.html
This commit is contained in:
Aleksandar Ristovski
2013-01-31 16:32:44 +00:00
parent 0e43993ae8
commit c2e8b8271b
2 changed files with 5 additions and 3 deletions

View File

@@ -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));