* target.c (target_read_string): Remove unused origlen.
Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00754.html
+2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * target.c (target_read_string): Remove unused origlen.
+
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
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;
buffer = xmalloc (buffer_allocated);
bufptr = buffer;
- origlen = len;
-
while (len > 0)
{
tlen = MIN (len, 4 - (memaddr & 3));