diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-28 07:26:44 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-01 11:04:13 -0600 |
commit | ba71385e7f8824849f5a1f3d77bd5f03928138eb (patch) | |
tree | e15d8a1ffcb564d8def235f15eaa7e65d3f1f835 /gdb/eval.c | |
parent | 43048e46db188e546ba2107bdffcc7eb751c91df (diff) | |
download | gdb-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.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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 |