aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-28 23:47:39 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-28 23:47:39 +0000
commit262acaeb4861984b7ea71b9291ffaad2eaa135e1 (patch)
tree155982ab8f651cdaaab1be5d2bb7474c90b6feaf /gdb/eval.c
parentdf983543b95c24a93c4a375668986ea33e85cac3 (diff)
downloadgdb-262acaeb4861984b7ea71b9291ffaad2eaa135e1.zip
gdb-262acaeb4861984b7ea71b9291ffaad2eaa135e1.tar.gz
gdb-262acaeb4861984b7ea71b9291ffaad2eaa135e1.tar.bz2
2011-02-28 Michael Snyder <msnyder@vmware.com>
* eval.c (evaluate_subexp_standard): Delete unused variable, and discard unused values.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index de25b39..4db0466 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1326,13 +1326,12 @@ evaluate_subexp_standard (struct type *expect_type,
if (method)
{
- struct block *b;
CORE_ADDR funaddr;
struct type *val_type;
funaddr = find_function_addr (method, &val_type);
- b = block_for_pc (funaddr);
+ block_for_pc (funaddr);
CHECK_TYPEDEF (val_type);
@@ -2233,8 +2232,8 @@ evaluate_subexp_standard (struct type *expect_type,
}
case BINOP_RANGE:
- arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
- arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
+ evaluate_subexp (NULL_TYPE, exp, pos, noside);
+ evaluate_subexp (NULL_TYPE, exp, pos, noside);
if (noside == EVAL_SKIP)
goto nosideret;
error (_("':' operator used in invalid context"));
@@ -2399,7 +2398,7 @@ evaluate_subexp_standard (struct type *expect_type,
arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
if (noside == EVAL_SKIP)
{
- arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
+ evaluate_subexp (NULL_TYPE, exp, pos, noside);
goto nosideret;
}
@@ -2426,7 +2425,7 @@ evaluate_subexp_standard (struct type *expect_type,
arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
if (noside == EVAL_SKIP)
{
- arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
+ evaluate_subexp (NULL_TYPE, exp, pos, noside);
goto nosideret;
}