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:
parent
0e43993ae8
commit
c2e8b8271b
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user