aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:03 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:03 -0400
commitbd63c870088388fc55efbf50f2dfc0592fe874e5 (patch)
treefc002e3c53ff9e8ae8a194b83cc9c87c5292d448 /gdb/eval.c
parent2062087b358cc5320d52b32c50866dbd08fb2631 (diff)
downloadbinutils-bd63c870088388fc55efbf50f2dfc0592fe874e5.zip
binutils-bd63c870088388fc55efbf50f2dfc0592fe874e5.tar.gz
binutils-bd63c870088388fc55efbf50f2dfc0592fe874e5.tar.bz2
gdb: remove TYPE_VECTOR
gdb/ChangeLog: * gdbtypes.h (TYPE_VECTOR): Remove, replace all uses with type::is_vector. Change-Id: I1ac28755af44b1585c190553f9961288c8fb9137
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index d87b8da..2d27198 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -622,7 +622,7 @@ ptrmath_type_p (const struct language_defn *lang, struct type *type)
return 1;
case TYPE_CODE_ARRAY:
- return TYPE_VECTOR (type) ? 0 : lang->c_style_arrays;
+ return type->is_vector () ? 0 : lang->c_style_arrays;
default:
return 0;
@@ -3137,7 +3137,7 @@ evaluate_subexp_with_coercion (struct expression *exp,
var = exp->elts[pc + 2].symbol;
type = check_typedef (SYMBOL_TYPE (var));
if (type->code () == TYPE_CODE_ARRAY
- && !TYPE_VECTOR (type)
+ && !type->is_vector ()
&& CAST_IS_CONVERSION (exp->language_defn))
{
(*pos) += 4;