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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/target.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 742f8e5..b35247e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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. * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt. * ax-general.c (ax_print): Remove unused is_float. 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)); |