diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 16:32:44 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 16:32:44 +0000 |
commit | c2e8b8271be43dc9386275479383af6543495059 (patch) | |
tree | 941e4a1a62db949d8be4c54564a253a900b5e9fb /gdb/target.c | |
parent | 0e43993ae8c905d679db8a48b8d2448b54b4f326 (diff) | |
download | gdb-c2e8b8271be43dc9386275479383af6543495059.zip gdb-c2e8b8271be43dc9386275479383af6543495059.tar.gz gdb-c2e8b8271be43dc9386275479383af6543495059.tar.bz2 |
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
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)); |