aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-01 00:26:14 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-01 00:26:14 +0000
commit5715d26e12b1a62828f29f7d5470e99ad4122260 (patch)
tree00d85981e7362826bc877475bd80a4b273d98be3 /gdb/linespec.c
parent4a9bca80ec74da495b128a31e809b123bf4a04b4 (diff)
downloadgdb-5715d26e12b1a62828f29f7d5470e99ad4122260.zip
gdb-5715d26e12b1a62828f29f7d5470e99ad4122260.tar.gz
gdb-5715d26e12b1a62828f29f7d5470e99ad4122260.tar.bz2
2011-02-28 Michael Snyder <msnyder@vmware.com>
* linespec.c (decode_objc): Delete unused variable.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index e801381..9183064 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1122,7 +1122,6 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab,
struct symtabs_and_lines values;
struct symbol **sym_arr = NULL;
struct symbol *sym = NULL;
- char *copy = NULL;
struct block *block = NULL;
unsigned i1 = 0;
unsigned i2 = 0;
@@ -1143,7 +1142,7 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab,
set_language (save_language);
}
- copy = find_imps (file_symtab, block, *argptr, NULL, &i1, &i2);
+ find_imps (file_symtab, block, *argptr, NULL, &i1, &i2);
if (i1 > 0)
{
@@ -1151,8 +1150,7 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab,
alloca ((i1 + 1) * sizeof (struct symbol *));
sym_arr[i1] = NULL;
- copy = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2);
- *argptr = copy;
+ *argptr = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2);
}
/* i1 now represents the TOTAL number of matches found.