aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-04-28 07:26:44 -0600
committerTom Tromey <tromey@adacore.com>2023-05-01 11:04:13 -0600
commitba71385e7f8824849f5a1f3d77bd5f03928138eb (patch)
treee15d8a1ffcb564d8def235f15eaa7e65d3f1f835 /gdb/eval.c
parent43048e46db188e546ba2107bdffcc7eb751c91df (diff)
downloadgdb-ba71385e7f8824849f5a1f3d77bd5f03928138eb.zip
gdb-ba71385e7f8824849f5a1f3d77bd5f03928138eb.tar.gz
gdb-ba71385e7f8824849f5a1f3d77bd5f03928138eb.tar.bz2
Remove evaluate_type
Like evaluate_expression, evaluate_type is also just a simple wrapper. Removing it makes the code a little nicer.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 82b5fe2..9d5ca0b 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -116,15 +116,6 @@ expression::evaluate (struct type *expect_type, enum noside noside)
return retval;
}
-/* Evaluate an expression, avoiding all memory references
- and getting a value whose type alone is correct. */
-
-struct value *
-evaluate_type (struct expression *exp)
-{
- return exp->evaluate (nullptr, EVAL_AVOID_SIDE_EFFECTS);
-}
-
/* Find the current value of a watchpoint on EXP. Return the value in
*VALP and *RESULTP and the chain of intermediate and final values
in *VAL_CHAIN. RESULTP and VAL_CHAIN may be NULL if the caller does